Changeset 32535 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 05/21/2015 10:04:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r32243 r32535 123 123 } 124 124 } 125 return null;126 125 } 127 126 … … 237 236 * 238 237 * @param array $old_sidebars_widgets 238 * @return array 239 239 */ 240 240 public function filter_customize_value_old_sidebars_widgets_data( $old_sidebars_widgets ) { … … 254 254 * 255 255 * @param array $sidebars_widgets 256 * @return array 256 257 */ 257 258 public function filter_option_sidebars_widgets_for_theme_switch( $sidebars_widgets ) { … … 919 920 * 920 921 * @param array $sidebars_widgets List of widgets for the current sidebar. 922 * @return array 921 923 */ 922 924 public function preview_sidebars_widgets( $sidebars_widgets ) { … … 1041 1043 * @param bool $is_active Whether the sidebar is active. 1042 1044 * @param string $sidebar_id Sidebar ID. 1045 * @return bool 1043 1046 */ 1044 1047 public function tally_sidebars_via_is_active_sidebar_calls( $is_active, $sidebar_id ) { … … 1066 1069 * @param bool $has_widgets Whether the current sidebar has widgets. 1067 1070 * @param string $sidebar_id Sidebar ID. 1071 * @return bool 1068 1072 */ 1069 1073 public function tally_sidebars_via_dynamic_sidebar_calls( $has_widgets, $sidebar_id ) { … … 1106 1110 * 1107 1111 * @param array $value Widget instance to sanitize. 1108 * @return array Sanitized widget instance.1112 * @return array|null Sanitized widget instance. 1109 1113 */ 1110 1114 public function sanitize_widget_instance( $value ) { … … 1117 1121 || empty( $value['encoded_serialized_instance'] ) ) 1118 1122 { 1119 return null;1123 return; 1120 1124 } 1121 1125 1122 1126 $decoded = base64_decode( $value['encoded_serialized_instance'], true ); 1123 1127 if ( false === $decoded ) { 1124 return null;1128 return; 1125 1129 } 1126 1130 1127 1131 if ( $this->get_instance_hash_key( $decoded ) !== $value['instance_hash_key'] ) { 1128 return null;1132 return; 1129 1133 } 1130 1134 1131 1135 $instance = unserialize( $decoded ); 1132 1136 if ( false === $instance ) { 1133 return null;1137 return; 1134 1138 } 1135 1139
Note: See TracChangeset
for help on using the changeset viewer.