_access_denied_splash

Definition:
function _access_denied_splash() {}

Source code

function _access_denied_splash() {

	if ( ! is_user_logged_in() || is_network_admin() )

		return;



	$blogs = get_blogs_of_user( get_current_user_id() );



	if ( wp_list_filter( $blogs, array( 'userblog_id' => get_current_blog_id() ) ) )

		return;



	$blog_name = get_bloginfo( 'name' );



	if ( empty( $blogs ) )

		wp_die( sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) );



	$output = '<p>' . sprintf( __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ), $blog_name ) . '</p>';

	$output .= '<p>' . __( 'If you reached this screen by accident and meant to visit one of your own sites, here are some shortcuts to help you find your way.' ) . '</p>';



	$output .= '<h3>' . __('Your Sites') . '</h3>';

	$output .= '<table>';



	foreach ( $blogs as $blog ) {

		$output .= "<tr>";

		$output .= "<td valign='top'>";

		$output .= "{$blog->blogname}";

		$output .= "</td>";

		$output .= "<td valign='top'>";

		$output .= "<a href='" . esc_url( get_admin_url( $blog->userblog_id ) ) . "'>" . __( 'Visit Dashboard' ) . "</a> | <a href='" . esc_url( get_home_url( $blog->userblog_id ) ). "'>" . __( 'View Site' ) . "</a>" ;

		$output .= "</td>";

		$output .= "</tr>";

	}

15414

wp_timezone_supported

Definition:
function wp_timezone_supported() {}

Check for PHP timezone support

Source code

function wp_timezone_supported() {

	_deprecated_function( __FUNCTION__, '3.2' );



	return true;

}

15352

wp_quicktags

Definition:
function wp_quicktags() {}

Source code

function wp_quicktags() {

	global $tinymce_version;



	wp_preload_dialogs( array( 'plugins' => 'wpdialogs,wplink,wpfullscreen' ) );



	if ( !user_can_richedit() ) {

		wp_enqueue_style( 'tinymce-buttons', includes_url('js/tinymce/themes/advanced/skins/wp_theme/ui.css'), array(), $tinymce_version );

		wp_print_styles('tinymce-buttons');

	}

}

15266

wp_print_editor_js

Definition:
function wp_print_editor_js() {}

Source code

function wp_print_editor_js() {

	wp_print_scripts('editor');

}

15257

wp_preload_dialogs

Definition:
function wp_preload_dialogs($init) {}

Parameters

  • $init

Source code

function wp_preload_dialogs($init) {

	$plugins = preg_split('/[ ,-]+/', $init['plugins']);



	if ( in_array( 'wpdialogs', $plugins, true ) ) {

		wp_print_scripts('wpdialogs-popup');

		wp_print_styles('wp-jquery-ui-dialog');

	}



	if ( in_array( 'wplink', $plugins, true ) ) {

		require_once ABSPATH . 'wp-admin/includes/internal-linking.php';

		?><div style="display:none;"><?php wp_link_dialog(); ?></div><?php

		wp_print_scripts('wplink');

		wp_print_styles('wplink');

	}



	// Distraction Free Writing mode

	if ( in_array( 'wpfullscreen', $plugins, true ) ) {

		wp_fullscreen_html();

		wp_print_scripts('wp-fullscreen');

	}



	wp_print_scripts('word-count');

}

15253