Title: core_update_footer
Published: April 25, 2014
Last modified: May 20, 2026

---

# core_update_footer( string $msg = '' ): string

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#user-contributed-notes)

[ Back to top](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#wp--skip-link--target)

Returns core update footer message.

## 󠀁[Parameters](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#parameters)󠁿

 `$msg`stringoptional

Default:`''`

## 󠀁[Return](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#return)󠁿

 string The core update footer message.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#source)󠁿

    ```php
    function core_update_footer( $msg = '' ) {
    	if ( ! current_user_can( 'update_core' ) ) {
    		/* translators: %s: WordPress version. */
    		return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
    	}

    	$cur = get_preferred_from_update_core();

    	if ( ! is_object( $cur ) ) {
    		$cur = new stdClass();
    	}

    	if ( ! isset( $cur->current ) ) {
    		$cur->current = '';
    	}

    	if ( ! isset( $cur->response ) ) {
    		$cur->response = '';
    	}

    	$is_development_version = preg_match( '/alpha|beta|RC/', wp_get_wp_version() );

    	if ( $is_development_version ) {
    		return sprintf(
    			/* translators: 1: WordPress version number, 2: URL to WordPress Updates screen. */
    			__( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ),
    			get_bloginfo( 'version', 'display' ),
    			network_admin_url( 'update-core.php' )
    		);
    	}

    	switch ( $cur->response ) {
    		case 'upgrade':
    			return sprintf(
    				'<strong><a href="%s">%s</a></strong>',
    				network_admin_url( 'update-core.php' ),
    				/* translators: %s: WordPress version. */
    				sprintf( __( 'Get Version %s' ), $cur->current )
    			);

    		case 'latest':
    		default:
    			/* translators: %s: WordPress version. */
    			return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
    	}
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/update.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/update.php#L247)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/update.php#L247-L292)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_get_wp_version()](https://developer.wordpress.org/reference/functions/wp_get_wp_version/)`wp-includes/functions.php` |

Returns the current WordPress version.

  | 
| [get_preferred_from_update_core()](https://developer.wordpress.org/reference/functions/get_preferred_from_update_core/)`wp-admin/includes/update.php` |

Selects the first update version from the update_core option.

  | 
| [network_admin_url()](https://developer.wordpress.org/reference/functions/network_admin_url/)`wp-includes/link-template.php` |

Retrieves the URL to the admin area for the network.

  | 
| [current_user_can()](https://developer.wordpress.org/reference/functions/current_user_can/)`wp-includes/capabilities.php` |

Returns whether the current user has the specified capability.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [get_bloginfo()](https://developer.wordpress.org/reference/functions/get_bloginfo/)`wp-includes/general-template.php` |

Retrieves information about the current site.

  |

[Show 3 more](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.3.0](https://developer.wordpress.org/reference/since/2.3.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/functions/core_update_footer/?output_format=md#comment-content-1865)
 2.   [pixeline](https://profiles.wordpress.org/pixeline/)  [  10 years ago  ](https://developer.wordpress.org/reference/functions/core_update_footer/#comment-1865)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcore_update_footer%2F%23comment-1865)
    Vote results for this note: 2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcore_update_footer%2F%23comment-1865)
 4. I find it annoying when the admin footer tells you that a new WordPress version
    is available (for example “Get Version 4.6.1”) **but does not tell you what your
    current version is**.
     Here is a patch:
 5.     ```php
        // Improve Admin footer update notice.
        if (!function_exists('smarter_update_footer')){
        	function smarter_update_footer( $msg = '' ) {
        		if ( !current_user_can('update_core') )
        			return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
    
        		$cur = get_preferred_from_update_core();
        		if ( ! is_object( $cur ) )
        			$cur = new stdClass;
    
        		if ( ! isset( $cur->current ) )
        			$cur->current = '';
    
        		if ( ! isset( $cur->url ) )
        			$cur->url = '';
    
        		if ( ! isset( $cur->response ) )
        			$cur->response = '';
    
        		switch ( $cur->response ) {
        		case 'development' :
        			return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
    
        		case 'upgrade' :
        			return '<strong>'.sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) ).' - <a href="' . network_admin_url( 'update-core.php' ) . '">' . sprintf( __( 'Get Version %s' ), $cur->current ) . '</a></strong>';
    
        		case 'latest' :
        		default :
        			return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
        		}
        	}
        	add_filter( 'update_footer', 'smarter_update_footer', 9999);
        }
        ```
    
 6.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcore_update_footer%2F%3Freplytocom%3D1865%23feedback-editor-1865)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fcore_update_footer%2F)
before being able to contribute a note or feedback.