Make WordPress Core

Ticket #36835: 36835.3.patch

File 36835.3.patch, 1.9 KB (added by ocean90, 8 years ago)
  • src/wp-includes/class-wp-site.php

     
    318318                if ( false === $details ) {
    319319
    320320                        switch_to_blog( $this->blog_id );
    321                         // Create a raw copy of the object for backwards compatibility with the filter below.
     321                        // Create a raw copy of the object for backward compatibility with the filter below.
    322322                        $details = new stdClass();
    323323                        foreach ( get_object_vars( $this ) as $key => $value ) {
    324324                                $details->$key = $value;
  • src/wp-includes/media.php

     
    699699                        $data = array_shift( $candidates );
    700700                /*
    701701                 * When the size requested is smaller than the thumbnail dimensions, we
    702                  * fall back to the thumbnail size to maintain backwards compatibility with
     702                 * fall back to the thumbnail size to maintain backward compatibility with
    703703                 * pre 4.6 versions of WordPress.
    704704                 */
    705705                } elseif ( ! empty( $imagedata['sizes']['thumbnail'] ) && $imagedata['sizes']['thumbnail']['width'] >= $size[0] && $imagedata['sizes']['thumbnail']['width'] >= $size[1] ) {
  • src/wp-includes/ms-deprecated.php

     
    487487
    488488        $args = wp_parse_args( $args, $defaults );
    489489
    490         // Backwards compatibility
    491         if( is_array( $args['network_id'] ) ){
     490        // Backward compatibility.
     491        if ( is_array( $args['network_id'] ) ){
    492492                $args['network__in'] = $args['network_id'];
    493493                $args['network_id'] = null;
    494494        }
    495495
    496         if( is_numeric( $args['limit'] ) ){
     496        if ( is_numeric( $args['limit'] ) ){
    497497                $args['number'] = $args['limit'];
    498498                $args['limit'] = null;
    499499        }