Ticket #32444: 32444.2.diff
File 32444.2.diff, 6.0 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/image.php
190 190 } 191 191 192 192 // Remove the blob of binary data from the array. 193 if ( isset( $metadata['image']['data'] ) ) 194 unset( $metadata['image']['data'] ); 193 unset( $metadata['image']['data'] ); 195 194 196 195 /** 197 196 * Filter the generated attachment meta data. -
src/wp-admin/includes/media.php
355 355 ), $post_data ); 356 356 357 357 // This should never be set as it would then overwrite an existing attachment. 358 if ( isset( $attachment['ID'] ) ) 359 unset( $attachment['ID'] ); 358 unset( $attachment['ID'] ); 360 359 361 360 // Save the data 362 361 $id = wp_insert_attachment($attachment, $file, $post_id); … … 419 418 ), $post_data ); 420 419 421 420 // This should never be set as it would then overwrite an existing attachment. 422 if ( isset( $attachment['ID'] ) ) 423 unset( $attachment['ID'] ); 421 unset( $attachment['ID'] ); 424 422 425 423 // Save the attachment metadata 426 424 $id = wp_insert_attachment($attachment, $file, $post_id); -
src/wp-admin/includes/nav-menu.php
1280 1280 1281 1281 $menu_item_db_id = wp_update_nav_menu_item( $nav_menu_selected_id, ( $_POST['menu-item-db-id'][$_key] != $_key ? 0 : $_key ), $args ); 1282 1282 1283 if ( is_wp_error( $menu_item_db_id ) ) 1283 if ( is_wp_error( $menu_item_db_id ) ) { 1284 1284 $messages[] = '<div id="message" class="error"><p>' . $menu_item_db_id->get_error_message() . '</p></div>'; 1285 elseif ( isset( $menu_items[$menu_item_db_id] ) ) 1286 unset( $menu_items[$menu_item_db_id] ); 1285 } else { 1286 unset( $menu_items[ $menu_item_db_id ] ); 1287 } 1287 1288 } 1288 1289 } 1289 1290 -
src/wp-includes/class-wp-embed.php
109 109 * @param int $priority Optional. The priority of the handler to be removed (default: 10). 110 110 */ 111 111 public function unregister_handler( $id, $priority = 10 ) { 112 if ( isset($this->handlers[$priority][$id]) ) 113 unset($this->handlers[$priority][$id]); 112 unset( $this->handlers[ $priority ][ $id ] ); 114 113 } 115 114 116 115 /** -
src/wp-includes/class-wp-walker.php
408 408 foreach ( (array) $children_elements[$id] as $child ) 409 409 $this->unset_children( $child, $children_elements ); 410 410 411 if ( isset($children_elements[$id]) ) 412 unset( $children_elements[$id] ); 413 411 unset( $children_elements[ $id ] ); 414 412 } 415 413 416 414 } // Walker -
src/wp-includes/general-template.php
2668 2668 2669 2669 // Remove the format argument from the array of query arguments, to avoid overwriting custom format. 2670 2670 foreach ( $format_args as $format_arg => $format_arg_value ) { 2671 if ( isset( $url_query_args[ $format_arg ] ) ) { 2672 unset( $url_query_args[ $format_arg ] ); 2673 } 2671 unset( $url_query_args[ $format_arg ] ); 2674 2672 } 2675 2673 2676 2674 $args['add_args'] = array_merge( $args['add_args'], urlencode_deep( $url_query_args ) ); -
src/wp-includes/plugin.php
332 332 } 333 333 } 334 334 335 if ( isset( $merged_filters[ $tag ] ) ) { 336 unset( $merged_filters[ $tag ] ); 337 } 335 unset( $merged_filters[ $tag ] ); 338 336 339 337 return true; 340 338 } -
src/wp-includes/post.php
1755 1755 function remove_post_type_support( $post_type, $feature ) { 1756 1756 global $_wp_post_type_features; 1757 1757 1758 if ( isset( $_wp_post_type_features[$post_type][$feature] ) ) 1759 unset( $_wp_post_type_features[$post_type][$feature] ); 1758 unset( $_wp_post_type_features[ $post_type ][ $feature ] ); 1760 1759 } 1761 1760 1762 1761 /** -
src/wp-includes/widgets.php
569 569 * @param string $widget_class The name of a {@see WP_Widget} subclass. 570 570 */ 571 571 public function unregister( $widget_class ) { 572 if ( isset($this->widgets[$widget_class]) ) 573 unset($this->widgets[$widget_class]); 572 unset( $this->widgets[ $widget_class ] ); 574 573 } 575 574 576 575 /** … … 851 850 function unregister_sidebar( $name ) { 852 851 global $wp_registered_sidebars; 853 852 854 if ( isset( $wp_registered_sidebars[$name] ) ) 855 unset( $wp_registered_sidebars[$name] ); 853 unset( $wp_registered_sidebars[ $name ] ); 856 854 } 857 855 858 856 /** … … 893 891 894 892 $id_base = _get_widget_id_base($id); 895 893 if ( in_array($output_callback, $_wp_deprecated_widgets_callbacks, true) && !is_callable($output_callback) ) { 896 if ( isset($wp_registered_widget_controls[$id]) ) 897 unset($wp_registered_widget_controls[$id]); 898 899 if ( isset($wp_registered_widget_updates[$id_base]) ) 900 unset($wp_registered_widget_updates[$id_base]); 901 894 unset( $wp_registered_widget_controls[ $id ] ); 895 unset( $wp_registered_widget_updates[ $id_base ] ); 902 896 return; 903 897 } 904 898 … … 1024 1018 } 1025 1019 1026 1020 if ( in_array($control_callback, $_wp_deprecated_widgets_callbacks, true) && !is_callable($control_callback) ) { 1027 if ( isset($wp_registered_widgets[$id]) ) 1028 unset($wp_registered_widgets[$id]); 1029 1021 unset( $wp_registered_widgets[ $id ] ); 1030 1022 return; 1031 1023 } 1032 1024