[wp-trac] [WordPress Trac] #33755: Add Site Logo to WordPress Core
WordPress Trac
noreply at wordpress.org
Wed Mar 9 23:43:51 UTC 2016
#33755: Add Site Logo to WordPress Core
-------------------------------------------------+-------------------------
Reporter: fatmedia | Owner: obenland
Type: task (blessed) | Status: assigned
Priority: normal | Milestone: 4.5
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: ux-feedback needs-unit-tests has- | Focuses: ui
screenshots needs-patch |
-------------------------------------------------+-------------------------
Comment (by obenland):
In [changeset:"36915"]:
{{{
#!CommitTicketReference repository="" revision="36915"
Customize: Only add custom logo’s header text control if needed.
Dissolves `WP_CustomLogo` and adopts a structure similar to custom header
and background (See `_delete_attachment_theme_mod()`).
The option to hide header text only gets added if it’s not already part of
custom header, and only if selectors have been registered when theme
support for custom logos was declared. Themes can add `postMessage`
support for it as well.
Example:
{{{
add_theme_support( 'custom-logo', array(
'size' => ‘large’,
'header-text' => array( 'site-title', 'site-description' ),
) );
}}}
See #33755.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33755#comment:138>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list