Changeset 50829 for trunk/src/wp-includes/media.php
- Timestamp:
- 05/07/2021 11:17:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r50820 r50829 4307 4307 } 4308 4308 4309 /** 4310 * Filters whether the Media Library grid has infinite scrolling. Default `false`. 4311 * 4312 * @since 5.7.0 4313 * 4314 * @param bool $value The filtered value, defaults to `false`. 4315 */ 4316 $infinite_scrolling = apply_filters( 'media_library_infinite_scrolling', false ); 4317 4309 4318 $settings = array( 4310 'tabs' => $tabs,4311 'tabUrl' => add_query_arg( array( 'chromeless' => true ), admin_url( 'media-upload.php' ) ),4312 'mimeTypes' => wp_list_pluck( get_post_mime_types(), 0 ),4319 'tabs' => $tabs, 4320 'tabUrl' => add_query_arg( array( 'chromeless' => true ), admin_url( 'media-upload.php' ) ), 4321 'mimeTypes' => wp_list_pluck( get_post_mime_types(), 0 ), 4313 4322 /** This filter is documented in wp-admin/includes/media.php */ 4314 'captions' => ! apply_filters( 'disable_captions', '' ),4315 'nonce' => array(4323 'captions' => ! apply_filters( 'disable_captions', '' ), 4324 'nonce' => array( 4316 4325 'sendToEditor' => wp_create_nonce( 'media-send-to-editor' ), 4317 4326 ), 4318 'post' => array(4327 'post' => array( 4319 4328 'id' => 0, 4320 4329 ), 4321 'defaultProps' => $props,4322 'attachmentCounts' => array(4330 'defaultProps' => $props, 4331 'attachmentCounts' => array( 4323 4332 'audio' => ( $show_audio_playlist ) ? 1 : 0, 4324 4333 'video' => ( $show_video_playlist ) ? 1 : 0, 4325 4334 ), 4326 'oEmbedProxyUrl' => rest_url( 'oembed/1.0/proxy' ), 4327 'embedExts' => $exts, 4328 'embedMimes' => $ext_mimes, 4329 'contentWidth' => $content_width, 4330 'months' => $months, 4331 'mediaTrash' => MEDIA_TRASH ? 1 : 0, 4335 'oEmbedProxyUrl' => rest_url( 'oembed/1.0/proxy' ), 4336 'embedExts' => $exts, 4337 'embedMimes' => $ext_mimes, 4338 'contentWidth' => $content_width, 4339 'months' => $months, 4340 'mediaTrash' => MEDIA_TRASH ? 1 : 0, 4341 'infiniteScrolling' => ( $infinite_scrolling ) ? 1 : 0, 4332 4342 ); 4333 4343 … … 4413 4423 'searchMediaLabel' => __( 'Search media' ), // Backward compatibility pre-5.3. 4414 4424 'searchMediaPlaceholder' => __( 'Search media items...' ), // Placeholder (no ellipsis), backward compatibility pre-5.3. 4425 /* translators: %d: Number of attachments found in a search. */ 4415 4426 'mediaFound' => __( 'Number of media items found: %d' ), 4416 'mediaFoundHasMoreResults' => __( 'Number of media items displayed: %d. Scroll the page for more results.' ),4417 4427 'noMedia' => __( 'No media items found.' ), 4418 4428 'noMediaTryNewSearch' => __( 'No media items found. Try a different search.' ),
Note: See TracChangeset
for help on using the changeset viewer.