diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 3ec8523a9048101ee59f0e8cf43df76112da6397..82b11996f4ff5e620f5570aa83b83685ffd28534 100644
a
|
b
|
function mysql_to_rfc3339( $date_string ) { |
7421 | 7421 | * @since 4.6.0 |
7422 | 7422 | * |
7423 | 7423 | * @param string $context Optional. Context in which the function is called. Accepts either 'admin', |
7424 | | * 'image', or an arbitrary other context. If an arbitrary context is passed, |
7425 | | * the similarly arbitrary {@see '$context_memory_limit'} filter will be |
| 7424 | * 'image', 'cron' or an arbitrary other context. If an arbitrary context is |
| 7425 | * passed, the similarly arbitrary {@see '$context_memory_limit'} filter will be |
7426 | 7426 | * invoked. Default 'admin'. |
7427 | 7427 | * @return int|string|false The limit that was set or false on failure. |
7428 | 7428 | */ |
… |
… |
function wp_raise_memory_limit( $context = 'admin' ) { |
7482 | 7482 | $filtered_limit = apply_filters( 'image_memory_limit', $filtered_limit ); |
7483 | 7483 | break; |
7484 | 7484 | |
| 7485 | case 'cron': |
| 7486 | /** |
| 7487 | * Filters the memory limit allocated for cron. |
| 7488 | * |
| 7489 | * @param int|string $filtered_limit Maximum memory limit to allocate for cron. |
| 7490 | * Default `WP_MAX_MEMORY_LIMIT` or the original |
| 7491 | * php.ini `memory_limit`, whichever is higher. |
| 7492 | * Accepts an integer (bytes), or a shorthand string |
| 7493 | * notation, such as '256M'. |
| 7494 | */ |
| 7495 | $filtered_limit = apply_filters( 'cron_memory_limit', $filtered_limit ); |
| 7496 | break; |
| 7497 | |
7485 | 7498 | default: |
7486 | 7499 | /** |
7487 | 7500 | * Filters the memory limit allocated for arbitrary contexts. |
diff --git a/src/wp-cron.php b/src/wp-cron.php
index 164e4ef191fc7472ac73258c47a7f1b6ed68a62e..acb5e4d9c4b8649b789a6eb76a46f4399623d8a4 100644
a
|
b
|
if ( ! defined( 'ABSPATH' ) ) { |
46 | 46 | require_once __DIR__ . '/wp-load.php'; |
47 | 47 | } |
48 | 48 | |
| 49 | // Set high memory limit for cron. |
| 50 | wp_raise_memory_limit( 'cron' ); |
| 51 | |
49 | 52 | /** |
50 | 53 | * Retrieves the cron lock. |
51 | 54 | * |