wp_maybe_load_embeds

Definition:
function wp_maybe_load_embeds() {}

Determines if default embed handlers should be loaded.
Checks to make sure that the embeds library hasn’t already been loaded. If it hasn’t, then it will load the embeds library.

Defined filters

  • load_default_embeds
    apply_filters( 'load_default_embeds', true )

Source code

function wp_maybe_load_embeds() {

	if ( ! apply_filters( 'load_default_embeds', true ) )

		return;

	wp_embed_register_handler( 'googlevideo', '#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i', 'wp_embed_handler_googlevideo' );

}

15209

wp_http_supports

Definition:
function wp_http_supports( $capabilities = array() {}

Determines if there is an HTTP Transport that can process this request.

Parameters

  • array $capabilities: Array of capabilities to test or a wp_remote_request() $args array.
  • string $url: Optional. If given, will check if the URL requires SSL and adds that requirement to the capabilities array.

Source code

function wp_http_supports( $capabilities = array(), $url = null ) {

	$objFetchSite = _wp_http_get_object();



	$capabilities = wp_parse_args( $capabilities );



	$count = count( $capabilities );



	// If we have a numeric $capabilities array, spoof a wp_remote_request() associative $args array

	if ( $count && count( array_filter( array_keys( $capabilities ), 'is_numeric' ) ) == $count ) {

		$capabilities = array_combine( array_values( $capabilities ), array_fill( 0, $count, true ) );

	}



	if ( $url && !isset( $capabilities['ssl'] ) ) {

		$scheme = parse_url( $url, PHP_URL_SCHEME );

		if ( 'https' == $scheme || 'ssl' == $scheme ) {

			$capabilities['ssl'] = true;

		}

	}



	return (bool) $objFetchSite->_get_first_available_transport( $capabilities );

}

15137

wp_fullscreen_html

Definition:
function wp_fullscreen_html() {}

Source code

function wp_fullscreen_html() {

	global $content_width, $post;



	$width = isset($content_width) && 800 > $content_width ? $content_width : 800;

	$width = $width + 10; // compensate for the padding

	$dfw_width = get_user_setting( 'dfw_width', $width );

	$save = isset($post->post_status) && $post->post_status == 'publish' ? __('Update') : __('Save');

?>

<div id="wp-fullscreen-body">

<div id="fullscreen-topbar">

	<div id="wp-fullscreen-toolbar">

		<div id="wp-fullscreen-close"><a href="#" onclick="fullscreen.off();return false;"><?php _e('Exit fullscreen'); ?></a></div>

		<div id="wp-fullscreen-central-toolbar" style="width:<?php echo $width; ?>px;">



		<div id="wp-fullscreen-mode-bar"><div id="wp-fullscreen-modes">

			<a href="#" onclick="fullscreen.switchmode('tinymce');return false;"><?php _e('Visual'); ?></a>

			<a href="#" onclick="fullscreen.switchmode('html');return false;"><?php _e('HTML'); ?></a>

		</div></div>



		<div id="wp-fullscreen-button-bar"><div id="wp-fullscreen-buttons" class="wp_themeSkin">

<?php



	$media_link_type = 'image';

	if ( is_multisite() && ( ( ! $mu_media_buttons = get_site_option( 'mu_media_buttons' ) ) || empty( $mu_media_buttons['image'] ) ) )

		$media_link_type = 'media';



	$buttons = array(

		// format: title, onclick, show in both editors

		'bold' => array( 'title' => __('Bold (Ctrl + B)'), 'onclick' => 'fullscreen.b();', 'both' => false ),

		'italic' => array( 'title' => __('Italic (Ctrl + I)'), 'onclick' => 'fullscreen.i();', 'both' => false ),

		'0' => 'separator',

		'bullist' => array( 'title' => __('Unordered list (Alt + Shift + U)'), 'onclick' => 'fullscreen.ul();', 'both' => false ),

		'numlist' => array( 'title' => __('Ordered list (Alt + Shift + O)'), 'onclick' => 'fullscreen.ol();', 'both' => false ),

		'1' => 'separator',

		'blockquote' => array( 'title' => __('Blockquote (Alt+Shift+Q)'), 'onclick' => 'fullscreen.blockquote();', 'both' => false ),

		'image' => array( 'title' => __('Insert/edit image (Alt + Shift + M)'), 'onclick' => "jQuery('#add_{$media_link_type}').click();", 'both' => true ),

15081

wp_embed_handler_googlevideo

Definition:
function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {}

The Google Video embed handler callback. Google Video does not support oEmbed.

Parameters

  • array $matches: The regex matches from the provided regex when calling wp_embed_register_handler().
  • array $attr: Embed attributes.
  • string $url: The original URL that was matched by the regex.
  • array $rawattr: The original unmodified attributes.

Return values

returns:The embed HTML.

Defined filters

  • embed_googlevideo
    apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2])

Source code

function wp_embed_handler_googlevideo( $matches, $attr, $url, $rawattr ) {

	// If the user supplied a fixed width AND height, use it

	if ( !empty($rawattr['width']) && !empty($rawattr['height']) ) {

		$width  = (int) $rawattr['width'];

		$height = (int) $rawattr['height'];

	} else {

		list( $width, $height ) = wp_expand_dimensions( 425, 344, $attr['width'], $attr['height'] );

	}



	return apply_filters( 'embed_googlevideo', '<embed type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docid=' . esc_attr($matches[2]) . '&amp;hl=en&amp;fs=true" style="width:' . esc_attr($width) . 'px;height:' . esc_attr($height) . 'px" allowFullScreen="true" allowScriptAccess="always" />', $matches, $attr, $url, $rawattr );

}

15061

wp_dashboard_quick_press_output

Definition:
function wp_dashboard_quick_press_output() {}

Output the QuickPress dashboard widget.

Source code

function wp_dashboard_quick_press_output() {

	_deprecated_function( __FUNCTION__, '3.2', 'wp_dashboard_quick_press()' );

	wp_dashboard_quick_press();

}

15018