update_right_now_message

Definition:
function update_right_now_message() {}

Source code

function update_right_now_message() {

	if ( is_multisite() && !current_user_can('update_core') )

		return false;



	$cur = get_preferred_from_update_core();



	$msg = sprintf( __('You are using <span class="b">WordPress %s</span>.'), $GLOBALS['wp_version'] );



	if ( isset( $cur->response ) && $cur->response == 'upgrade' && current_user_can('update_core') ) {

		$msg .= " <a href='" . network_admin_url( 'update-core.php' ) . "' class='button'>" . sprintf( __('Update to %s'), $cur->current ? $cur->current : __( 'Latest' ) ) . '</a>';

	}



	echo "<span id='wp-version-message'>$msg</span>";

}

3203

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: