Changeset 5369 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
- Timestamp:
- 04/19/2017 06:31:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-directory-compat.php
r5327 r5369 838 838 839 839 if ( $this->compat() == 'theme' ) { 840 $theme = $this-> theme;841 $author = get_user_by( 'id', $th is->theme->post_author );840 $theme = $this->get_object( $slug ); 841 $author = get_user_by( 'id', $theme->post_author ); 842 842 $authors = array( $author->user_nicename ); 843 843 } else { 844 $plugin = $this->get_object( $slug ); 844 845 $prefix = $wpdb->base_prefix . WPORG_PLUGIN_DIRECTORY_BLOGID . '_'; 845 846 // Note: Intentionally not considering posts of 'plugin' post_type with … … 853 854 LEFT JOIN {$prefix}term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id 854 855 WHERE tt.taxonomy = 'plugin_committers' AND tr.object_id = %d", 855 $ this->plugin->ID856 $plugin->ID 856 857 ) ); 857 858 } … … 880 881 $contributors = wp_cache_get( $cache_key, $cache_group ); 881 882 if ( ! $contributors ) { 883 $plugin = $this->get_object( $slug ); 882 884 $prefix = $wpdb->base_prefix . WPORG_PLUGIN_DIRECTORY_BLOGID . '_'; 883 885 $contributors = $wpdb->get_col( $wpdb->prepare( … … 887 889 LEFT JOIN {$prefix}term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id 888 890 WHERE tt.taxonomy = 'plugin_contributors' AND tr.object_id = %d", 889 $ this->plugin->ID891 $plugin->ID 890 892 ) ); 891 893
Note: See TracChangeset
for help on using the changeset viewer.