Make WordPress Core


Ignore:
Timestamp:
03/09/2016 11:43:49 PM (10 years ago)
Author:
obenland
Message:

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.

File:
1 edited

Legend:

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

    r36838 r36915  
    7373require_once(ABSPATH . 'wp-admin/includes/class-wp-site-icon.php');
    7474
    75 /** WordPress Custom Logo API */
    76 require_once(ABSPATH . 'wp-admin/includes/class-wp-custom-logo.php');
    77 
    7875/** WordPress Update Administration API */
    7976require_once(ABSPATH . 'wp-admin/includes/update.php');
Note: See TracChangeset for help on using the changeset viewer.