WordPress.org

Make WordPress Core

Changeset 36943


Ignore:
Timestamp:
03/10/2016 06:20:13 PM (5 years ago)
Author:
obenland
Message:

Twenty Fifteen: Simplify twentyfifteen_the_custom_logo().

See https://github.com/WordPress/twentysixteen/commit/b72e3d8059542542acbd0fdb15f54799109fbf82
See #35944.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php

    r36913 r36943  
    247247 * Displays the optional custom logo.
    248248 *
    249  * Returns early if the custom logo is not available.
     249 * Does nothing if the custom logo is not available.
    250250 *
    251251 * @since Twenty Fifteen 1.5
    252252 */
    253253function twentyfifteen_the_custom_logo() {
    254     if ( ! function_exists( 'the_custom_logo' ) ) {
    255         return;
    256     } else {
     254    if ( function_exists( 'the_custom_logo' ) ) {
    257255        the_custom_logo();
    258256    }
Note: See TracChangeset for help on using the changeset viewer.