WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

media_upload_flash_bypass() WP 2.6.0

Displays the multi-file uploader message.

Хуков нет.

Возвращает

Null. Ничего.

Использование

media_upload_flash_bypass();

Заметки

  • Global. Число. $post_ID

Список изменений

С версии 2.6.0 Введена.

Код media upload flash bypass: wp-admin/includes/media.php WP 5.5.1

<?php
function media_upload_flash_bypass() {
	$browser_uploader = admin_url( 'media-new.php?browser-uploader' );

	$post = get_post();
	if ( $post ) {
		$browser_uploader .= '&amp;post_id=' . intval( $post->ID );
	} elseif ( ! empty( $GLOBALS['post_ID'] ) ) {
		$browser_uploader .= '&amp;post_id=' . intval( $GLOBALS['post_ID'] );
	}

	?>
	<p class="upload-flash-bypass">
	<?php
		printf(
			/* translators: 1: URL to browser uploader, 2: Additional link attributes. */
			__( 'You are using the multi-file uploader. Problems? Try the <a href="%1$s" %2$s>browser uploader</a> instead.' ),
			$browser_uploader,
			'target="_blank"'
		);
	?>
	</p>
	<?php
}