[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyfifteen/inc/ -> back-compat.php (summary)

Twenty Fifteen back compat functionality Prevents Twenty Fifteen from running on WordPress versions prior to 4.1, since this theme is not meant to be backward compatible beyond that and relies on many newer functions and markup changes introduced in 4.1.

File Size: 83 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  twentyfifteen_switch_theme()
  twentyfifteen_upgrade_notice()
  twentyfifteen_customize()
  twentyfifteen_preview()

Functions
Functions that are not part of a class:

twentyfifteen_switch_theme()   X-Ref
Prevent switching to Twenty Fifteen on old versions of WordPress.

Switches to the default theme.


twentyfifteen_upgrade_notice()   X-Ref
Add message for unsuccessful theme switch.

Prints an update nag after an unsuccessful attempt to switch to
Twenty Fifteen on WordPress versions prior to 4.1.


twentyfifteen_customize()   X-Ref
Prevent the Customizer from being loaded on WordPress versions prior to 4.1.


twentyfifteen_preview()   X-Ref
Prevent the Theme Preview from being loaded on WordPress versions prior to 4.1.




Generated : Tue Apr 23 08:20:01 2024 Cross-referenced by PHPXref