| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | /** |
| 36 | 36 | * Converts a time into an ISO 8601 extended formatted string. |
| 37 | 37 | * |
| 38 | 38 | * @param int|bool $time Seconds since unix epoc |
| 39 | - * @param int $offset Hour offset | |
| 39 | + * @param int $offset Hour offset | |
| 40 | 40 | * |
| 41 | 41 | * @return string an ISO 8601 extended formatted time |
| 42 | 42 | */ |
| 43 | 43 | function wp_stream_get_iso_8601_extended_date( $time = false, $offset = 0 ) { |
| @@ -64,10 +64,10 @@ | ||
| 64 | 64 | /** |
| 65 | 65 | * Encode to JSON in a way that is also backwards compatible |
| 66 | 66 | * |
| 67 | 67 | * @param mixed $data |
| 68 | - * @param int $options (optional) | |
| 69 | - * @param int $depth (optional) | |
| 68 | + * @param int $options (optional) | |
| 69 | + * @param int $depth (optional) | |
| 70 | 70 | * |
| 71 | 71 | * @return string |
| 72 | 72 | */ |
| 73 | 73 | function wp_stream_json_encode( $data, $options = 0, $depth = 512 ) { |
| @@ -115,9 +115,10 @@ | ||
| 115 | 115 | return function_exists( 'wpcom_vip_load_plugin' ); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | - * True if native WP Cron is enabled, otherwise false | |
| 119 | + * Check if the default front-end WP Cron is enabled. It doesn't | |
| 120 | + * mean that the Cron is disabled in general. | |
| 120 | 121 | * |
| 121 | 122 | * @return bool |
| 122 | 123 | */ |
| 123 | 124 | function wp_stream_is_cron_enabled() { |
| @@ -130,9 +131,11 @@ | ||
| 130 | 131 | * @return string |
| 131 | 132 | */ |
| 132 | 133 | function wp_stream_min_suffix() { |
| 133 | 134 | $min = ''; |
| 134 | - if ( ! defined( 'SCRIPT_DEBUG' ) || false === SCRIPT_DEBUG ) { | |
| 135 | + $is_script_debugging = ! defined( 'SCRIPT_DEBUG' ) || false === SCRIPT_DEBUG; | |
| 136 | + | |
| 137 | + if ( apply_filters( 'wp_stream_load_min_assets', $is_script_debugging ) ) { | |
| 135 | 138 | $min = 'min.'; |
| 136 | 139 | } |
| 137 | 140 | |
| 138 | 141 | return $min; |