Changeset 27854
- Timestamp:
- 03/29/2014 09:43:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r27823 r27854 509 509 public function parse_widget_setting_id( $setting_id ) { 510 510 if ( ! preg_match( '/^(widget_(.+?))(?:\[(\d+)\])?$/', $setting_id, $matches ) ) { 511 return new WP_Error( ' invalid_setting_id', 'Invalid widget setting ID' );511 return new WP_Error( 'widget_setting_invalid_id' ); 512 512 } 513 513 … … 1058 1058 if ( empty( $sanitized_widget_setting ) ) { 1059 1059 $this->stop_capturing_option_updates(); 1060 return new WP_Error( ' malformed_data', 'Malformed sanitized_widget_setting' );1060 return new WP_Error( 'widget_setting_malformed' ); 1061 1061 } 1062 1062 … … 1064 1064 if ( is_null( $instance ) ) { 1065 1065 $this->stop_capturing_option_updates(); 1066 return new WP_Error( ' unsanitary_data', 'Unsanitary sanitized_widget_setting' );1066 return new WP_Error( 'widget_setting_unsanitized' ); 1067 1067 } 1068 1068 … … 1101 1101 if ( $this->count_captured_options() > 1 ) { 1102 1102 $this->stop_capturing_option_updates(); 1103 return new WP_Error( ' unexpected_update', 'Widget unexpectedly updated more than one option.' );1103 return new WP_Error( 'widget_setting_too_many_options' ); 1104 1104 } 1105 1105 … … 1107 1107 if ( $updated_option_name !== $option_name ) { 1108 1108 $this->stop_capturing_option_updates(); 1109 return new WP_Error( 'w rong_option', sprintf( 'Widget updated option "%1$s", but expected "%2$s".', $updated_option_name, $option_name ));1109 return new WP_Error( 'widget_setting_unexpected_option' ); 1110 1110 } 1111 1111 }
Note: See TracChangeset
for help on using the changeset viewer.