Making WordPress.org

Changeset 5327


Ignore:
Timestamp:
04/13/2017 05:50:55 PM (8 years ago)
Author:
coffee2code
Message:

Support Forums: Re-query for authors or contributors if an empty array was cached.

See #2710, #2735.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php

    r5307 r5327  
    835835        $cache_group = $this->compat() . '-authors-slugs';
    836836        $authors = wp_cache_get( $cache_key, $cache_group );
    837         if ( false === $authors ) {
     837        if ( ! $authors ) {
    838838
    839839            if ( $this->compat() == 'theme' ) {
     
    879879        $cache_group = $this->compat() . '-contributors-slugs';
    880880        $contributors = wp_cache_get( $cache_key, $cache_group );
    881         if ( false === $contributors ) {
     881        if ( ! $contributors ) {
    882882            $prefix = $wpdb->base_prefix . WPORG_PLUGIN_DIRECTORY_BLOGID . '_';
    883883            $contributors = $wpdb->get_col( $wpdb->prepare(
Note: See TracChangeset for help on using the changeset viewer.