flush_rewrite_rules

Definition:
function flush_rewrite_rules( $hard = true ) {}

Remove rewrite rules and then recreate rewrite rules.

Parameters

  • bool $hard: Whether to update .htaccess (hard flush) or just update rewrite_rules transient (soft flush). Default is true (hard).

Source code

function flush_rewrite_rules( $hard = true ) {

	global $wp_rewrite;

	$wp_rewrite->flush_rules( $hard );

}

1080

floated_admin_avatar

Definition:
function floated_admin_avatar( $name ) {}

Add avatars to relevant places in admin, or try to.

Parameters

  • string $name: User name.

Return values

returns:Avatar with Admin name.

Source code

function floated_admin_avatar( $name ) {

	global $comment;

	$avatar = get_avatar( $comment, 32 );

	return "$avatar $name";

}

1078

fix_phpmailer_messageid

Definition:
function fix_phpmailer_messageid( $phpmailer ) {}

Correct From host on outgoing mail to match the site domain

Parameters

  • $phpmailer

Source code

function fix_phpmailer_messageid( $phpmailer ) {

	global $current_site;

	$phpmailer->Hostname = $current_site->domain;

}

1076

fix_import_form_size

Definition:
function fix_import_form_size( $size ) {}

Get the remaining upload space for this blog.

Parameters

  • int $size

Source code

function fix_import_form_size( $size ) {

	if ( upload_is_user_over_quota( false ) == true )

		return 0;



	$spaceAllowed = 1024 * 1024 * get_space_allowed();

	$dirsize = get_dirsize( BLOGUPLOADDIR );

	if ( $size > $spaceAllowed - $dirsize )

		return $spaceAllowed - $dirsize; // remaining space

	else

		return $size; // default

}

1074

find_posts_div

Definition:
function find_posts_div($found_action = '') {}

Parameters

  • unknown_type $found_action

Source code

function find_posts_div($found_action = '') {

?>

	<div id="find-posts" class="find-box" style="display:none;">

		<div id="find-posts-head" class="find-box-head"><?php _e('Find Posts or Pages'); ?></div>

		<div class="find-box-inside">

			<div class="find-box-search">

				<?php if ( $found_action ) { ?>

					<input type="hidden" name="found_action" value="<?php echo esc_attr($found_action); ?>" />

				<?php } ?>



				<input type="hidden" name="affected" id="affected" value="" />

				<?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?>

				<label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label>

				<input type="text" id="find-posts-input" name="ps" value="" />

				<input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />



				<?php

				$post_types = get_post_types( array('public' => true), 'objects' );

				foreach ( $post_types as $post ) {

					if ( 'attachment' == $post->name )

						continue;

				?>

				<input type="radio" name="find-posts-what" id="find-posts-<?php echo esc_attr($post->name); ?>" value="<?php echo esc_attr($post->name); ?>" <?php checked($post->name,  'post'); ?> />

				<label for="find-posts-<?php echo esc_attr($post->name); ?>"><?php echo $post->label; ?></label>

				<?php

				} ?>

			</div>

			<div id="find-posts-response"></div>

		</div>

		<div class="find-box-buttons">

			<input id="find-posts-close" type="button" class="button alignleft" value="<?php esc_attr_e('Close'); ?>" />

			<?php submit_button( __( 'Select' ), 'button-primary alignright', 'find-posts-submit', false ); ?>

		</div>

	</div>

<?php

}

1072