diff options
Diffstat (limited to 'plugins/jetpack/modules/theme-tools.php')
-rw-r--r-- | plugins/jetpack/modules/theme-tools.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/plugins/jetpack/modules/theme-tools.php b/plugins/jetpack/modules/theme-tools.php index a0cc3b13..10e8cf55 100644 --- a/plugins/jetpack/modules/theme-tools.php +++ b/plugins/jetpack/modules/theme-tools.php @@ -1,10 +1,17 @@ <?php -/* +/** + * Module: Theme Tools + * * Load code specific to themes or theme tools * This file is special, and is not an actual `module` as such. * It is included by ./module-extras.php + * + * @package automattic/jetpack */ +/** + * Conditionally require the Tonesque lib depending on theme support. + */ function jetpack_load_theme_tools() { if ( current_theme_supports( 'tonesque' ) ) { jetpack_require_lib( 'tonesque' ); @@ -55,14 +62,13 @@ function jetpack_load_theme_compat() { } add_action( 'after_setup_theme', 'jetpack_load_theme_compat', -1 ); - /** * Requires a file once, if the passed key exists in the files array. * * @access private - * @param string $key - * @param array $files - * @return void + * @param string $key The key to check. + * @param array $files Array of files to check in. + * @return void|WP_Error */ function _jetpack_require_compat_file( $key, $files ) { if ( ! is_string( $key ) ) { |