WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/24/2017 10:24:07 PM (3 years ago)
Author:
johnbillion
Message:

General: Backport PHP 7.1 fixes to the 4.5 branch to avoid fatal errors and warnings.

Props simonvik, ayeshrajans

See #41135

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/src/wp-includes/user.php

    r37008 r41128  
    2828function wp_signon( $credentials = array(), $secure_cookie = '' ) {
    2929    if ( empty($credentials) ) {
     30        $credentials = array(); // Back-compat for plugins passing an empty string.
     31
    3032        if ( ! empty($_POST['log']) )
    3133            $credentials['user_login'] = $_POST['log'];
Note: See TracChangeset for help on using the changeset viewer.