Making WordPress.org

Changeset 2437


Ignore:
Timestamp:
01/30/2016 09:56:41 PM (11 years ago)
Author:
drewapicture
Message:

DevHub: Avoid strict standards errors on variables passed by reference in get_deprecated() and get_private_access_message() template tags.

See #1551. See #1498.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/template-tags.php

    r2435 r2437  
    840840                }
    841841
    842                 $referral = array_shift( wp_filter_object_list( $tags, array( 'name' => 'see' ) ) );
     842                $referral = wp_filter_object_list( $tags, array( 'name' => 'see' ) );
     843                $referral = array_shift( $referral );
    843844
    844845                if ( ! empty( $referral['refers'] ) ) {
    … …  
    13991400                }
    14001401
    1401                 $referral = array_shift( wp_filter_object_list( $tags, array( 'name' => 'see' ) ) );
     1402                $referral = wp_filter_object_list( $tags, array( 'name' => 'see' ) );
     1403                $referral = array_shift( $referral );
    14021404
    14031405                if ( ! empty( $referral['refers'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.