WordPress/wp-content/themes/twentyseventeen
David A. Kennedy ca0274c2ce Bundled Themes: Allow category display in post preview even when only one category
The category is not shown in the preview. And because of how `themename_categorized_blog()` function in each theme returns false for 1 or fewer categories,  and in this case it won't show the new category.

The patch uses `is_preview()` to fix that in Twenty Fourteen, Fifteen and Seventeen.

Props lancewillett.

Fixes #39531.

Built from https://develop.svn.wordpress.org/trunk@40023


git-svn-id: http://core.svn.wordpress.org/trunk@39960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-27 22:09:42 +00:00
..
assets Twenty Seventeen: Ensure functions in `customize-controls.js` don't count on Customizer sections always being present 2016-12-20 22:17:40 +00:00
inc Bundled Themes: Allow category display in post preview even when only one category 2017-01-27 22:09:42 +00:00
template-parts Twenty Seventeen: Improves code readability and code standards in files 2016-12-16 22:08:47 +00:00
404.php Importing Twenty Seventeen, our new default theme for 2017, set for 4.7. 2016-10-20 04:12:31 +00:00
README.txt Twenty Seventeen: Expand a changelog entry added in [39742] with the new item name. 2017-01-07 13:12:39 +00:00
archive.php Twenty Seventeen: Replace remaining Genericons with Font Awesome icons 2016-11-01 17:26:32 +00:00
comments.php Twenty Seventeen: Improves code readability and code standards in files 2016-12-16 22:08:47 +00:00
footer.php Themes: Enable video in custom headers. 2016-10-27 21:51:31 +00:00
front-page.php Twenty Seventeen: Correct `@param` entry for `twentyseventeen_front_page_sections` filter. 2017-01-06 22:07:52 +00:00
functions.php Twenty Seventeen: Remove extra asterisk from a translator comment so the comment could be parsed correctly. 2017-01-12 21:37:43 +00:00
header.php Twenty Seventeen: Hardens the logic for calling featured image in `header.php` 2016-12-20 23:00:43 +00:00
index.php Twenty Seventeen: Replace remaining Genericons with Font Awesome icons 2016-11-01 17:26:32 +00:00
page.php Twenty Seventeen: Renaming of directory structure 2016-10-23 12:29:30 +00:00
rtl.css Twenty Seventeen: Add styles for custom header video controls. 2016-11-16 23:38:29 +00:00
screenshot.png Importing Twenty Seventeen, our new default theme for 2017, set for 4.7. 2016-10-20 04:12:31 +00:00
search.php Twenty Seventeen: Replace remaining Genericons with Font Awesome icons 2016-11-01 17:26:32 +00:00
searchform.php Twenty Seventeen: Improves code readability and code standards in files 2016-12-16 22:08:47 +00:00
sidebar.php Importing Twenty Seventeen, our new default theme for 2017, set for 4.7. 2016-10-20 04:12:31 +00:00
single.php Twenty Seventeen: Improves code readability and code standards in files 2016-12-16 22:08:47 +00:00
style.css Twenty Seventeen: Improve typography for Simplified Chinese (`zh_CN`). 2017-01-24 07:27:44 +00:00

README.txt

=== Twenty Seventeen ===
Contributors: the WordPress team
Requires at least: WordPress 4.7
Tested up to: WordPress 4.7
Version: 1.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready

== Description ==

Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.

For more information about Twenty Seventeen please go to https://codex.wordpress.org/Twenty_Seventeen.

== Installation ==

1. In your admin panel, go to Appearance -> Themes and click the 'Add New' button.
2. Type in Twenty Seventeen in the search form and press the 'Enter' key on your keyboard.
3. Click on the 'Activate' button to use your new theme right away.
4. Go to https://codex.wordpress.org/Twenty_Seventeen for a guide on how to customize this theme.
5. Navigate to Appearance > Customize in your admin panel and customize to taste.

== Copyright ==

Twenty Seventeen WordPress Theme, Copyright 2016 WordPress.org
Twenty Seventeen is distributed under the terms of the GNU GPL

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Twenty Seventeen bundles the following third-party resources:

HTML5 Shiv, Copyright 2014 Alexander Farkas
Licenses: MIT/GPL2
Source: https://github.com/aFarkas/html5shiv

jQuery scrollTo, Copyright 2007-2015 Ariel Flesler
License: MIT
Source: https://github.com/flesler/jquery.scrollTo

normalize.css, Copyright 2012-2016 Nicolas Gallagher and Jonathan Neal
License: MIT
Source: https://necolas.github.io/normalize.css/

Font Awesome icons, Copyright Dave Gandy
License: SIL Open Font License, version 1.1.
Source: http://fontawesome.io/

Bundled header image, Copyright Alvin Engler
License: CC0 1.0 Universal (CC0 1.0)
Source: https://unsplash.com/@englr?photo=bIhpiQA009k

== Changelog ==

= 1.1 =
* Released: January 6, 2017

- Fix incorrect $content_width value in theme
- Ensure functions in customize-controls.js don't count on Customizer sections always being present
- Deprecate page_home nav menu item starter content in favor of link_home
- Introduce a theme-specific filter twentyseventeen_starter_content for customizing the starter content array

= 1.0 =
* Released: December 6, 2016

Initial release