Make WordPress Core

Changeset 57651


Ignore:
Timestamp:
02/18/2024 02:43:42 PM (10 months ago)
Author:
swissspidy
Message:

Canonical: Rename admin_canonical_url filter to wp_admin_canonical_url.

This improves consistency as it matches the name of the function it is used in.

Props peterwilsoncc, shailu25.
Fixes #59545.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/misc.php

    r57612 r57651  
    14061406     * @param string $filtered_url The admin canonical url value.
    14071407     */
    1408     $filtered_url = apply_filters( 'admin_canonical_url', $filtered_url );
     1408    $filtered_url = apply_filters( 'wp_admin_canonical_url', $filtered_url );
    14091409    ?>
    14101410    <link id="wp-admin-canonical" rel="canonical" href="<?php echo esc_url( $filtered_url ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.