Make WordPress Core


Ignore:
Timestamp:
03/27/2019 03:32:11 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Initialize $noparents variable in wp_ajax_add_tag() to avoid a notice with compact() in PHP 7.3.

Props pilou69.
Fixes #46670.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r44986 r45034  
    10281028    $wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => $_POST['screen'] ) );
    10291029
    1030     $level = 0;
     1030    $level     = 0;
     1031    $noparents = '';
     1032
    10311033    if ( is_taxonomy_hierarchical( $taxonomy ) ) {
    10321034        $level = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) );
Note: See TracChangeset for help on using the changeset viewer.