Changeset 58918
- Timestamp:
- 08/20/2024 05:48:07 PM (3 weeks ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tag-form.php
r58581 r58918 73 73 74 74 <?php 75 $class = ( isset( $ msg ) && 5 === $msg) ? 'error' : 'success';75 $class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'success'; 76 76 77 77 if ( $message ) { … … 84 84 ); 85 85 } 86 86 87 wp_admin_notice( 87 88 $message, -
trunk/src/wp-admin/edit-tags.php
r58419 r58918 322 322 require_once ABSPATH . 'wp-admin/includes/edit-tag-messages.php'; 323 323 324 $class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated';325 326 324 if ( is_plugin_active( 'wpcat2tag-importer/wpcat2tag-importer.php' ) ) { 327 325 $import_link = admin_url( 'admin.php?import=wpcat2tag' ); … … 350 348 351 349 <?php 352 if ( $message ) : 350 $class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated'; 351 352 if ( $message ) { 353 353 wp_admin_notice( 354 354 $message, … … 359 359 ) 360 360 ); 361 361 362 $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'message', 'error' ), $_SERVER['REQUEST_URI'] ); 362 endif; 363 } 363 364 ?> 364 365 <div id="ajax-response"></div>
Note: See TracChangeset
for help on using the changeset viewer.