Advertisements

_wp_admin_html_begin

Source code

}

17991

Advertisements

_update_generic_term_count

Definition:
function _update_generic_term_count( $terms, $taxonomy ) {}

Will update term count based on number of objects.
Default callback for the link_category taxonomy.

Parameters

  • array $terms: List of Term taxonomy IDs
  • object $taxonomy: Current taxonomy object of terms

Defined actions

  • edit_term_taxonomy
    do_action( 'edit_term_taxonomy', $term, $taxonomy );
  • edited_term_taxonomy
    do_action( 'edited_term_taxonomy', $term, $taxonomy );

Source code

function _update_generic_term_count( $terms, $taxonomy ) {

	global $wpdb;



	foreach ( (array) $terms as $term ) {

		$count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->term_relationships WHERE term_taxonomy_id = %d", $term ) );



		do_action( 'edit_term_taxonomy', $term, $taxonomy );

		$wpdb->update( $wpdb->term_taxonomy, compact( 'count' ), array( 'term_taxonomy_id' => $term ) );

		do_action( 'edited_term_taxonomy', $term, $taxonomy );

	}

}

17988

_update_blog_date_on_post_publish

Definition:
function _update_blog_date_on_post_publish( $new_status, $old_status, $post ) {}

Handler for updating the blog date when a post is published or an already published post is changed.

Parameters

  • string $new_status: The new post status
  • string $old_status: The old post status
  • object $post: Post object

Source code

function _update_blog_date_on_post_publish( $new_status, $old_status, $post ) {

	$post_type_obj = get_post_type_object( $post->post_type );

	if ( ! $post_type_obj->public )

		return;



	if ( 'publish' != $new_status && 'publish' != $old_status )

		return;



	// Post was freshly published, published post was saved, or published post was unpublished.



	wpmu_update_blogs_date();

}

17985

_redirect_to_about_wordpress

This function is only needed when the existing install is older than 3.3.0.

Parameters

  • $new_version

Source code

?>

17976

_print_styles

Definition:
function _print_styles() {}

Source code

function _print_styles() {

	global $wp_styles, $compress_css;



	$zip = $compress_css ? 1 : 0;

	if ( $zip && defined('ENFORCE_GZIP') && ENFORCE_GZIP )

		$zip = 'gzip';



	if ( !empty($wp_styles->concat) ) {

		$dir = $wp_styles->text_direction;

		$ver = md5("$wp_styles->concat_version{$dir}");

		$href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&load=" . trim($wp_styles->concat, ', ') . "&ver=$ver";

17973