diff --git a/wp-content/themes/twentyfourteen/content-aside.php b/wp-content/themes/twentyfourteen/content-aside.php index 24d61afad59dd40108fbbd67f67aa9830e9fd477..5fcd48e9d95870c7ced5211a5782e520f839a5e1 100644 --- a/wp-content/themes/twentyfourteen/content-aside.php +++ b/wp-content/themes/twentyfourteen/content-aside.php @@ -12,7 +12,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content-audio.php b/wp-content/themes/twentyfourteen/content-audio.php index 5dc6138dba69ddb13906054922061d221e8c3ac6..db0a5f99d4be4b4b72989501b38539aea560807f 100644 --- a/wp-content/themes/twentyfourteen/content-audio.php +++ b/wp-content/themes/twentyfourteen/content-audio.php @@ -12,7 +12,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content-featured-post.php b/wp-content/themes/twentyfourteen/content-featured-post.php index 804be42078ccbe3cfacce1afe381d2654a3b17fe..1505c9c9a373293afc5dcbe6c85e6f4962616702 100644 --- a/wp-content/themes/twentyfourteen/content-featured-post.php +++ b/wp-content/themes/twentyfourteen/content-featured-post.php @@ -13,7 +13,7 @@ <?php // Output the featured image. if ( has_post_thumbnail() ) : - if ( 'grid' == get_theme_mod( 'featured_content_layout' ) ) { + if ( 'grid' === get_theme_mod( 'featured_content_layout' ) ) { the_post_thumbnail(); } else { the_post_thumbnail( 'twentyfourteen-full-width' ); @@ -23,7 +23,7 @@ </a> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content-gallery.php b/wp-content/themes/twentyfourteen/content-gallery.php index b4a1bc5df9e910a8556c8eeb7e5c7f99085f7140..34add08adc6f6911a44a70a85dd72795c865a45d 100644 --- a/wp-content/themes/twentyfourteen/content-gallery.php +++ b/wp-content/themes/twentyfourteen/content-gallery.php @@ -12,7 +12,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content-image.php b/wp-content/themes/twentyfourteen/content-image.php index 8c38519f69e75cc8a232c60da6b5ca1bf753ea92..8f2758d1ad2880f5e01c25054c63fe922095b9e4 100644 --- a/wp-content/themes/twentyfourteen/content-image.php +++ b/wp-content/themes/twentyfourteen/content-image.php @@ -12,7 +12,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content-link.php b/wp-content/themes/twentyfourteen/content-link.php index 85cf2bf23fd4dd4f39006e97997ede287c52ce70..76ed9545ff0a08fe52dc9c0668dc7bcc96892ec5 100644 --- a/wp-content/themes/twentyfourteen/content-link.php +++ b/wp-content/themes/twentyfourteen/content-link.php @@ -12,7 +12,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content-quote.php b/wp-content/themes/twentyfourteen/content-quote.php index 9c1900064372d5513c0977a2a8dc1891f75f7409..adbe56a32babd8a13c3d4b185b2e7531c3b40ffd 100644 --- a/wp-content/themes/twentyfourteen/content-quote.php +++ b/wp-content/themes/twentyfourteen/content-quote.php @@ -12,7 +12,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content-video.php b/wp-content/themes/twentyfourteen/content-video.php index 092f1cc0affb2e97e80d2ae26cba7de7ee157e14..d1f40927b05a288dea23152f00e1fc43e01390a8 100644 --- a/wp-content/themes/twentyfourteen/content-video.php +++ b/wp-content/themes/twentyfourteen/content-video.php @@ -12,7 +12,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div><!-- .entry-meta --> diff --git a/wp-content/themes/twentyfourteen/content.php b/wp-content/themes/twentyfourteen/content.php index e0a2cee76890eb17ff313582341a7d4c379834c0..8121bc3ebbb59ebd89d03270fe4e02ba39bcc63f 100644 --- a/wp-content/themes/twentyfourteen/content.php +++ b/wp-content/themes/twentyfourteen/content.php @@ -14,7 +14,7 @@ <?php twentyfourteen_post_thumbnail(); ?> <header class="entry-header"> - <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?> + <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ), true ) && twentyfourteen_categorized_blog() ) : ?> <div class="entry-meta"> <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span> </div> @@ -30,7 +30,7 @@ <div class="entry-meta"> <?php - if ( 'post' == get_post_type() ) { + if ( 'post' === get_post_type() ) { twentyfourteen_posted_on(); } diff --git a/wp-content/themes/twentyfourteen/css/blocks.css b/wp-content/themes/twentyfourteen/css/blocks.css index 6dc044bf820fdb4aaec3a53d5c1c003e18a3b9d5..4e6c684ca9676aa1ec24165c40f412e6902523bc 100644 --- a/wp-content/themes/twentyfourteen/css/blocks.css +++ b/wp-content/themes/twentyfourteen/css/blocks.css @@ -168,6 +168,10 @@ p.has-drop-cap:not(:focus)::first-letter { padding: 0; } +.wp-block-code code { + font-size: inherit; +} + /* Pullquote */ .wp-block-pullquote { diff --git a/wp-content/themes/twentyfourteen/css/editor-blocks.css b/wp-content/themes/twentyfourteen/css/editor-blocks.css index 960f07cf46cffa5b5681523c19de4106dc65e208..2bd2ce46516c2e1010d314e4b477b3ca6aa26318 100644 --- a/wp-content/themes/twentyfourteen/css/editor-blocks.css +++ b/wp-content/themes/twentyfourteen/css/editor-blocks.css @@ -12,6 +12,7 @@ Description: Used to style blocks in the editor. 4.0 Blocks - Formatting 5.0 Blocks - Layout Elements 6.0 Blocks - Widgets +7.0 Blocks - Colors --------------------------------------------------------------*/ /*-------------------------------------------------------------- @@ -96,11 +97,7 @@ Description: Used to style blocks in the editor. .block-library-list ul, .edit-post-visual-editor ol, .editor-block-list__block ol, -.block-library-list ol { - margin: 0 0 1.6em 1.3333em; - padding: 0; -} - +.block-library-list ol, .block-library-list .editor-rich-text__tinymce { padding: 0; } @@ -131,14 +128,22 @@ Description: Used to style blocks in the editor. margin-bottom: 0; } -.rtl .edit-post-visual-editor ul:not(.wp-block-gallery), -.rtl .editor-block-list__block ul:not(.wp-block-gallery), -.rtl .block-library-list ul, -.rtl .edit-post-visual-editor ol, -.rtl .editor-block-list__block ol, -.rtl .block-library-list ol { +.rtl .editor-styles-wrapper ul ul, +.rtl .editor-styles-wrapper ol ol, +.rtl .editor-styles-wrapper ul ol, +.rtl .editor-styles-wrapper ol ul { margin-left: 0; - margin-right: 1.3333em; + margin-right: 20px; +} + +.wp-block-freeform.block-library-rich-text__tinymce ul, +.wp-block-freeform.block-library-rich-text__tinymce ol { + padding-left: 20px; +} + +.rtl .wp-block-freeform.block-library-rich-text__tinymce ul, +.rtl .wp-block-freeform.block-library-rich-text__tinymce ol { + padding: 0; } /* Code */ @@ -345,13 +350,17 @@ p.has-drop-cap:not(:focus)::first-letter { 4.0 Blocks - Formatting --------------------------------------------------------------*/ -/* Code */ +/* Code (Added specficity required to override TinyMCE styles) */ -.wp-block-code { +.editor-styles-wrapper .wp-block-code { border: 0; padding: 0; } +.editor-styles-wrapper .wp-block-code code { + font-size: inherit; +} + /* Pullquote */ .wp-block-pullquote { @@ -382,6 +391,12 @@ p.has-drop-cap:not(:focus)::first-letter { } } +/* Verse */ + +.editor-styles-wrapper .wp-block-verse { + font-family: inherit; +} + /*-------------------------------------------------------------- 5.0 Blocks - Layout Elements --------------------------------------------------------------*/ @@ -482,3 +497,55 @@ p.has-drop-cap:not(:focus)::first-letter { margin-left: 0; margin-right: 0; } + +/*-------------------------------------------------------------- +7.0 Blocks - Colors +--------------------------------------------------------------*/ + +:root .editor-styles-wrapper .has-green-color { + color: #24890d; +} + +:root .editor-styles-wrapper .has-green-background-color { + background-color: #24890d; +} + +:root .editor-styles-wrapper .has-black-color { + color: #000; +} + +:root .editor-styles-wrapper .has-black-background-color { + background-color: #000; +} + +:root .editor-styles-wrapper .has-dark-gray-color { + color: #2b2b2b; +} + +:root .editor-styles-wrapper .has-dark-gray-background-color { + background-color: #2b2b2b; +} + +:root .editor-styles-wrapper .has-medium-gray-color { + color: #767676; +} + +:root .editor-styles-wrapper .has-medium-gray-background-color { + background-color: #767676; +} + +:root .editor-styles-wrapper .has-light-gray-color { + color: #f5f5f5; +} + +:root .editor-styles-wrapper .has-light-gray-background-color { + background-color: #f5f5f5; +} + +:root .editor-styles-wrapper .has-white-color { + color: #fff; +} + +:root .editor-styles-wrapper .has-white-background-color { + background-color: #fff; +} diff --git a/wp-content/themes/twentyfourteen/css/editor-style.css b/wp-content/themes/twentyfourteen/css/editor-style.css index fc16b87d36bcd6967593bd8dd6b8a1c10c6490e3..1b5e280a23a9f5195fd8bdb2df504a63e9d7c40a 100644 --- a/wp-content/themes/twentyfourteen/css/editor-style.css +++ b/wp-content/themes/twentyfourteen/css/editor-style.css @@ -153,7 +153,6 @@ pre { pre { border: 1px solid rgba(0, 0, 0, 0.1); margin-bottom: 24px; - max-width: 100%; overflow: auto; padding: 12px; white-space: pre; diff --git a/wp-content/themes/twentyfourteen/functions.php b/wp-content/themes/twentyfourteen/functions.php index e3ef1f23c733e8c0e1273b32e7eb5e2c7d88933c..f918f2779fff5255fef20dc78094245030e8a8fd 100644 --- a/wp-content/themes/twentyfourteen/functions.php +++ b/wp-content/themes/twentyfourteen/functions.php @@ -146,6 +146,7 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) : 'caption', 'script', 'style', + 'navigation-widgets', ) ); @@ -169,6 +170,17 @@ if ( ! function_exists( 'twentyfourteen_setup' ) ) : // This theme allows users to set a custom background. add_theme_support( 'custom-background', + /** + * Filters Twenty Fourteen custom-background support arguments. + * + * @since Twenty Fourteen 1.0 + * + * @param array $args { + * An array of custom-background support arguments. + * + * @type string $default-color Default color of the background. + * } + */ apply_filters( 'twentyfourteen_custom_background_args', array( @@ -216,7 +228,7 @@ add_action( 'template_redirect', 'twentyfourteen_content_width' ); */ function twentyfourteen_get_featured_posts() { /** - * Filter the featured posts to return in Twenty Fourteen. + * Filters the featured posts to return in Twenty Fourteen. * * @since Twenty Fourteen 1.0 * @@ -340,7 +352,7 @@ function twentyfourteen_scripts() { wp_enqueue_script( 'jquery-masonry' ); } - if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) { + if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) { wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20150120', true ); wp_localize_script( 'twentyfourteen-slider', @@ -398,7 +410,7 @@ add_filter( 'wp_resource_hints', 'twentyfourteen_resource_hints', 10, 2 ); */ function twentyfourteen_block_editor_styles() { // Block styles. - wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190102' ); + wp_enqueue_style( 'twentyfourteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20201208' ); // Add custom fonts. wp_enqueue_style( 'twentyfourteen-fonts', twentyfourteen_font_url(), array(), null ); } @@ -413,7 +425,7 @@ if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) : function twentyfourteen_the_attached_image() { $post = get_post(); /** - * Filter the default Twenty Fourteen attachment size. + * Filters the default Twenty Fourteen attachment size. * * @since Twenty Fourteen 1.0 * @@ -544,7 +556,7 @@ function twentyfourteen_body_classes( $classes ) { if ( get_header_image() ) { $classes[] = 'header-image'; - } elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ) ) ) { + } elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ), true ) ) { $classes[] = 'masthead-fixed'; } @@ -567,7 +579,7 @@ function twentyfourteen_body_classes( $classes ) { $classes[] = 'singular'; } - if ( is_front_page() && 'slider' == get_theme_mod( 'featured_content_layout' ) ) { + if ( is_front_page() && 'slider' === get_theme_mod( 'featured_content_layout' ) ) { $classes[] = 'slider'; } elseif ( is_front_page() ) { $classes[] = 'grid'; diff --git a/wp-content/themes/twentyfourteen/header.php b/wp-content/themes/twentyfourteen/header.php index 1335047034e00f81710e70a5b5bcef993b013566..e0d661bd020580e9310df1529c56fad351d1feb3 100644 --- a/wp-content/themes/twentyfourteen/header.php +++ b/wp-content/themes/twentyfourteen/header.php @@ -22,7 +22,7 @@ <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width"> <title><?php wp_title( '|', true, 'right' ); ?></title> - <link rel="profile" href="http://gmpg.org/xfn/11"> + <link rel="profile" href="https://gmpg.org/xfn/11"> <link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js?ver=3.7.0"></script> diff --git a/wp-content/themes/twentyfourteen/inc/custom-header.php b/wp-content/themes/twentyfourteen/inc/custom-header.php index 1fd38f324d1c38e147d4d3968481bc93b6b45ecc..bdf49461e88007f9ce44e224a566a57911428517 100644 --- a/wp-content/themes/twentyfourteen/inc/custom-header.php +++ b/wp-content/themes/twentyfourteen/inc/custom-header.php @@ -17,26 +17,26 @@ * @uses twentyfourteen_admin_header_image() */ function twentyfourteen_custom_header_setup() { - /** - * Filter Twenty Fourteen custom-header support arguments. - * - * @since Twenty Fourteen 1.0 - * - * @param array $args { - * An array of custom-header support arguments. - * - * @type bool $header_text Whether to display custom header text. Default false. - * @type int $width Width in pixels of the custom header image. Default 1260. - * @type int $height Height in pixels of the custom header image. Default 240. - * @type bool $flex_height Whether to allow flexible-height header images. Default true. - * @type string $admin_head_callback Callback function used to style the image displayed in - * the Appearance > Header screen. - * @type string $admin_preview_callback Callback function used to create the custom header markup in - * the Appearance > Header screen. - * } - */ add_theme_support( 'custom-header', + /** + * Filters Twenty Fourteen custom-header support arguments. + * + * @since Twenty Fourteen 1.0 + * + * @param array $args { + * An array of custom-header support arguments. + * + * @type bool $header_text Whether to display custom header text. Default false. + * @type int $width Width in pixels of the custom header image. Default 1260. + * @type int $height Height in pixels of the custom header image. Default 240. + * @type bool $flex_height Whether to allow flexible-height header images. Default true. + * @type string $admin_head_callback Callback function used to style the image displayed in + * the Appearance > Header screen. + * @type string $admin_preview_callback Callback function used to create the custom header markup in + * the Appearance > Header screen. + * } + */ apply_filters( 'twentyfourteen_custom_header_args', array( diff --git a/wp-content/themes/twentyfourteen/inc/customizer.php b/wp-content/themes/twentyfourteen/inc/customizer.php index 852ab395fcd0a1a8dfe2a9f701c11b066e1377a0..4762f86760f45369c323d518e6581fd82d0139f3 100644 --- a/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/wp-content/themes/twentyfourteen/inc/customizer.php @@ -98,6 +98,7 @@ add_action( 'customize_register', 'twentyfourteen_customize_register' ); * Render the site title for the selective refresh partial. * * @since Twenty Fourteen 1.7 + * * @see twentyfourteen_customize_register() * * @return void @@ -110,6 +111,7 @@ function twentyfourteen_customize_partial_blogname() { * Render the site tagline for the selective refresh partial. * * @since Twenty Fourteen 1.7 + * * @see twentyfourteen_customize_register() * * @return void @@ -127,7 +129,7 @@ function twentyfourteen_customize_partial_blogdescription() { * @return string Filtered layout type (grid|slider). */ function twentyfourteen_sanitize_layout( $layout ) { - if ( ! in_array( $layout, array( 'grid', 'slider' ) ) ) { + if ( ! in_array( $layout, array( 'grid', 'slider' ), true ) ) { $layout = 'grid'; } diff --git a/wp-content/themes/twentyfourteen/inc/featured-content.php b/wp-content/themes/twentyfourteen/inc/featured-content.php index 2592ce3a5daae127714964e2c4d94965086b0162..5934f210d14b210fb0d47f19d56f8a194bc04f55 100644 --- a/wp-content/themes/twentyfourteen/inc/featured-content.php +++ b/wp-content/themes/twentyfourteen/inc/featured-content.php @@ -190,7 +190,7 @@ class Featured_Content { } /** - * Delete featured content ids transient. + * Delete featured content IDs transient. * * Hooks in the "save_post" action. * @@ -233,7 +233,7 @@ class Featured_Content { return; } - // We need to respect post ids already in the blacklist. + // We need to respect post IDs already in the exclude list. $post__not_in = $query->get( 'post__not_in' ); if ( ! empty( $post__not_in ) ) { @@ -292,7 +292,7 @@ class Featured_Content { } // We only want to hide the featured tag. - if ( ! in_array( 'post_tag', $taxonomies ) ) { + if ( ! in_array( 'post_tag', $taxonomies, true ) ) { return $terms; } @@ -302,7 +302,7 @@ class Featured_Content { } // Bail if term objects are unavailable. - if ( 'all' != $args['fields'] ) { + if ( 'all' !== $args['fields'] ) { return $terms; } @@ -339,7 +339,7 @@ class Featured_Content { } // Make sure we are in the correct taxonomy. - if ( 'post_tag' != $taxonomy ) { + if ( 'post_tag' !== $taxonomy ) { return $terms; } @@ -466,7 +466,7 @@ class Featured_Content { $options = wp_parse_args( $saved, $defaults ); $options = array_intersect_key( $options, $defaults ); - if ( 'all' != $key ) { + if ( 'all' !== $key ) { return isset( $options[ $key ] ) ? $options[ $key ] : false; } @@ -508,7 +508,7 @@ class Featured_Content { $output['hide-tag'] = isset( $input['hide-tag'] ) && $input['hide-tag'] ? 1 : 0; - // Delete the featured post ids transient. + // Delete the featured post IDs transient. self::delete_transient(); return $output; diff --git a/wp-content/themes/twentyfourteen/inc/template-tags.php b/wp-content/themes/twentyfourteen/inc/template-tags.php index 15b0fe0eb0c42b611bbd93266d4d5d226d6183b2..15dc0813c20f33e457b8c459e8301e5167399ad6 100644 --- a/wp-content/themes/twentyfourteen/inc/template-tags.php +++ b/wp-content/themes/twentyfourteen/inc/template-tags.php @@ -24,7 +24,7 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) : return; } - $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; + $paged = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1; $pagenum_link = html_entity_decode( get_pagenum_link() ); $query_args = array(); $url_parts = explode( '?', $pagenum_link ); @@ -128,7 +128,7 @@ endif; * * @since Twenty Fourteen 1.0 * - * @return boolean true if blog has more than 1 category + * @return bool true if blog has more than 1 category */ function twentyfourteen_categorized_blog() { $all_the_cool_cats = get_transient( 'twentyfourteen_category_count' ); diff --git a/wp-content/themes/twentyfourteen/inc/widgets.php b/wp-content/themes/twentyfourteen/inc/widgets.php index a6ea5317a3132086006193fb87141c9fd04ced01..c85ddc7fe569dcaed18534cbe69493f5c3c513fd 100644 --- a/wp-content/themes/twentyfourteen/inc/widgets.php +++ b/wp-content/themes/twentyfourteen/inc/widgets.php @@ -71,7 +71,11 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { * @param array $instance An array of settings for this widget instance. */ public function widget( $args, $instance ) { - $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside'; + $format = isset( $instance['format'] ) ? $instance['format'] : ''; + + if ( ! $format || ! in_array( $format, $this->formats, true ) ) { + $format = 'aside'; + } switch ( $format ) { case 'image': @@ -105,8 +109,9 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { break; } - $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] ); - $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? $format_string : $instance['title'], $instance, $this->id_base ); + $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : 2; + $title = ! empty( $instance['title'] ) ? $instance['title'] : $format_string; + $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); $ephemera = new WP_Query( array( @@ -265,7 +270,8 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { function update( $new_instance, $instance ) { $instance['title'] = strip_tags( $new_instance['title'] ); $instance['number'] = empty( $new_instance['number'] ) ? 2 : absint( $new_instance['number'] ); - if ( in_array( $new_instance['format'], $this->formats ) ) { + + if ( in_array( $new_instance['format'], $this->formats, true ) ) { $instance['format'] = $new_instance['format']; } @@ -280,9 +286,13 @@ class Twenty_Fourteen_Ephemera_Widget extends WP_Widget { * @param array $instance */ function form( $instance ) { - $title = empty( $instance['title'] ) ? '' : esc_attr( $instance['title'] ); - $number = empty( $instance['number'] ) ? 2 : absint( $instance['number'] ); - $format = isset( $instance['format'] ) && in_array( $instance['format'], $this->formats ) ? $instance['format'] : 'aside'; + $title = ! empty( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; + $number = ! empty( $instance['number'] ) ? absint( $instance['number'] ) : 2; + $format = isset( $instance['format'] ) ? $instance['format'] : ''; + + if ( ! $format || ! in_array( $format, $this->formats, true ) ) { + $format = 'aside'; + } ?> <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'twentyfourteen' ); ?></label> <input id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"></p> diff --git a/wp-content/themes/twentyfourteen/js/functions.js b/wp-content/themes/twentyfourteen/js/functions.js index 22353309812265ae74a761b2d6b5149386a26547..557cc9f87b3ba0a6fc295f26ef74070e7ddf66a3 100644 --- a/wp-content/themes/twentyfourteen/js/functions.js +++ b/wp-content/themes/twentyfourteen/js/functions.js @@ -147,12 +147,12 @@ onResizeARIA(); } ); - _window.load( function() { + _window.on( 'load', function() { var footerSidebar, isCustomizeSelectiveRefresh = ( 'undefined' !== typeof wp && wp.customize && wp.customize.selectiveRefresh ); // Arrange footer widgets vertically. - if ( $.isFunction( $.fn.masonry ) ) { + if ( typeof $.fn.masonry === 'function' ) { footerSidebar = $( '#footer-sidebar' ); footerSidebar.masonry( { itemSelector: '.widget', diff --git a/wp-content/themes/twentyfourteen/readme.txt b/wp-content/themes/twentyfourteen/readme.txt index c53f3463dfaa7406c2082f7264bb38c588adb995..d351e504bf809f115e19ca1710f354f9a2ac4868 100644 --- a/wp-content/themes/twentyfourteen/readme.txt +++ b/wp-content/themes/twentyfourteen/readme.txt @@ -1,8 +1,8 @@ === Twenty Fourteen === Contributors: wordpressdotorg Requires at least: WordPress 3.6 -Tested up to: 5.0 -Stable tag: 2.8 +Tested up to: 5.6 +Stable tag: 3.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, news, two-columns, three-columns, left-sidebar, right-sidebar, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready @@ -22,7 +22,7 @@ For more information about Twenty Fourteen please go to https://codex.wordpress. == Copyright == -Twenty Fourteen WordPress Theme, Copyright 2013-2020 WordPress.org & Automattic.com +Twenty Fourteen WordPress Theme, Copyright 2013-2021 WordPress.org & Automattic.com Twenty Fourteen is Distributed under the terms of the GNU GPL This program is free software: you can redistribute it and/or modify @@ -50,6 +50,21 @@ Source: http://www.genericons.com == Changelog == += 3.1 = +* Released: March 9, 2021 + +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.1 + += 3.0 = +* Released: December 8, 2020 + +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_3.0 + += 2.9 = +* Released: August 11, 2020 + +https://codex.wordpress.org/Twenty_Fourteen_Theme_Changelog#Version_2.9 + = 2.8 = * Released: March 31, 2020 diff --git a/wp-content/themes/twentyfourteen/style.css b/wp-content/themes/twentyfourteen/style.css index 27e6145aa8fdc3b968d045cc78c4b4ded28560eb..a359fca02267021169ad259aefe232884499c631 100644 --- a/wp-content/themes/twentyfourteen/style.css +++ b/wp-content/themes/twentyfourteen/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentyfourteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier. -Version: 2.8 +Version: 3.1 Requires PHP: 5.2.4 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html