twentyfourteen_upgrade_notice
Add message for unsuccessful theme switch.
Description
twentyfourteen_upgrade_notice();
Prints an update nag after an unsuccessful attempt to switch to Twenty Fourteen on WordPress versions prior to 3.6.
Usage
if ( !function_exists( 'twentyfourteen_upgrade_notice' ) ) { require_once '/inc/back-compat.php'; } // NOTICE! Understand what this does before running. $result = twentyfourteen_upgrade_notice();
Defined (1)
The function is defined in the following location(s).
- /inc/back-compat.php
- function twentyfourteen_upgrade_notice() {
- $message = sprintf( __( 'Twenty Fourteen requires at least WordPress version 3.6. You are running version %s. Please upgrade and try again.', 'twentyfourteen' ), $GLOBALS['wp_version'] );
- printf( '<div class="error"><p>%s</p></div>', $message );
- }