Skip to content

paginate_links: fix conditional return type - #486

Merged
szepeviktor merged 1 commit into
php-stubs:masterfrom
IanDelMar:paginate_links
Sep 2, 2026
Merged

szepeviktor merged 1 commit into
php-stubs:masterfrom
IanDelMar:paginate_links

Conversation

@IanDelMar

Copy link
Copy Markdown
Contributor

The implementation of paginate_links() changed from using a bare return when $args['total'] < 2 to explicitly returning null in WordPress 7.0. See WordPress/WordPress@6.9.7...7.0.

The conditional return type is updated accordingly.

@szepeviktor
szepeviktor merged commit 2c488fb into php-stubs:master Sep 2, 2026
8 checks passed
@IanDelMar
IanDelMar deleted the paginate_links branch September 2, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants