PHP Classes

File: vendor/wp-phpunit/wp-phpunit/data/themedir1/default/functions.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/wp-phpunit/wp-phpunit/data/themedir1/default/functions.php   Download  
File: vendor/wp-phpunit/wp-phpunit/data/themedir1/default/functions.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 511 bytes
 

Contents

Class file image Download
<?php

// Minimum functions.php to pass unit tests.

function default_widgets_init() {
   
register_sidebar( array( 'id' => 'sidebar-1' ) );
}
add_action( 'widgets_init', 'default_widgets_init' );

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' );