Make WordPress Core


Ignore:
Timestamp:
02/24/2016 10:09:54 PM (9 years ago)
Author:
obenland
Message:

Customize: Introduce Logo support for themes.

Allows a common theme feature to have a common implementation provided by core and available in a consistent location for users.
See https://make.wordpress.org/core/2016/02/24/theme-logo-support/

Props kwight, enejb, jeherve, bhubbard, samhotchkiss, zinigor, eliorivero, adamsilverstein, melchoyce, ryan, mikeschroder, westonruter, pento, karmatosed, celloexpressions, obenland.
See #33755.

File:
1 edited

Legend:

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

    r36642 r36698  
    17511751    }
    17521752
     1753    if ( $post->ID == get_theme_mod( 'site_logo' ) ) {
     1754        $media_states[] = __( 'Logo' );
     1755    }
     1756
    17531757    /**
    17541758     * Filter the default media display states for items in the Media list table.
     
    17571761     *
    17581762     * @param array $media_states An array of media states. Default 'Header Image',
    1759      *                            'Background Image', 'Site Icon'.
     1763     *                            'Background Image', 'Site Icon', 'Logo'.
    17601764     */
    17611765    $media_states = apply_filters( 'display_media_states', $media_states );
Note: See TracChangeset for help on using the changeset viewer.