WordPress.org

Make WordPress Core

Changeset 41129


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

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

See #41135

Location:
branches/4.4
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

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

    r37798 r41129  
    198198     */
    199199    public function get_provider( $url, $args = '' ) {
     200        $args = wp_parse_args( $args );
    200201
    201202        $provider = false;
     
    285286     */
    286287    public function get_html( $url, $args = '' ) {
     288        $args = wp_parse_args( $args );
     289
    287290        /**
    288291         * Filters the oEmbed result before any HTTP requests are made.
  • branches/4.4/src/wp-includes/user.php

    r35772 r41129  
    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.4/src/wp-login.php

    r36043 r41129  
    773773    $reauth = empty($_REQUEST['reauth']) ? false : true;
    774774
    775     $user = wp_signon( '', $secure_cookie );
     775    $user = wp_signon( array(), $secure_cookie );
    776776
    777777    if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.