wp_tiny_mce_preload_dialogs

Definition:
function wp_tiny_mce_preload_dialogs() { ?>

Defined actions

  • tiny_mce_preload_dialogs
    do_action('tiny_mce_preload_dialogs');

Source code

function wp_tiny_mce_preload_dialogs() { ?>

	<div id="preloaded-dialogs" style="display:none;">

<?php 	do_action('tiny_mce_preload_dialogs'); ?>

	</div>

<?php }

11012

wp_theme_update_rows

Definition:
function wp_theme_update_rows() {}

Source code

function wp_theme_update_rows() {

	if ( !current_user_can('update_themes' ) )

		return;



	$themes = get_site_transient( 'update_themes' );

	if ( isset($themes->response) && is_array($themes->response) ) {

		$themes = array_keys( $themes->response );



		foreach( $themes as $theme ) {

			add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );

		}

	}

}

11005

wp_theme_update_row

Definition:
function wp_theme_update_row( $theme_key, $theme ) {}

Parameters

  • $theme_key
  • $theme

Defined actions

  • in_theme_update_message-$theme_key
    do_action( "in_theme_update_message-$theme_key", $theme, $r );

Source code

function wp_theme_update_row( $theme_key, $theme ) {

	$current = get_site_transient( 'update_themes' );

	if ( !isset( $current->response[ $theme_key ] ) )

		return false;

	$r = $current->response[ $theme_key ];

	$themes_allowedtags = array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array());

	$theme_name = wp_kses( $theme['Name'], $themes_allowedtags );



	$details_url = self_admin_url("theme-install.php?tab=theme-information&theme=$theme_key&TB_iframe=true&width=600&height=400");



	$wp_list_table = _get_list_table('WP_MS_Themes_List_Table');



	echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';

	if ( ! current_user_can('update_themes') )

		printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version );

	else if ( empty( $r['package'] ) )

		printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] );

	else

		printf( __('There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%3$s">View version %4$s details</a> or <a href="%5$s">update automatically</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) );



	do_action( "in_theme_update_message-$theme_key", $theme, $r );



	echo '</div></td></tr>';

}

11003

wp_schedule_update_network_counts

Definition:
function wp_schedule_update_network_counts() {}

Schedule update of the network-wide counts for the current network.

Source code

function wp_schedule_update_network_counts() {

	if ( !is_main_site() )

		return;



	if ( !wp_next_scheduled('update_network_counts') && !defined('WP_INSTALLING') )

		wp_schedule_event(time(), 'twicedaily', 'update_network_counts');

}

10964

wp_schedule_update_checks

Definition:
function wp_schedule_update_checks() {}

Schedule core, theme, and plugin update checks.

Source code

function wp_schedule_update_checks() {

	if ( !wp_next_scheduled('wp_version_check') && !defined('WP_INSTALLING') )

		wp_schedule_event(time(), 'twicedaily', 'wp_version_check');



	if ( !wp_next_scheduled('wp_update_plugins') && !defined('WP_INSTALLING') )

		wp_schedule_event(time(), 'twicedaily', 'wp_update_plugins');



	if ( !wp_next_scheduled('wp_update_themes') && !defined('WP_INSTALLING') )

		wp_schedule_event(time(), 'twicedaily', 'wp_update_themes');

}

10962