diff options
Diffstat (limited to 'plugins/jetpack/modules/theme-tools/site-logo.php')
-rw-r--r-- | plugins/jetpack/modules/theme-tools/site-logo.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/jetpack/modules/theme-tools/site-logo.php b/plugins/jetpack/modules/theme-tools/site-logo.php index 78f69ba1..12193752 100644 --- a/plugins/jetpack/modules/theme-tools/site-logo.php +++ b/plugins/jetpack/modules/theme-tools/site-logo.php @@ -1,6 +1,7 @@ <?php -/* - * Site Logo. +/** + * Theme Tools: Site Logo. + * * @see https://jetpack.com/support/site-logo/ * * This feature will only be activated for themes that declare their support. @@ -8,14 +9,15 @@ * 'after_setup_theme' action: * * $args = array( - * 'header-text' => array( - * 'site-title', - * 'site-description', - * ), - * 'size' => 'medium', + * 'header-text' => array( + * 'site-title', + * 'site-description', + * ), + * 'size' => 'medium', * ); * add_theme_support( 'site-logo', $args ); * + * @package automattic/jetpack */ /** @@ -29,13 +31,13 @@ function site_logo_init() { // Only load our code if our theme declares support, and the standalone plugin is not activated. if ( current_theme_supports( 'site-logo' ) && ! class_exists( 'Site_Logo', false ) ) { // Load our class for namespacing. - require dirname( __FILE__ ) . '/site-logo/inc/class-site-logo.php'; + require __DIR__ . '/site-logo/inc/class-site-logo.php'; // Load template tags. - require dirname( __FILE__ ) . '/site-logo/inc/functions.php'; + require __DIR__ . '/site-logo/inc/functions.php'; // Load backwards-compatible template tags. - require dirname( __FILE__ ) . '/site-logo/inc/compat.php'; + require __DIR__ . '/site-logo/inc/compat.php'; } } add_action( 'init', 'site_logo_init' ); |