Changeset 45590 for trunk/src/wp-includes/option.php
- Timestamp:
- 07/02/2019 11:41:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r45443 r45590 199 199 200 200 if ( ! $alloptions ) { 201 $suppress = $wpdb->suppress_errors(); 202 if ( ! $alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" ) ) { 201 $suppress = $wpdb->suppress_errors(); 202 $alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" ); 203 if ( ! $alloptions_db ) { 203 204 $alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" ); 204 205 } … … 914 915 } 915 916 916 if ( ! $user_id = get_current_user_id() ) { 917 $user_id = get_current_user_id(); 918 if ( ! $user_id ) { 917 919 return; 918 920 } … … 1036 1038 global $_updated_user_settings; 1037 1039 1038 if ( ! $user_id = get_current_user_id() ) { 1040 $user_id = get_current_user_id(); 1041 if ( ! $user_id ) { 1039 1042 return array(); 1040 1043 } … … 1079 1082 global $_updated_user_settings; 1080 1083 1081 if ( ! $user_id = get_current_user_id() ) { 1084 $user_id = get_current_user_id(); 1085 if ( ! $user_id ) { 1082 1086 return false; 1083 1087 } … … 1112 1116 */ 1113 1117 function delete_all_user_settings() { 1114 if ( ! $user_id = get_current_user_id() ) { 1118 $user_id = get_current_user_id(); 1119 if ( ! $user_id ) { 1115 1120 return; 1116 1121 }
Note: See TracChangeset
for help on using the changeset viewer.