Changeset 48400
- Timestamp:
- 07/07/2020 07:19:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r48122 r48400 2167 2167 */ 2168 2168 function upgrade_550() { 2169 global $wp_current_db_version; 2170 2169 2171 update_option( 'finished_updating_comment_type', 0 ); 2170 2172 wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' ); 2171 2173 2172 // Use more clear and inclusive language. 2173 $blocklist = get_option( 'blacklist_keys', '' ); 2174 update_option( 'blocklist_keys', $blocklist ); 2175 delete_option( 'blacklist_keys' ); 2176 2177 $comment_previously_approved = get_option( 'comment_whitelist', '' ); 2178 update_option( 'comment_previously_approved', $comment_previously_approved ); 2179 delete_option( 'comment_whitelist' ); 2174 if ( $wp_current_db_version < 48121 ) { 2175 // Use more clear and inclusive language. 2176 $blocklist = get_option( 'blacklist_keys', '' ); 2177 update_option( 'blocklist_keys', $blocklist ); 2178 delete_option( 'blacklist_keys' ); 2179 2180 $comment_previously_approved = get_option( 'comment_whitelist', '' ); 2181 update_option( 'comment_previously_approved', $comment_previously_approved ); 2182 delete_option( 'comment_whitelist' ); 2183 } 2180 2184 } 2181 2185
Note: See TracChangeset
for help on using the changeset viewer.