WordPress.org

Making WordPress.org


Ignore:
Timestamp:
05/13/2020 05:02:12 AM (9 months ago)
Author:
dd32
Message:

Plugin Directory: Remove specific SEO fixes that are included in the generic SEO fixes plugin.

See #5173.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php

    r9684 r9862  
    5050        add_filter( 'the_content', array( $this, 'filter_rel_nofollow_ugc' ) );
    5151        add_action( 'wp_head', array( Template::class, 'json_ld_schema' ), 1 );
    52         add_action( 'wp_head', array( Template::class, 'output_meta' ), 1 );
    5352        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' ] );
    5659
    5760        // Cron tasks.
     
    544547        remove_action( 'wp_head', 'feed_links', 2 );
    545548        remove_action( 'wp_head', 'feed_links_extra', 3 );
    546 
    547         // Remove the core <link rel="canonical"> as we've got a plugin-directory-specific version
    548         remove_action( 'wp_head', 'rel_canonical' );
    549549
    550550        add_filter( 'get_term', array( __NAMESPACE__ . '\I18n', 'translate_term' ) );
Note: See TracChangeset for help on using the changeset viewer.