WordPress.org

Make WordPress Core

Changeset 48057


Ignore:
Timestamp:
06/16/2020 11:47:31 AM (16 months ago)
Author:
SergeyBiryukov
Message:

Customize: Introduce get_custom_logo_image_attributes filter for the list of custom logo image attributes.

Props achbed, dlh, westonruter.
Fixes #36640.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r48048 r48057  
    975975        }
    976976
     977        /**
     978         * Filters the list of custom logo image attributes.
     979         *
     980         * @since 5.5.0
     981         *
     982         * @param array $custom_logo_attr Custom logo image attributes.
     983         * @param int   $custom_logo_id   Custom logo attachment ID.
     984         * @param int   $blog_id          ID of the blog to get the custom logo for.
     985         */
     986        $custom_logo_attr = apply_filters( 'get_custom_logo_image_attributes', $custom_logo_attr, $custom_logo_id, $blog_id );
     987
    977988        /*
    978989         * If the alt attribute is not empty, there's no need to explicitly pass it
Note: See TracChangeset for help on using the changeset viewer.