Changeset 9862 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 05/13/2020 05:02:12 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r9684 r9862 50 50 add_filter( 'the_content', array( $this, 'filter_rel_nofollow_ugc' ) ); 51 51 add_action( 'wp_head', array( Template::class, 'json_ld_schema' ), 1 ); 52 add_action( 'wp_head', array( Template::class, 'output_meta' ), 1 );53 52 add_action( 'wp_head', array( Template::class, 'hreflang_link_attributes' ), 2 ); 54 add_action( 'wp_head', array( Template::class, 'archive_link_rel_prev_next' ), 3 ); 55 add_action( 'wp_head', array( Template::class, 'archive_rel_canonical_link' ), 3 ); 53 54 // Add no-index headers where appropriate. 55 add_filter( 'wporg_noindex_request', [ Template::class, 'should_noindex_request' ] ); 56 57 // Fix the Canonical link when needed. 58 add_action( 'wporg_canonical_url', [ Template::class, 'wporg_canonical_url' ] ); 56 59 57 60 // Cron tasks. … … 544 547 remove_action( 'wp_head', 'feed_links', 2 ); 545 548 remove_action( 'wp_head', 'feed_links_extra', 3 ); 546 547 // Remove the core <link rel="canonical"> as we've got a plugin-directory-specific version548 remove_action( 'wp_head', 'rel_canonical' );549 549 550 550 add_filter( 'get_term', array( __NAMESPACE__ . '\I18n', 'translate_term' ) );
Note: See TracChangeset
for help on using the changeset viewer.