Make WordPress Core


Ignore:
Timestamp:
04/11/2022 04:35:37 AM (3 years ago)
Author:
peterwilsoncc
Message:

Administration: Remove term page check from ajax-response.js.

Replace hard coded check for the term creation page in _enqueues/lib/ajax-response.js with a check for a notification to display in the AJAX response data.

Follow up to [52170], [52672].

Props SergeyBiryukov, ryokuhi, johnregan3, sabernhardt, joedolson.
Fixes #55078.
See #54955.

File:
1 edited

Legend:

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

    r53089 r53123  
    11221122            'what'         => 'taxonomy',
    11231123            'data'         => $message,
    1124             'supplemental' => compact( 'parents', 'noparents' ),
     1124            'supplemental' => array(
     1125                'parents'   => $parents,
     1126                'noparents' => $noparents,
     1127                'notice'    => $message,
     1128            ),
    11251129        )
    11261130    );
Note: See TracChangeset for help on using the changeset viewer.