Making WordPress.org

Changeset 13195


Ignore:
Timestamp:
02/09/2024 02:59:25 AM (10 months ago)
Author:
dd32
Message:

Plugin Directory: Remoev the query_var for taxonomies which are internal and not intended on being queried.

This allows the SEO canonical code to avoid including it in the generated URL.

See #7430.

File:
1 edited

Legend:

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

    r13193 r13195  
    306306        register_taxonomy( 'plugin_committers', array( 'plugin', 'force-count-to-include-all-post_status' ), array(
    307307            'hierarchical'      => false,
    308             'query_var'         => 'plugin_committer',
     308            'query_var'         => false,
    309309            'rewrite'           => false,
    310310            'labels'            => array(
     
    322322        register_taxonomy( 'plugin_support_reps', array( 'plugin', 'force-count-to-include-all-post_status' ), array(
    323323            'hierarchical'      => false,
    324             'query_var'         => 'plugin_support_rep',
     324            'query_var'         => false,
    325325            'rewrite'           => false,
    326326            'labels'            => array(
Note: See TracChangeset for help on using the changeset viewer.