Make WordPress Core


Ignore:
Timestamp:
03/09/2015 02:10:36 AM (11 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-admin/upgrade.php

    r31124 r31681  
    8282    case 0:
    8383        $goback = wp_get_referer();
    84         $goback = esc_url_raw( $goback );
    85         $goback = urlencode( $goback );
     84        if ( $goback ) {
     85            $goback = esc_url_raw( $goback );
     86            $goback = urlencode( $goback );
     87        }
    8688?>
    8789<h2><?php _e( 'Database Update Required' ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.