dropdown_cats

Definition:
function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',

Parameters

  • int $optionall
  • string $all
  • string $orderby
  • string $order
  • int $show_last_update
  • int $show_count
  • int $hide_empty
  • bool $optionnone
  • int $selected
  • int $exclude

Source code

function dropdown_cats($optionall = 1, $all = 'All', $orderby = 'ID', $order = 'asc',

		$show_last_update = 0, $show_count = 0, $hide_empty = 1, $optionnone = false,

		$selected = 0, $exclude = 0) {

	_deprecated_function( __FUNCTION__, '2.1', 'wp_dropdown_categories()' );



	$show_option_all = '';

	if ( $optionall )

		$show_option_all = $all;



	$show_option_none = '';

	if ( $optionnone )

		$show_option_none = __('None');



	$vars = compact('show_option_all', 'show_option_none', 'orderby', 'order',

					'show_last_update', 'show_count', 'hide_empty', 'selected', 'exclude');

	$query = add_query_arg($vars, '');

	return wp_dropdown_categories($query);

}

986

dropdown_categories

Definition:
function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() {}

Parameters

  • unknown_type $default
  • unknown_type $parent
  • unknown_type $popular_ids

Source code

function dropdown_categories( $default = 0, $parent = 0, $popular_ids = array() ) {

	_deprecated_function( __FUNCTION__, '2.6', 'wp_category_checklist()' );

	global $post_ID;

	wp_category_checklist( $post_ID );

}

984

drag_drop_help

Definition:
function drag_drop_help() {}

Source code

function drag_drop_help() {

	return '

	<p>' .	__('Most of the modules on this screen can be moved. If you hover your mouse over the title bar of a module you&rsquo;ll notice the 4 arrow cursor appears to let you know it is movable. Click on it, hold down the mouse button and start dragging the module to a new location. As you drag the module, notice the dotted gray box that also moves. This box indicates where the module will be placed when you release the mouse button.') . '</p>

	<p>' . __('The same modules can be expanded and collapsed by clicking once on their title bar and also completely hidden from the Screen Options tab.') . '</p>

';

}

982

do_undismiss_core_update

Definition:
function do_undismiss_core_update() {}

Source code

function do_undismiss_core_update() {

	$version = isset( $_POST['version'] )? $_POST['version'] : false;

	$locale = isset( $_POST['locale'] )? $_POST['locale'] : 'en_US';

	$update = find_core_update( $version, $locale );

	if ( !$update )

		return;

	undismiss_core_update( $version, $locale );

	wp_redirect( wp_nonce_url('update-core.php?action=upgrade-core', 'upgrade-core') );

	exit;

}

980

do_trackbacks

Definition:
function do_trackbacks($post_id) {}

Perform trackbacks.

Parameters

  • int $post_id: Post ID to do trackbacks on.

Defined filters

  • the_content
    apply_filters('the_content', $post->post_content)
  • the_excerpt
    apply_filters('the_excerpt', $post->post_excerpt)
  • the_title
    apply_filters('the_title', $post->post_title, $post->ID)

Source code

function do_trackbacks($post_id) {

	global $wpdb;



	$post = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d", $post_id) );

	$to_ping = get_to_ping($post_id);

	$pinged  = get_pung($post_id);

	if ( empty($to_ping) ) {

		$wpdb->update($wpdb->posts, array('to_ping' => ''), array('ID' => $post_id) );

		return;

	}



	if ( empty($post->post_excerpt) )

		$excerpt = apply_filters('the_content', $post->post_content);

	else

		$excerpt = apply_filters('the_excerpt', $post->post_excerpt);

	$excerpt = str_replace(']]>', ']]&gt;', $excerpt);

	$excerpt = wp_html_excerpt($excerpt, 252) . '...';



	$post_title = apply_filters('the_title', $post->post_title, $post->ID);

	$post_title = strip_tags($post_title);



	if ( $to_ping ) {

		foreach ( (array) $to_ping as $tb_ping ) {

			$tb_ping = trim($tb_ping);

			if ( !in_array($tb_ping, $pinged) ) {

				trackback($tb_ping, $post_title, $excerpt, $post_id);

				$pinged[] = $tb_ping;

			} else {

				$wpdb->query( $wpdb->prepare("UPDATE $wpdb->posts SET to_ping = TRIM(REPLACE(to_ping, %s, '')) WHERE ID = %d", $tb_ping, $post_id) );

			}

		}

	}

}

978