Changeset 53088 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 04/07/2022 03:48:16 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r53027 r53088 1072 1072 1073 1073 if ( ! $tag || is_wp_error( $tag ) ) { 1074 $message = __( 'An error has occurred. Please reload the page and try again.' ); 1074 $message = __( 'An error has occurred. Please reload the page and try again.' ); 1075 $error_code = 'error'; 1075 1076 1076 1077 if ( is_wp_error( $tag ) && $tag->get_error_message() ) { 1077 1078 $message = $tag->get_error_message(); 1079 } 1080 1081 if ( is_wp_error( $tag ) && $tag->get_error_code() ) { 1082 $error_code = $tag->get_error_code(); 1078 1083 } 1079 1084 … … 1081 1086 array( 1082 1087 'what' => 'taxonomy', 1083 'data' => new WP_Error( 'error', $message ),1088 'data' => new WP_Error( $error_code, $message ), 1084 1089 ) 1085 1090 );
Note: See TracChangeset
for help on using the changeset viewer.