
如何修复XAMPP“服务器证书不包含与服务器名称匹配的ID”错误
wp_get_auto_update_message ( No parameters )
wp_get_auto_update_message: 这个函数检索当有新版本的WordPress可用于自动更新时显示的信息。它不接受任何参数,并返回一个信息字符串。
确定要显示的适当的自动更新信息。
function wp_get_auto_update_message() { $next_update_time = wp_next_scheduled( 'wp_version_check' ); // Check if the event exists. if ( false === $next_update_time ) { $message = __( 'Automatic update not scheduled. There may be a problem with WP-Cron.' ); } else { $time_to_next_update = human_time_diff( (int) $next_update_time ); // See if cron is overdue. $overdue = ( time() - $next_update_time ) > 0; if ( $overdue ) { $message = sprintf( /* translators: %s: Duration that WP-Cron has been overdue. */ __( 'Automatic update overdue by %s. There may be a problem with WP-Cron.' ), $time_to_next_update ); } else { $message = sprintf( /* translators: %s: Time until the next update. */ __( 'Automatic update scheduled in %s.' ), $time_to_next_update ); } } return $message; }