2013-08-07 08:38:38 +02:00
|
|
|
<?php
|
|
|
|
|
2020-01-29 01:43:23 +01:00
|
|
|
// Minimum functions.php to pass unit tests.
|
2013-08-07 08:38:38 +02:00
|
|
|
|
2016-10-21 13:02:37 +02:00
|
|
|
function default_widgets_init() {
|
|
|
|
register_sidebar( array( 'id' => 'sidebar-1' ) );
|
|
|
|
}
|
|
|
|
add_action( 'widgets_init', 'default_widgets_init' );
|
2013-08-07 08:38:38 +02:00
|
|
|
|
2016-10-21 13:02:37 +02:00
|
|
|
function default_after_setup_theme() {
|
|
|
|
add_theme_support( 'post-thumbnails' );
|
|
|
|
|
|
|
|
// Don't call it after wp_loaded has happened, for tests that manually re-run load actions.
|
|
|
|
if( ! did_action( 'wp_loaded' ) ) {
|
|
|
|
add_theme_support( 'title-tag' );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
add_action( 'after_setup_theme', 'default_after_setup_theme' );
|