Make WordPress Core


Ignore:
Timestamp:
03/09/2015 02:10:36 AM (10 years ago)
Author:
wonderboymusic
Message:

There are a few functions that have the ability to return false instead of a string, so the return value should be checked before being passed to functions that expect string.

These are trivial, but they clear out some Scrutinizer issues.

See #30799.

File:
1 edited

Legend:

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

    r31224 r31681  
    10511051 * @since 2.1.0
    10521052 *
    1053  * @return string
     1053 * @return string|false
    10541054 */
    10551055function get_header_image() {
     
    11541154 */
    11551155function header_image() {
    1156     echo esc_url( get_header_image() );
     1156    $image = get_header_image();
     1157    if ( $image ) {
     1158        echo esc_url( $image );
     1159    }
    11571160}
    11581161
Note: See TracChangeset for help on using the changeset viewer.