[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

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

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

Defines 4 functions

  twenty_twenty_one_switch_theme()
  twenty_twenty_one_upgrade_notice()
  twenty_twenty_one_customize()
  twenty_twenty_one_preview()

Functions
Functions that are not part of a class:

twenty_twenty_one_switch_theme()   X-Ref
Display upgrade notice on theme switch.

since: Twenty Twenty-One 1.0
return: void

twenty_twenty_one_upgrade_notice()   X-Ref
Adds a message for unsuccessful theme switch.

Prints an update nag after an unsuccessful attempt to switch to
the theme on WordPress versions prior to 5.3.

since: Twenty Twenty-One 1.0
return: void

twenty_twenty_one_customize()   X-Ref
Prevents the Customizer from being loaded on WordPress versions prior to 5.3.

since: Twenty Twenty-One 1.0
return: void

twenty_twenty_one_preview()   X-Ref
Prevents the Theme Preview from being loaded on WordPress versions prior to 5.3.

since: Twenty Twenty-One 1.0
return: void



Generated: Tue Apr 23 01:00:02 2024 Cross-referenced by PHPXref 0.7.1