Changeset 47550 for trunk/src/wp-includes/class-wp-user-query.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user-query.php
r47122 r47550 757 757 758 758 $_orderby = ''; 759 if ( in_array( $orderby, array( 'login', 'nicename', 'email', 'url', 'registered' ) ) ) {759 if ( in_array( $orderby, array( 'login', 'nicename', 'email', 'url', 'registered' ), true ) ) { 760 760 $_orderby = 'user_' . $orderby; 761 } elseif ( in_array( $orderby, array( 'user_login', 'user_nicename', 'user_email', 'user_url', 'user_registered' ) ) ) {761 } elseif ( in_array( $orderby, array( 'user_login', 'user_nicename', 'user_email', 'user_url', 'user_registered' ), true ) ) { 762 762 $_orderby = $orderby; 763 763 } elseif ( 'name' == $orderby || 'display_name' == $orderby ) { … … 829 829 */ 830 830 public function __get( $name ) { 831 if ( in_array( $name, $this->compat_fields ) ) {831 if ( in_array( $name, $this->compat_fields, true ) ) { 832 832 return $this->$name; 833 833 } … … 844 844 */ 845 845 public function __set( $name, $value ) { 846 if ( in_array( $name, $this->compat_fields ) ) {846 if ( in_array( $name, $this->compat_fields, true ) ) { 847 847 return $this->$name = $value; 848 848 } … … 858 858 */ 859 859 public function __isset( $name ) { 860 if ( in_array( $name, $this->compat_fields ) ) {860 if ( in_array( $name, $this->compat_fields, true ) ) { 861 861 return isset( $this->$name ); 862 862 } … … 871 871 */ 872 872 public function __unset( $name ) { 873 if ( in_array( $name, $this->compat_fields ) ) {873 if ( in_array( $name, $this->compat_fields, true ) ) { 874 874 unset( $this->$name ); 875 875 }
Note: See TracChangeset
for help on using the changeset viewer.