Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Library: fix PHPnotice "Undefined index: paged" #57643

Closed
matiasbenedetto opened this issue Jan 8, 2024 · 1 comment
Closed

Font Library: fix PHPnotice "Undefined index: paged" #57643

matiasbenedetto opened this issue Jan 8, 2024 · 1 comment
Labels
[Feature] Font Library [Feature] Typography Font and typography-related issues and PRs [Type] Enhancement A suggestion for improvement.

Comments

@matiasbenedetto
Copy link
Contributor

A notice is being thrown related to the REST API anytime the Font Library UI is loaded:

PHP Notice:  Undefined index: paged in /site/path/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php on line 394
PHP Stack trace:
...
PHP  13. WP_REST_Font_Families_Controller->get_items() /site/path/wp-includes/rest-api/class-wp-rest-server.php

It probably started when we updated the REST Controller to extend the Posts Controller.


Issue originally reported by @jffng in #57569 (review)

@matiasbenedetto
Copy link
Contributor Author

Closing this as outdated; this was already fixed.

@github-project-automation github-project-automation bot moved this from 📥 Todo to ✅ Done in WordPress 6.5 Editor Tasks Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Font Library [Feature] Typography Font and typography-related issues and PRs [Type] Enhancement A suggestion for improvement.
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants