Changeset 55871
- Timestamp:
- 05/30/2023 06:46:58 PM (17 months ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-cron.php
r54866 r55871 46 46 require_once __DIR__ . '/wp-load.php'; 47 47 } 48 49 // Attempt to raise the PHP memory limit for cron event processing. 50 wp_raise_memory_limit( 'cron' ); 48 51 49 52 /** -
trunk/src/wp-includes/functions.php
r55870 r55871 7524 7524 * 7525 7525 * @param string $context Optional. Context in which the function is called. Accepts either 'admin', 7526 * 'image', or an arbitrary other context. If an arbitrary context is passed,7526 * 'image', 'cron', or an arbitrary other context. If an arbitrary context is passed, 7527 7527 * the similarly arbitrary {@see '$context_memory_limit'} filter will be 7528 7528 * invoked. Default 'admin'. … … 7583 7583 */ 7584 7584 $filtered_limit = apply_filters( 'image_memory_limit', $filtered_limit ); 7585 break; 7586 7587 case 'cron': 7588 /** 7589 * Filters the memory limit allocated for WP-Cron event processing. 7590 * 7591 * @since 6.3.0 7592 * 7593 * @param int|string $filtered_limit Maximum memory limit to allocate for WP-Cron. 7594 * Default `WP_MAX_MEMORY_LIMIT` or the original 7595 * php.ini `memory_limit`, whichever is higher. 7596 * Accepts an integer (bytes), or a shorthand string 7597 * notation, such as '256M'. 7598 */ 7599 $filtered_limit = apply_filters( 'cron_memory_limit', $filtered_limit ); 7585 7600 break; 7586 7601
Note: See TracChangeset
for help on using the changeset viewer.