[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

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.

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.

return: void

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

return: void

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

return: void



Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref