WordPress.org

Make WordPress Core

Changeset 41128


Ignore:
Timestamp:
07/24/2017 10:24:07 PM (2 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:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

  • branches/4.5/src/wp-includes/class-oembed.php

    r37709 r41128  
    222222     */
    223223    public function get_provider( $url, $args = '' ) {
     224        $args = wp_parse_args( $args );
    224225
    225226        $provider = false;
     
    316317     */
    317318    public function get_html( $url, $args = '' ) {
     319        $args = wp_parse_args( $args );
     320
    318321        /**
    319322         * Filters the oEmbed result before any HTTP requests are made.
  • 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'];
  • branches/4.5/src/wp-login.php

    r36867 r41128  
    782782    $reauth = empty($_REQUEST['reauth']) ? false : true;
    783783
    784     $user = wp_signon( '', $secure_cookie );
     784    $user = wp_signon( array(), $secure_cookie );
    785785
    786786    if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.