- Timestamp:
- 10/21/2016 11:02:37 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/data/themedir1/default/functions.php
r25002 r38858 1 1 <?php 2 2 3 // dummy theme3 // Minimum functions.php to pass unit tests 4 4 5 echo dirname(__FILE__).'/'.basename(__FILE__); 5 function default_widgets_init() { 6 register_sidebar( array( 'id' => 'sidebar-1' ) ); 7 } 8 add_action( 'widgets_init', 'default_widgets_init' ); 6 9 7 ?> 10 function default_after_setup_theme() { 11 add_theme_support( 'post-thumbnails' ); 12 13 // Don't call it after wp_loaded has happened, for tests that manually re-run load actions. 14 if( ! did_action( 'wp_loaded' ) ) { 15 add_theme_support( 'title-tag' ); 16 } 17 } 18 add_action( 'after_setup_theme', 'default_after_setup_theme' );
Note: See TracChangeset
for help on using the changeset viewer.