Skip to content
Commit 690adc13 authored by Sergey Biryukov's avatar Sergey Biryukov
Browse files

Menus: When adding a label for special pages in `wp_setup_nav_menu_item()`,...

Menus: When adding a label for special pages in `wp_setup_nav_menu_item()`, check if `get_post_states()` is available, to avoid fatal errors on front end.

Fixes #49374.
Built from https://develop.svn.wordpress.org/trunk@47213


git-svn-id: https://core.svn.wordpress.org/trunk@47013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent f3a08a05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment