diff --git src/wp-content/themes/twentyeleven/functions.php src/wp-content/themes/twentyeleven/functions.php
index 7dc3bf52ef..08dc07255c 100644
|
|
|
if ( ! function_exists( 'twentyeleven_setup' ) ) : |
| 79 | 79 | * If you're building a theme based on Twenty Eleven, use |
| 80 | 80 | * a find and replace to change 'twentyeleven' to the name |
| 81 | 81 | * of your theme in all the template files. |
| | 82 | * Manual loading of text domain is not required after the introduction of |
| | 83 | * just in time loading for translations in WordPress version 4.6. |
| 82 | 84 | */ |
| 83 | | load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' ); |
| | 85 | if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { |
| | 86 | load_theme_textdomain( 'twentyeleven', get_template_directory() . '/languages' ); |
| | 87 | } |
| 84 | 88 | |
| 85 | 89 | // This theme styles the visual editor with editor-style.css to match the theme style. |
| 86 | 90 | add_editor_style(); |
diff --git src/wp-content/themes/twentyfifteen/functions.php src/wp-content/themes/twentyfifteen/functions.php
index 0528a01be9..50b4ccff4d 100644
|
|
|
if ( ! function_exists( 'twentyfifteen_setup' ) ) : |
| 57 | 57 | * Make theme available for translation. |
| 58 | 58 | * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentyfifteen |
| 59 | 59 | * If you're building a theme based on twentyfifteen, use a find and replace |
| 60 | | * to change 'twentyfifteen' to the name of your theme in all the template files |
| | 60 | * to change 'twentyfifteen' to the name of your theme in all the template files. |
| | 61 | * Manual loading of text domain is not required after the introduction of |
| | 62 | * just in time loading for translations in WordPress version 4.6. |
| 61 | 63 | */ |
| 62 | | load_theme_textdomain( 'twentyfifteen' ); |
| | 64 | |
| | 65 | if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { |
| | 66 | load_theme_textdomain( 'twentyfifteen' ); |
| | 67 | } |
| 63 | 68 | |
| 64 | 69 | // Add default posts and comments RSS feed links to head. |
| 65 | 70 | add_theme_support( 'automatic-feed-links' ); |
diff --git src/wp-content/themes/twentyfourteen/functions.php src/wp-content/themes/twentyfourteen/functions.php
index 22305e5b97..b044c991f6 100644
|
|
|
if ( ! function_exists( 'twentyfourteen_setup' ) ) : |
| 64 | 64 | * If you're building a theme based on Twenty Fourteen, use a find and |
| 65 | 65 | * replace to change 'twentyfourteen' to the name of your theme in all |
| 66 | 66 | * template files. |
| | 67 | * Manual loading of text domain is not required after the introduction of |
| | 68 | * just in time loading for translations in WordPress version 4.6. |
| 67 | 69 | */ |
| 68 | | load_theme_textdomain( 'twentyfourteen' ); |
| | 70 | if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { |
| | 71 | load_theme_textdomain( 'twentyfourteen' ); |
| | 72 | } |
| 69 | 73 | |
| 70 | 74 | /* |
| 71 | 75 | * This theme styles the visual editor to resemble the theme style. |
diff --git src/wp-content/themes/twentynineteen/functions.php src/wp-content/themes/twentynineteen/functions.php
index 98c4108577..b3877a3f77 100644
|
|
|
if ( ! function_exists( 'twentynineteen_setup' ) ) : |
| 26 | 26 | * as indicating support for post thumbnails. |
| 27 | 27 | */ |
| 28 | 28 | function twentynineteen_setup() { |
| 29 | | /* |
| 30 | | * Make theme available for translation. |
| 31 | | * Translations can be filed in the /languages/ directory. |
| 32 | | * If you're building a theme based on Twenty Nineteen, use a find and replace |
| 33 | | * to change 'twentynineteen' to the name of your theme in all the template files. |
| 34 | | */ |
| 35 | | load_theme_textdomain( 'twentynineteen', get_template_directory() . '/languages' ); |
| 36 | 29 | |
| 37 | 30 | // Add default posts and comments RSS feed links to head. |
| 38 | 31 | add_theme_support( 'automatic-feed-links' ); |
diff --git src/wp-content/themes/twentyseventeen/functions.php src/wp-content/themes/twentyseventeen/functions.php
index 8ecc87b858..6b6b203a2d 100644
|
|
|
if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '<' ) ) { |
| 25 | 25 | * as indicating support for post thumbnails. |
| 26 | 26 | */ |
| 27 | 27 | function twentyseventeen_setup() { |
| 28 | | /* |
| 29 | | * Make theme available for translation. |
| 30 | | * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentyseventeen |
| 31 | | * If you're building a theme based on Twenty Seventeen, use a find and replace |
| 32 | | * to change 'twentyseventeen' to the name of your theme in all the template files. |
| 33 | | */ |
| 34 | | load_theme_textdomain( 'twentyseventeen' ); |
| 35 | 28 | |
| 36 | 29 | // Add default posts and comments RSS feed links to head. |
| 37 | 30 | add_theme_support( 'automatic-feed-links' ); |
diff --git src/wp-content/themes/twentysixteen/functions.php src/wp-content/themes/twentysixteen/functions.php
index d098a1ebde..b07df1e8b0 100644
|
|
|
if ( ! function_exists( 'twentysixteen_setup' ) ) : |
| 49 | 49 | * Make theme available for translation. |
| 50 | 50 | * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentysixteen |
| 51 | 51 | * If you're building a theme based on Twenty Sixteen, use a find and replace |
| 52 | | * to change 'twentysixteen' to the name of your theme in all the template files |
| | 52 | * to change 'twentysixteen' to the name of your theme in all the template files. |
| | 53 | * Manual loading of text domain is not required after the introduction of |
| | 54 | * just in time loading for translations in WordPress version 4.6. |
| 53 | 55 | */ |
| 54 | | load_theme_textdomain( 'twentysixteen' ); |
| | 56 | if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { |
| | 57 | load_theme_textdomain( 'twentysixteen' ); |
| | 58 | } |
| 55 | 59 | |
| 56 | 60 | // Add default posts and comments RSS feed links to head. |
| 57 | 61 | add_theme_support( 'automatic-feed-links' ); |
diff --git src/wp-content/themes/twentyten/functions.php src/wp-content/themes/twentyten/functions.php
index 8bda350d40..21e9741e6b 100644
|
|
|
if ( ! function_exists( 'twentyten_setup' ) ) : |
| 128 | 128 | /* |
| 129 | 129 | * Make theme available for translation. |
| 130 | 130 | * Translations can be filed in the /languages/ directory. |
| | 131 | * Manual loading of text domain is not required after the introduction of |
| | 132 | * just in time loading for translations in WordPress version 4.6. |
| 131 | 133 | */ |
| 132 | | load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' ); |
| | 134 | if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { |
| | 135 | load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' ); |
| | 136 | } |
| 133 | 137 | |
| 134 | 138 | // This theme uses wp_nav_menu() in one location. |
| 135 | 139 | register_nav_menus( |
diff --git src/wp-content/themes/twentythirteen/functions.php src/wp-content/themes/twentythirteen/functions.php
index 8383b4cba3..1cc0ff1bde 100644
|
|
|
function twentythirteen_setup() { |
| 75 | 75 | * If you're building a theme based on Twenty Thirteen, use a find and |
| 76 | 76 | * replace to change 'twentythirteen' to the name of your theme in all |
| 77 | 77 | * template files. |
| | 78 | * Manual loading of text domain is not required after the introduction of |
| | 79 | * just in time loading for translations in WordPress version 4.6. |
| 78 | 80 | */ |
| 79 | | load_theme_textdomain( 'twentythirteen' ); |
| | 81 | if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { |
| | 82 | load_theme_textdomain( 'twentythirteen' ); |
| | 83 | } |
| | 84 | |
| 80 | 85 | |
| 81 | 86 | /* |
| 82 | 87 | * This theme styles the visual editor to resemble the theme style, |
diff --git src/wp-content/themes/twentytwelve/functions.php src/wp-content/themes/twentytwelve/functions.php
index de535ac5f2..747cf13a91 100644
|
|
|
function twentytwelve_setup() { |
| 51 | 51 | * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentytwelve |
| 52 | 52 | * If you're building a theme based on Twenty Twelve, use a find and replace |
| 53 | 53 | * to change 'twentytwelve' to the name of your theme in all the template files. |
| | 54 | * Manual loading of text domain is not required after the introduction of |
| | 55 | * just in time loading for translations in WordPress version 4.6. |
| 54 | 56 | */ |
| 55 | | load_theme_textdomain( 'twentytwelve' ); |
| | 57 | if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { |
| | 58 | load_theme_textdomain( 'twentytwelve' ); |
| | 59 | } |
| | 60 | |
| 56 | 61 | |
| 57 | 62 | // This theme styles the visual editor with editor-style.css to match the theme style. |
| 58 | 63 | add_editor_style(); |
diff --git src/wp-content/themes/twentytwenty/functions.php src/wp-content/themes/twentytwenty/functions.php
index 38fc4d8a48..f94f42f055 100644
|
|
|
function twentytwenty_theme_support() { |
| 111 | 111 | ) |
| 112 | 112 | ); |
| 113 | 113 | |
| 114 | | /* |
| 115 | | * Make theme available for translation. |
| 116 | | * Translations can be filed in the /languages/ directory. |
| 117 | | * If you're building a theme based on Twenty Twenty, use a find and replace |
| 118 | | * to change 'twentytwenty' to the name of your theme in all the template files. |
| 119 | | */ |
| 120 | | load_theme_textdomain( 'twentytwenty' ); |
| 121 | | |
| 122 | 114 | // Add support for full and wide align images. |
| 123 | 115 | add_theme_support( 'align-wide' ); |
| 124 | 116 | |
diff --git src/wp-content/themes/twentytwentyone/functions.php src/wp-content/themes/twentytwentyone/functions.php
index ffbae09ad8..cb56b5cfdd 100644
|
|
|
if ( ! function_exists( 'twenty_twenty_one_setup' ) ) { |
| 27 | 27 | * @return void |
| 28 | 28 | */ |
| 29 | 29 | function twenty_twenty_one_setup() { |
| 30 | | /* |
| 31 | | * Make theme available for translation. |
| 32 | | * Translations can be filed in the /languages/ directory. |
| 33 | | * If you're building a theme based on Twenty Twenty-One, use a find and replace |
| 34 | | * to change 'twentytwentyone' to the name of your theme in all the template files. |
| 35 | | */ |
| 36 | | load_theme_textdomain( 'twentytwentyone', get_template_directory() . '/languages' ); |
| 37 | 30 | |
| 38 | 31 | // Add default posts and comments RSS feed links to head. |
| 39 | 32 | add_theme_support( 'automatic-feed-links' ); |