Making WordPress.org

Changeset 3293


Ignore:
Timestamp:
06/02/2016 03:49:34 PM (9 years ago)
Author:
ocean90
Message:

Theme/Plugin Directory: Update sunrise.php code to reflect changes in [dotorg11753].

Sunrise: get_blog_details() must be called with false as the 2nd parameter while in sunrise - untrailingslashit() is not yet available (which will be hit with a cold blog details cache).

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r3290 r3293  
    312312     *     // All non-rosetta networks define DOMAIN_CURRENT_SITE in wp-config.php
    313313     *     if ( ! defined( 'DOMAIN_CURRENT_SITE' ) && 'wordpress.org' != $domain && '/plugins/' == substr( $path . '/', 0, 9 ) ) {
    314      *          $site = get_blog_details( WPORG_PLUGIN_DIRECTORY_BLOGID );
     314     *          $site = get_blog_details( WPORG_PLUGIN_DIRECTORY_BLOGID, false );
    315315     *          if ( $site ) {
    316316     *              $site = clone $site;
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php

    r3058 r3293  
    11421142 *     // All non-rosetta networks define DOMAIN_CURRENT_SITE in wp-config.php
    11431143 *     if ( ! defined( 'DOMAIN_CURRENT_SITE' ) && 'wordpress.org' != $domain && '/themes/' == substr( $path . '/', 0, 8 ) ) {
    1144  *          $site = get_blog_details( WPORG_THEME_DIRECTORY_BLOGID );
     1144 *          $site = get_blog_details( WPORG_THEME_DIRECTORY_BLOGID, false );
    11451145 *          if ( $site ) {
    11461146 *              $site = clone $site;
Note: See TracChangeset for help on using the changeset viewer.