Changeset 50264
- Timestamp:
- 02/09/2021 12:32:54 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/modal.js
r50256 r50264 133 133 } 134 134 135 // Pause current audio/video even after closing the modal 135 // Pause current audio/video even after closing the modal. 136 136 $( '.mejs-pause button' ).click(); 137 137 -
trunk/src/wp-admin/includes/media.php
r50258 r50264 431 431 * @since 5.3.0 The `$post_id` parameter was made optional. 432 432 * 433 * @param string[] 434 * @param int 435 * @param string 436 * @param array 433 * @param string[] $file_array Array that represents a `$_FILES` upload array. 434 * @param int $post_id Optional. The post ID the media is associated with. 435 * @param string $desc Optional. Description of the side-loaded file. Default null. 436 * @param array $post_data Optional. Post data to override. Default empty array. 437 437 * @return int|WP_Error The ID of the attachment or a WP_Error on failure. 438 438 */ -
trunk/src/wp-includes/script-loader.php
r50259 r50264 269 269 } 270 270 271 // Manually set the text direction localization after wp-i18n is 272 // printed. This ensures that wp.i18n.isRTL() returns true in RTL 273 // languages. We cannot use $scripts->set_translations( 'wp-i18n' ) to 274 // do this because WordPress prints a script's translations *before* 275 // printing the script, which means, in the case of wp-i18n, that 276 // wp.i18n.setLocaleData() is called before wp.i18n is defined. 271 /* 272 * Manually set the text direction localization after wp-i18n is printed. 273 * This ensures that wp.i18n.isRTL() returns true in RTL languages. 274 * We cannot use $scripts->set_translations( 'wp-i18n' ) to do this 275 * because WordPress prints a script's translations *before* the script, 276 * which means, in the case of wp-i18n, that wp.i18n.setLocaleData() 277 * is called before wp.i18n is defined. 278 */ 277 279 if ( 'wp-i18n' === $handle ) { 278 280 $ltr = _x( 'ltr', 'text direction', 'default' );
Note: See TracChangeset
for help on using the changeset viewer.