WordPress Version: 0.5
/**
* Execute changes made in WordPress 4.0.4.
*
* @since 4.0.4
*/
function upgrade_404()
{
}
The timeline below displays how wordpress function upgrade_404 has changed across different WordPress versions. If a version is not listed, refer to the next available version below.
/**
* Execute changes made in WordPress 4.0.4.
*
* @since 4.0.4
*/
function upgrade_404()
{
}
/**
* Execute changes made in WordPress 4.0.4.
*
* @since 4.0.4
*/
function upgrade_404()
{
global $wp_current_db_version, $wpdb;
if ($wp_current_db_version < 29631) {
$content_length = $wpdb->get_col_length($wpdb->comments, 'comment_content');
if (!$content_length) {
$content_length = 65535;
}
$comments = $wpdb->get_results("SELECT comment_ID FROM {$wpdb->comments}\n\t\t\tWHERE comment_date_gmt > '2015-04-26'\n\t\t\tAND CHAR_LENGTH( comment_content ) >= {$content_length}\n\t\t\tAND ( comment_content LIKE '%<%' OR comment_content LIKE '%>%' )");
foreach ($comments as $comment) {
wp_delete_comment($comment->comment_ID, true);
}
}
}
/**
* Execute changes made in WordPress 4.0.4.
*
* @since 4.0.4
*/
function upgrade_404()
{
}