Menus: Use correct parameter in _wp_nav_menu_meta_box_object().

Follow-up to [53220].

Props davidbaumwald.
See #55327.

git-svn-id: https://develop.svn.wordpress.org/trunk@53222 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2022-04-19 15:57:57 +00:00
parent e31128ecb7
commit 027f723d80

View File

@@ -992,7 +992,7 @@ function wp_save_nav_menu_items( $menu_id = 0, $menu_data = array() ) {
* @param object $data_object The post type or taxonomy meta-object.
* @return object The post type or taxonomy object.
*/
function _wp_nav_menu_meta_box_object( $item_object = null ) {
function _wp_nav_menu_meta_box_object( $data_object = null ) {
if ( isset( $data_object->name ) ) {
if ( 'page' === $data_object->name ) {