Changeset 10084
- Timestamp:
- 07/20/2020 06:41:35 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/theme-directory.php
r10021 r10084 1132 1132 1133 1133 /** 1134 * Noindex outdated themes. 1134 * SEO Tweaks 1135 * - noindex outdated themes. 1136 * - noindex filtered views. 1135 1137 */ 1136 1138 function wporg_themes_noindex_request( $noindex ) { … … 1143 1145 } 1144 1146 } 1147 } 1148 1149 if ( is_tag() ) { 1150 $noindex = true; 1145 1151 } 1146 1152 … … 1315 1321 * Filter the WordPress.org SEO plugin Canonical location to respect Theme Directory differences. 1316 1322 */ 1317 function wporg_ canonical_url( $url ) {1323 function wporg_themes_canonical_url( $url ) { 1318 1324 if ( get_query_var( 'browse' ) && WPORG_THEMES_DEFAULT_BROWSE === get_query_var( 'browse' ) ) { 1319 1325 $url = home_url( '/' ); … … 1325 1331 return $url; 1326 1332 } 1327 add_filter( 'wporg_canonical_url', 'wporg_ canonical_url' );1333 add_filter( 'wporg_canonical_url', 'wporg_themes_canonical_url' ); 1328 1334 1329 1335 // Theme Directory doesn't support pagination.
Note: See TracChangeset
for help on using the changeset viewer.