diff --git a/wp-content/themes/twentytwelve/archive.php b/wp-content/themes/twentytwelve/archive.php index edd947ef061266ec313777fe89d73f7127b5a497..44a0d62942a720d1cf2587a68f332deda36f6d12 100644 --- a/wp-content/themes/twentytwelve/archive.php +++ b/wp-content/themes/twentytwelve/archive.php @@ -10,7 +10,7 @@ * has tag.php for Tag archives, category.php for Category archives, and * author.php for Author archives. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve diff --git a/wp-content/themes/twentytwelve/author.php b/wp-content/themes/twentytwelve/author.php index 0dbd267d643a87169a4f355d35924dceb1ceadcb..0607a781fa06c0625644401cf271b5918dda694c 100644 --- a/wp-content/themes/twentytwelve/author.php +++ b/wp-content/themes/twentytwelve/author.php @@ -4,7 +4,7 @@ * * Used to display archive-type pages for posts by an author. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve diff --git a/wp-content/themes/twentytwelve/category.php b/wp-content/themes/twentytwelve/category.php index 0625a7d6c2201fe9db74c551329e592588e91f1a..558946dcd3a96d0f94b4c9929f696e904cc44c41 100644 --- a/wp-content/themes/twentytwelve/category.php +++ b/wp-content/themes/twentytwelve/category.php @@ -4,7 +4,7 @@ * * Used to display archive-type pages for posts in a category. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve diff --git a/wp-content/themes/twentytwelve/comments.php b/wp-content/themes/twentytwelve/comments.php index 010c1aedf463b97b4a68cc75997781d649ed8f63..5537fc460cbfc1e1728608529255733995e66069 100644 --- a/wp-content/themes/twentytwelve/comments.php +++ b/wp-content/themes/twentytwelve/comments.php @@ -29,11 +29,20 @@ if ( post_password_required() ) { <?php if ( have_comments() ) : ?> <h2 class="comments-title"> <?php + if ( 1 === get_comments_number() ) { printf( - _n( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), + /* translators: %s: The post title. */ + __( 'One thought on “%s”', 'twentytwelve' ), + '<span>' . get_the_title() . '</span>' + ); + } else { + printf( + /* translators: %1$s: The number of comments. %2$s: The post title. */ + _n( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'twentytwelve' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' ); + } ?> </h2> diff --git a/wp-content/themes/twentytwelve/css/blocks.css b/wp-content/themes/twentytwelve/css/blocks.css index f72a61b761bfb2e12582f5ddc106b5e1763131c1..a88ffcbfe1862b65fd80d8502a97b6bee42a7e94 100644 --- a/wp-content/themes/twentytwelve/css/blocks.css +++ b/wp-content/themes/twentytwelve/css/blocks.css @@ -143,7 +143,7 @@ p.has-drop-cap:not(:focus)::first-letter { background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); - background-image: linear-gradient(top, #f4f4f4, #e6e6e6); + background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6); border: 1px solid #d2d2d2; border-radius: 3px; box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); @@ -164,7 +164,7 @@ p.has-drop-cap:not(:focus)::first-letter { background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb); background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb); background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb); - background-image: linear-gradient(top, #f9f9f9, #ebebeb); + background-image: linear-gradient(to bottom, #f9f9f9, #ebebeb); background-repeat: repeat-x; color: #5e5e5e; } @@ -175,7 +175,7 @@ p.has-drop-cap:not(:focus)::first-letter { background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1); background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1); background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1); - background-image: linear-gradient(top, #ebebeb, #e1e1e1); + background-image: linear-gradient(to bottom, #ebebeb, #e1e1e1); background-repeat: repeat-x; border-color: transparent; box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4; @@ -285,7 +285,7 @@ pre.wp-block-code { background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); - background-image: linear-gradient(top, #f4f4f4, #e6e6e6); + background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6); } .wp-block-button__link:not(.has-text-color) { @@ -298,7 +298,7 @@ pre.wp-block-code { background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb); background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb); background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb); - background-image: linear-gradient(top, #f9f9f9, #ebebeb); + background-image: linear-gradient(to bottom, #f9f9f9, #ebebeb); background-repeat: repeat-x; } @@ -307,7 +307,7 @@ pre.wp-block-code { background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1); background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1); background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1); - background-image: linear-gradient(top, #ebebeb, #e1e1e1); + background-image: linear-gradient(to bottom, #ebebeb, #e1e1e1); background-repeat: repeat-x; border-color: transparent; } diff --git a/wp-content/themes/twentytwelve/css/editor-blocks.css b/wp-content/themes/twentytwelve/css/editor-blocks.css index bd5313b4684e74ff6afa662e976914c46fc22b85..8c3d66cdb4004467ee53cb255f59c05fcc162eef 100644 --- a/wp-content/themes/twentytwelve/css/editor-blocks.css +++ b/wp-content/themes/twentytwelve/css/editor-blocks.css @@ -241,7 +241,7 @@ p.has-drop-cap:not(:focus)::first-letter { background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); - background-image: linear-gradient(top, #f4f4f4, #e6e6e6); + background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6); border: 1px solid #d2d2d2; border-radius: 3px; box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); @@ -366,7 +366,7 @@ p.has-drop-cap:not(:focus)::first-letter { background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); - background-image: linear-gradient(top, #f4f4f4, #e6e6e6); + background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6); background-repeat: repeat-x; } diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index 95a7299a73be774ef066c9df3562c58263cb27fe..ad89b2ac725197414ae04753d9900de7f396f13e 100644 --- a/wp-content/themes/twentytwelve/functions.php +++ b/wp-content/themes/twentytwelve/functions.php @@ -6,11 +6,13 @@ * in the theme as custom template tags. Others are attached to action and * filter hooks in WordPress to change core functionality. * - * When using a child theme (see https://codex.wordpress.org/Theme_Development and - * https://codex.wordpress.org/Child_Themes), you can override certain functions - * (those wrapped in a function_exists() call) by defining them first in your child theme's - * functions.php file. The child theme's functions.php file is included before the parent - * theme's file, so the child theme functions would be used. + * When using a child theme you can override certain functions (those wrapped + * in a function_exists() call) by defining them first in your child theme's + * functions.php file. The child theme's functions.php file is included before + * the parent theme's file, so the child theme functions would be used. + * + * @link https://codex.wordpress.org/Theme_Development + * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/ * * Functions that are not pluggable (not wrapped in function_exists()) are instead attached * to a filter or action hook. @@ -665,7 +667,6 @@ function twentytwelve_customize_preview_js() { } add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); - /** * Modifies tag cloud widget arguments to display all tags in the same font size * and use list format for better accessibility. @@ -684,3 +685,21 @@ function twentytwelve_widget_tag_cloud_args( $args ) { return $args; } add_filter( 'widget_tag_cloud_args', 'twentytwelve_widget_tag_cloud_args' ); + +if ( ! function_exists( 'wp_body_open' ) ) : + /** + * Fire the wp_body_open action. + * + * Added for backwards compatibility to support pre 5.2.0 WordPress versions. + * + * @since Twenty Twelve 3.0 + */ + function wp_body_open() { + /** + * Triggered after the opening <body> tag. + * + * @since Twenty Twelve 3.0 + */ + do_action( 'wp_body_open' ); + } +endif; diff --git a/wp-content/themes/twentytwelve/header.php b/wp-content/themes/twentytwelve/header.php index cbd555c31c074fec2f4d0f02176f482c99c747c6..f8ff59907bbc6b6a95194125f2baad207d1d1fae 100644 --- a/wp-content/themes/twentytwelve/header.php +++ b/wp-content/themes/twentytwelve/header.php @@ -23,7 +23,7 @@ <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="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> +<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>"> <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script> @@ -32,6 +32,7 @@ </head> <body <?php body_class(); ?>> +<?php wp_body_open(); ?> <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <hgroup> diff --git a/wp-content/themes/twentytwelve/image.php b/wp-content/themes/twentytwelve/image.php index 76d3a549a68862b813520fc263d5621ee3280407..b6b1dc86429358145a2aba68d809a3f8888cc7b9 100644 --- a/wp-content/themes/twentytwelve/image.php +++ b/wp-content/themes/twentytwelve/image.php @@ -2,7 +2,7 @@ /** * The template for displaying image attachments * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve diff --git a/wp-content/themes/twentytwelve/index.php b/wp-content/themes/twentytwelve/index.php index e201be0ca1a50ae09f0c3545271075dd23572418..8b89fee3b1ba50af296a03da56ca32b4ca7b7a4b 100644 --- a/wp-content/themes/twentytwelve/index.php +++ b/wp-content/themes/twentytwelve/index.php @@ -7,7 +7,7 @@ * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve diff --git a/wp-content/themes/twentytwelve/readme.txt b/wp-content/themes/twentytwelve/readme.txt index 7f852f6936a276d3885dd6e3c59bbadda5343db2..6d3aa45347ed59c05ef300f60873e923beb3f6b4 100644 --- a/wp-content/themes/twentytwelve/readme.txt +++ b/wp-content/themes/twentytwelve/readme.txt @@ -1,8 +1,9 @@ === Twenty Twelve === -Contributors: the WordPress team +Contributors: wordpressdotorg Requires at least: WordPress 3.5 Tested up to: WordPress 5.0 -Stable tag: 2.8 +Requires PHP: 5.2.4 +Stable tag: 3.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, 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 @@ -43,6 +44,16 @@ Source: https://github.com/aFarkas/html5shiv == Changelog == += 3.0 = +* Released: May 7, 2019 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_3.0 + += 2.9 = +* Released: February 21, 2019 + +https://codex.wordpress.org/Twenty_Twelve_Theme_Changelog#Version_2.9 + = 2.8 = * Released: January 9, 2019 diff --git a/wp-content/themes/twentytwelve/style.css b/wp-content/themes/twentytwelve/style.css index 3d59ad7332bfa8aa9bac56fab0f4611b58c17904..d763bde4c3df98f733384fbda1a8c84a0c1e699b 100644 --- a/wp-content/themes/twentytwelve/style.css +++ b/wp-content/themes/twentytwelve/style.css @@ -4,7 +4,7 @@ Theme URI: https://wordpress.org/themes/twentytwelve/ Author: the WordPress team Author URI: https://wordpress.org/ Description: The 2012 theme for WordPress is a fully responsive theme that looks great on any device. Features include a front page template with its own widgets, an optional display font, styling for post formats on both index and single views, and an optional no-sidebar page template. Make it yours with a custom menu, header image, and background. -Version: 2.8 +Version: 3.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: blog, one-column, two-columns, 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 @@ -255,7 +255,7 @@ article.post-password-required input[type=submit], background-image: -ms-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -webkit-linear-gradient(top, #f4f4f4, #e6e6e6); background-image: -o-linear-gradient(top, #f4f4f4, #e6e6e6); - background-image: linear-gradient(top, #f4f4f4, #e6e6e6); + background-image: linear-gradient(to bottom, #f4f4f4, #e6e6e6); border: 1px solid #d2d2d2; border-radius: 3px; box-shadow: 0 1px 2px rgba(64, 64, 64, 0.1); @@ -285,7 +285,7 @@ article.post-password-required input[type=submit]:hover { background-image: -ms-linear-gradient(top, #f9f9f9, #ebebeb); background-image: -webkit-linear-gradient(top, #f9f9f9, #ebebeb); background-image: -o-linear-gradient(top, #f9f9f9, #ebebeb); - background-image: linear-gradient(top, #f9f9f9, #ebebeb); + background-image: linear-gradient(to bottom, #f9f9f9, #ebebeb); } .menu-toggle:active, .menu-toggle.toggled-on, @@ -300,7 +300,7 @@ input[type="reset"]:active { background-image: -ms-linear-gradient(top, #ebebeb, #e1e1e1); background-image: -webkit-linear-gradient(top, #ebebeb, #e1e1e1); background-image: -o-linear-gradient(top, #ebebeb, #e1e1e1); - background-image: linear-gradient(top, #ebebeb, #e1e1e1); + background-image: linear-gradient(to bottom, #ebebeb, #e1e1e1); box-shadow: inset 0 0 8px 2px #c6c6c6, 0 1px 0 0 #f4f4f4; border-color: transparent; } @@ -1276,7 +1276,7 @@ article.format-quote .entry-content blockquote { background-image: -ms-linear-gradient(top, #009cee, #0088d0); background-image: -webkit-linear-gradient(top, #009cee, #0088d0); background-image: -o-linear-gradient(top, #009cee, #0088d0); - background-image: linear-gradient(top, #009cee, #0088d0); + background-image: linear-gradient(to bottom, #009cee, #0088d0); border-radius: 3px; border: 1px solid #007cbd; } diff --git a/wp-content/themes/twentytwelve/tag.php b/wp-content/themes/twentytwelve/tag.php index 515521c789c74153d40125553d7e94211cdf3404..1d094f47bb22f144270388643a8b5030e8e52276 100644 --- a/wp-content/themes/twentytwelve/tag.php +++ b/wp-content/themes/twentytwelve/tag.php @@ -4,7 +4,7 @@ * * Used to display archive-type pages for posts in a tag. * - * @link https://codex.wordpress.org/Template_Hierarchy + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package WordPress * @subpackage Twenty_Twelve