Ticket #36835: 36835.3.patch
File 36835.3.patch, 1.9 KB (added by , 8 years ago) |
---|
-
src/wp-includes/class-wp-site.php
318 318 if ( false === $details ) { 319 319 320 320 switch_to_blog( $this->blog_id ); 321 // Create a raw copy of the object for backward scompatibility with the filter below.321 // Create a raw copy of the object for backward compatibility with the filter below. 322 322 $details = new stdClass(); 323 323 foreach ( get_object_vars( $this ) as $key => $value ) { 324 324 $details->$key = $value; -
src/wp-includes/media.php
699 699 $data = array_shift( $candidates ); 700 700 /* 701 701 * When the size requested is smaller than the thumbnail dimensions, we 702 * fall back to the thumbnail size to maintain backward scompatibility with702 * fall back to the thumbnail size to maintain backward compatibility with 703 703 * pre 4.6 versions of WordPress. 704 704 */ 705 705 } elseif ( ! empty( $imagedata['sizes']['thumbnail'] ) && $imagedata['sizes']['thumbnail']['width'] >= $size[0] && $imagedata['sizes']['thumbnail']['width'] >= $size[1] ) { -
src/wp-includes/ms-deprecated.php
487 487 488 488 $args = wp_parse_args( $args, $defaults ); 489 489 490 // Backward s compatibility491 if ( is_array( $args['network_id'] ) ){490 // Backward compatibility. 491 if ( is_array( $args['network_id'] ) ){ 492 492 $args['network__in'] = $args['network_id']; 493 493 $args['network_id'] = null; 494 494 } 495 495 496 if ( is_numeric( $args['limit'] ) ){496 if ( is_numeric( $args['limit'] ) ){ 497 497 $args['number'] = $args['limit']; 498 498 $args['limit'] = null; 499 499 }