Make WordPress Core


Ignore:
Timestamp:
12/21/2020 05:09:50 PM (4 years ago)
Author:
johnbillion
Message:

XML-RPC: Fix a type error when requesting the menu field of a taxonomy.

Fixes #51493

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r49385 r49856  
    767767
    768768        if ( in_array( 'menu', $fields, true ) ) {
    769             $_taxonomy['show_in_menu'] = (bool) $_taxonomy->show_in_menu;
     769            $_taxonomy['show_in_menu'] = (bool) $taxonomy->show_in_menu;
    770770        }
    771771
Note: See TracChangeset for help on using the changeset viewer.