Changeset 9936 for sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
- Timestamp:
- 05/28/2020 05:03:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r9870 r9936 1099 1099 } 1100 1100 1101 $post = get_ queried_object();1102 if ( ! $post || !( $post instanceof WP_Post )) {1101 $post = get_post(); 1102 if ( ! $post ) { 1103 1103 return; 1104 1104 } … … 1128 1128 */ 1129 1129 function wporg_themes_noindex_request( $noindex ) { 1130 if ( is_single() && ( $post = get_ queried_object() ) && $post instanceof WP_Post) {1130 if ( is_single() && ( $post = get_post() ) ) { 1131 1131 $theme = wporg_themes_theme_information( $post->post_name ); 1132 1132 if ( $theme ) {
Note: See TracChangeset
for help on using the changeset viewer.