Making WordPress.org

Ticket #2514: meta-2514.patch

File meta-2514.patch, 1.6 KB (added by SergeyBiryukov, 7 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php

     
    725725                                $author = get_user_by( 'id', $this->theme->post_author );
    726726                                $authors = array( $author->user_login );
    727727                        } else {
    728                                 $authors = $wpdb->get_col( $wpdb->prepare( " SELECT user FROM plugin_2_svn_access WHERE `path` = %s", '/' . $slug ) );
     728                                $authors = $wpdb->get_col( $wpdb->prepare( " SELECT user FROM " . PLUGINS_TABLE_PREFIX . "svn_access WHERE `path` = %s", '/' . $slug ) );
    729729                        }
    730730
    731731                        wp_cache_set( $cache_key, $authors, $cache_group, HOUR_IN_SECONDS );
     
    753753                if ( false === $contributors ) {
    754754                        // @todo Update this when the Plugin Directory switches over to WordPress.
    755755                        $contributors = $wpdb->get_var( $wpdb->prepare(
    756                                 "SELECT meta_value FROM plugin_2_meta m LEFT JOIN plugin_2_topics t ON m.object_id = t.topic_id WHERE t.topic_slug = %s AND m.object_type = %s AND m.meta_key = %s",
     756                                "SELECT meta_value FROM " . PLUGINS_TABLE_PREFIX . "meta m LEFT JOIN " . PLUGINS_TABLE_PREFIX . "topics t ON m.object_id = t.topic_id WHERE t.topic_slug = %s AND m.object_type = %s AND m.meta_key = %s",
    757757                                $slug, 'bb_topic', 'contributors' ) );
    758758                        if ( $contributors ) {
    759759                                $contributors = unserialize( $contributors );