diff options
Diffstat (limited to 'plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php')
-rw-r--r-- | plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php b/plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php index 22e6c942..0d7881ae 100644 --- a/plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php +++ b/plugins/jetpack/modules/theme-tools/site-logo/inc/functions.php @@ -1,6 +1,6 @@ <?php /** - * Functions and template tags for using site logos. + * Functions and template tags for Site Logo theme tool. * * @package automattic/jetpack */ @@ -11,6 +11,7 @@ * @uses get_option() * @uses esc_url_raw() * @uses set_url_scheme() + * @param string $show 'url' or 'id' for site logo. * @return mixed The URL or ID of our site logo, false if not set * @since 1.0 */ @@ -55,7 +56,7 @@ function jetpack_get_site_logo_dimensions() { // If the size is the default `thumbnail`, get its dimensions. Otherwise, get them from $_wp_additional_image_sizes if ( empty( $size ) ) { return false; - } elseif ( 'thumbnail' == $size ) { + } elseif ( 'thumbnail' === $size ) { $dimensions = array( 'width' => get_option( 'thumbnail_size_w' ), 'height' => get_option( 'thumbnail_size_h' ), @@ -197,6 +198,7 @@ function jetpack_is_customize_preview() { * Sanitize the string of classes used for header text. * Limit to A-Z,a-z,0-9,(space),(comma),_,- * + * @param string $classes Unsanitized string of CSS classes. * @return string Sanitized string of CSS classes. */ function jetpack_sanitize_header_text_classes( $classes ) { |