Making WordPress.org

Changeset 12404


Ignore:
Timestamp:
02/20/2023 01:21:36 AM (2 years ago)
Author:
dd32
Message:

Photo Directory: Disable the hreflang tags, the photo director is not currently localised.

Fixes #6771.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/head.php

    r12202 r12404  
    1717        add_filter( 'wp_resource_hints',        [ __CLASS__, 'wp_resource_hints' ], 10, 2 );
    1818        add_action( 'wp_head',                  [ __CLASS__, 'json_ld_schema' ], 1 );
     19        add_action( 'wp_head',                  [ __CLASS__, 'disable_hreflang' ], 1 );
     20    }
     21
     22    /**
     23     * Disable the hreflang tags from the parent theme.
     24     */
     25    public static function disable_hreflang() {
     26        remove_action( 'wp_head', 'WordPressdotorg\Theme\hreflang_link_attributes' );
    1927    }
    2028
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/uploads.php

    r12234 r12404  
    111111        /* After upload, after photo validates. */
    112112
    113         // Disable jpeg to webp converstion.
     113        // Disable jpeg to webp conversion.
    114114        add_filter( 'wp_upload_image_mime_transforms',  [ __CLASS__, 'disable_jpeg_to_webp' ] );
    115115
Note: See TracChangeset for help on using the changeset viewer.