PluginProbe
Gutenberg / 23.7.2
Gutenberg v23.7.2
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / lib / compat / wordpress-7.1 / media.php

media.php in Gutenberg 23.7.2, at lib/compat/wordpress-7.1/media.php

28 lines 716 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Client-side media processing functions.
4 *
5 * @package gutenberg
6 */
7
8 /**
9 * Checks whether client-side media processing is enabled.
10 *
11 * Client-side media processing uses the browser's capabilities to handle
12 * tasks like image resizing and compression before uploading to the server.
13 *
14 * @since 20.8.0
15 *
16 * @return bool Whether client-side media processing is enabled.
17 */
18 function gutenberg_is_client_side_media_processing_enabled() {
19 /**
20 * Filters whether client-side media processing is enabled.
21 *
22 * @since 20.8.0
23 *
24 * @param bool $enabled Whether client-side media processing is enabled. Default true.
25 */
26 return apply_filters( 'wp_client_side_media_processing_enabled', true );
27 }
28