Changeset 7600 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 08/09/2018 08:58:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r7048 r7600 40 40 add_filter( 'rest_api_allowed_post_types', array( $this, 'filter_allowed_post_types' ) ); 41 41 add_filter( 'pre_update_option_jetpack_options', array( $this, 'filter_jetpack_options' ) ); 42 add_filter( 'jetpack_sitemap_post_types', array( $this, 'jetpack_sitemap_post_types' ) ); 42 43 add_action( 'template_redirect', array( $this, 'prevent_canonical_for_plugins' ), 9 ); 43 44 add_action( 'template_redirect', array( $this, 'custom_redirects' ), 1 ); … … 1233 1234 echo $icon->toSVG(); 1234 1235 die(); 1236 } 1237 1238 /** 1239 * The array of post types to be included in the sitemap. 1240 * 1241 * @param array $post_types List of included post types. 1242 * @return array 1243 */ 1244 public function jetpack_sitemap_post_types( $post_types ) { 1245 $post_types[] = 'plugin'; 1246 1247 return $post_types; 1235 1248 } 1236 1249
Note: See TracChangeset
for help on using the changeset viewer.