Changeset 31823 for trunk/src/wp-admin/edit-tags.php
- Timestamp:
- 03/18/2015 09:58:52 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r31696 r31823 66 66 $location = add_query_arg( 'message', 1, $location ); 67 67 else 68 $location = add_query_arg( 'message', 4, $location );68 $location = add_query_arg( array( 'error' => true, 'message' => 4 ), $location ); 69 69 70 70 break; … … 157 157 $location = add_query_arg( 'message', 3, $location ); 158 158 else 159 $location = add_query_arg( 'message', 5, $location );159 $location = add_query_arg( array( 'error' => true, 'message' => 5 ), $location ); 160 160 break; 161 161 } … … 298 298 } 299 299 300 $class = ( isset( $_REQUEST['error'] ) ) ? 'error' : 'updated'; 300 301 ?> 301 302 … … 307 308 308 309 <?php if ( $message ) : ?> 309 <div id="message" class=" updated"><p><?php echo $message; ?></p></div>310 <?php $_SERVER['REQUEST_URI'] = remove_query_arg( array('message'), $_SERVER['REQUEST_URI']);310 <div id="message" class="<?php echo $class; ?>"><p><?php echo $message; ?></p></div> 311 <?php $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'message', 'error' ), $_SERVER['REQUEST_URI'] ); 311 312 endif; ?> 312 313 <div id="ajax-response"></div>
Note: See TracChangeset
for help on using the changeset viewer.