Weston Ruter
7af3b92736
Media: Upgrade MediaElement.js from 2.22.0 to 4.2.3.
...
Props rafa8626, grosbouff, westonruter, azaozz, Plastikschnitzer for testing.
See #39686 .
Built from https://develop.svn.wordpress.org/trunk@41198
git-svn-id: http://core.svn.wordpress.org/trunk@41038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-08-01 04:43:51 +00:00
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
Tammie Lister
9ef40ced2f
Twenty Fourteen: Removes video header support
...
Support was added to test implementation but never completed. This removes the test implementation.
Props davidakennedy
Fixes #38783
Built from https://develop.svn.wordpress.org/trunk@39226
git-svn-id: http://core.svn.wordpress.org/trunk@39166 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-14 17:17:31 +00:00
Joe McGill
030bc377dd
Themes: Enable video in custom headers.
...
This adds the ability for themes to add support for videos in custom headers
by passing `'video' => true` as an argument when adding theme support for
custom headers.
Custom video headers are managed through the “Header Visuals” (i.e. “Header Image”)
panel in the Customizer where you can select a video from the media library or set a
URL to an external video (YouTube for now) for use in custom headers.
This introduces several new functions:
`has_header_video()` – Check whether a header video is set or not.
`get_header_video_url()` – Retrieve header video URL for custom header.
`the_header_video_url()` – Display header video URL.
`get_header_video_settings()` – Retrieve header video settings.
`has_custom_header()` – Check whether a custom header is set or not.
`get_custom_header_markup()` – Retrieve the markup for a custom header.
`the_custom_header_markup()` – Print the markup for a custom header.
And a new file, `wp-includes/js/wp-custom-header.js` that handles loading videos
in custom headers.
This also enables video headers in the Twenty Seventeen and Twenty Fourteen themes.
Props davidakennedy, celloexpressions, bradyvercher, laurelfulford, joemcgill.
Fixes #38172 .
Built from https://develop.svn.wordpress.org/trunk@38985
git-svn-id: http://core.svn.wordpress.org/trunk@38928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-27 21:51:31 +00:00
Weston Ruter
f3f84d2f21
Customize: Require opt-in for selective refresh of widgets.
...
* Introduces `customize-selective-refresh-widgets` theme support feature and adds to themes.
* Introduces `customize_selective_refresh` arg for `WP_Widget::$widget_options` and adds to all core widgets.
* Remove `selective_refresh` from being a component that can be removed via `customize_loaded_components` filter.
* Add `WP_Customize_Widgets::get_selective_refreshable_widgets()` and `WP_Customize_Widgets::is_widget_selective_refreshable()`.
* Fix default `selector` for `Partial` instances.
* Implement and improve Masronry sidebar refresh logic in Twenty Thirteen and Twenty Fourteen, including preservation of initial widget position after refresh.
* Re-initialize ME.js when refreshing `Twenty_Fourteen_Ephemera_Widget`.
See #27355 .
Fixes #35855 .
Built from https://develop.svn.wordpress.org/trunk@37040
git-svn-id: http://core.svn.wordpress.org/trunk@37007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-21 21:59:29 +00:00
Weston Ruter
f78775a6db
Customize: Use selective refresh to preview changes to site title and tagline in core themes.
...
Fixes issue where `wptexturize` and other filters fail to apply when previewing changes via `postMessage` transport.
See #27355 .
Fixes #33738 .
Built from https://develop.svn.wordpress.org/trunk@36797
git-svn-id: http://core.svn.wordpress.org/trunk@36764 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-01 22:18:26 +00:00
Dominik Schilling
e5ea82d81a
Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective).
...
Props obrienlabs, thewanderingbrit.
Fixes #34887 .
Built from https://develop.svn.wordpress.org/trunk@36709
git-svn-id: http://core.svn.wordpress.org/trunk@36676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-02-25 12:53:27 +00:00
Dominik Schilling
64fc7294b6
Use HTTPS URLs for codex.wordpress.org.
...
see #27115 .
Built from https://develop.svn.wordpress.org/trunk@32116
git-svn-id: http://core.svn.wordpress.org/trunk@32095 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-04-12 21:29:32 +00:00
Sergey Biryukov
31c11b1f0d
Bundled themes: After [31453], replace `current()` with `reset()`, which is guaranteed to be the first item.
...
see #31259 , #31260 .
Built from https://develop.svn.wordpress.org/trunk@31842
git-svn-id: http://core.svn.wordpress.org/trunk@31824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-03-20 02:04:27 +00:00
Drew Jaynes
64bc6934f1
Add an entry to the changelog for `twentyfourteen_post_thumbnail()` noting that it was made 'pluggable'.
...
Fixes #31374 .
Built from https://develop.svn.wordpress.org/trunk@31482
git-svn-id: http://core.svn.wordpress.org/trunk@31463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-20 10:35:28 +00:00
Lance Willett
5dc3b77be3
Twenty Fourteen: make `twentyfourteen_post_thumbnail()` pluggable.
...
Fixes #31374 , props wordpressorru.
Built from https://develop.svn.wordpress.org/trunk@31481
git-svn-id: http://core.svn.wordpress.org/trunk@31462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-19 19:43:28 +00:00
Lance Willett
86a133a79a
Bundled themes: replace `array_shift()` with `current()` for performance.
...
Props SergeyBiryukov, fixes #31260 .
Built from https://develop.svn.wordpress.org/trunk@31453
git-svn-id: http://core.svn.wordpress.org/trunk@31434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-02-13 17:52:27 +00:00
Lance Willett
17f69a89d4
Twenty Fourteen: fix escaping and minor code style issues. See #29127 .
...
Built from https://develop.svn.wordpress.org/trunk@31250
git-svn-id: http://core.svn.wordpress.org/trunk@31231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-20 19:03:23 +00:00
John Blackbourn
64fb3e7175
In Twenty Fourteen, move the "Continue Reading" arrows back inside the translatable strings so they can be localised.
...
See #30641
Built from https://develop.svn.wordpress.org/trunk@30796
git-svn-id: http://core.svn.wordpress.org/trunk@30786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-12-09 18:57:24 +00:00
Lance Willett
f398bd07ce
Twenty Fourteen: replace ellipses appended to automatically generated excerpts with both ellipses and a "Continue Reading" link to meet accessibility-ready requirements.
...
Props davidakennedy, lancewillett. Fixes #30176 .
Built from https://develop.svn.wordpress.org/trunk@30389
git-svn-id: http://core.svn.wordpress.org/trunk@30386 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-19 18:27:22 +00:00
Lance Willett
d2b903f896
Twenty Fourteen: improve post thumbnail HTML output.
...
* Add `aria-hidden` attribute to reduce verbosity on archive pages.
* Add alt text in archives to avoid confusing link texts, see #30076 for context in Twenty Fifteen.
Props hiwhatsup, joedolson. Fixes #30144 .
Built from https://develop.svn.wordpress.org/trunk@30387
git-svn-id: http://core.svn.wordpress.org/trunk@30384 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-19 18:12:21 +00:00
Lance Willett
c604fd15b0
Twenty Fourteen: fix keyboard focus on Appearance > Header view.
...
Props florianziegler, fixes #29787 .
Built from https://develop.svn.wordpress.org/trunk@30146
git-svn-id: http://core.svn.wordpress.org/trunk@30146 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-01 03:44:23 +00:00
Lance Willett
6ddbf3c8bd
Twenty Fourteen: Make featured content in Customizer contextual to the front page.
...
Props celloexpressions, fixes #29578 .
Built from https://develop.svn.wordpress.org/trunk@30143
git-svn-id: http://core.svn.wordpress.org/trunk@30143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-01 03:26:21 +00:00
Dominik Schilling
61819a36ea
Customizer: Change instances of "Theme Customizer" to just "Customizer", as the Customizer isn't necessarily theme-specific.
...
Also capitalize "Customizer".
See also https://make.wordpress.org/core/2014/07/08/customizer-improvements-in-4-0/ .
props studionashvegas, tareq1988.
fixes #29947 .
Built from https://develop.svn.wordpress.org/trunk@29903
git-svn-id: http://core.svn.wordpress.org/trunk@29658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-15 17:21:19 +00:00
Sergey Biryukov
05fb60ae78
Twenty Fourteen: Move custom description for background color and image from sections to controls in the customizer.
...
props jb510.
fixes #29490 .
Built from https://develop.svn.wordpress.org/trunk@29827
git-svn-id: http://core.svn.wordpress.org/trunk@29592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-03 08:43:15 +00:00
Sergey Biryukov
b9357c40eb
Twenty Fourteen: Use correct check for the front page in Featured_Content::pre_get_posts().
...
props kwight.
fixes #29550 .
Built from https://develop.svn.wordpress.org/trunk@29719
git-svn-id: http://core.svn.wordpress.org/trunk@29493 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-09-07 14:23:17 +00:00
Sergey Biryukov
b7c94cee0b
Twenty Fourteen: Remove unused variable after [27120].
...
props michalzuber.
fixes #28928 .
Built from https://develop.svn.wordpress.org/trunk@29210
git-svn-id: http://core.svn.wordpress.org/trunk@28994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-17 19:09:14 +00:00
Lance Willett
f5fcb58404
Twenty Fourteen: optimize featured content lookup to reduce the number of queries for featured posts. Props Chouby and obenland, closes #26744 .
...
Built from https://develop.svn.wordpress.org/trunk@29174
git-svn-id: http://core.svn.wordpress.org/trunk@28958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-15 06:44:15 +00:00
Lance Willett
e90f45e031
Twenty Fourteen: pinking shears.
...
Built from https://develop.svn.wordpress.org/trunk@29169
git-svn-id: http://core.svn.wordpress.org/trunk@28953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-14 17:49:15 +00:00
Lance Willett
65c6477bc3
Twenty Fourteen: RTL display adjustment for Custom Header, props yoavf. Fixes #28670 .
...
Built from https://develop.svn.wordpress.org/trunk@29167
git-svn-id: http://core.svn.wordpress.org/trunk@28951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-07-14 17:41:15 +00:00
Lance Willett
c2f0505bcf
Twenty Fourteen: change hardcoded pagination base to use the WordPress Rewrite object's `pagination_base` value instead. Document global variable usage properly.
...
Props SergeyBiryukov, fixes #28405 .
Built from https://develop.svn.wordpress.org/trunk@28645
git-svn-id: http://core.svn.wordpress.org/trunk@28463 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-31 18:51:19 +00:00
Sergey Biryukov
7de1eac464
Twenty Fourteen: Bail early from Featured_Content::hide_featured_term() if term objects are unavailable.
...
fixes #28072 .
Built from https://develop.svn.wordpress.org/trunk@28536
git-svn-id: http://core.svn.wordpress.org/trunk@28362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-22 09:25:15 +00:00
Sergey Biryukov
9998560152
Twenty Fourteen: Avoid a PHP notice in Ephemera widget.
...
props jartes.
fixes #28055 .
Built from https://develop.svn.wordpress.org/trunk@28248
git-svn-id: http://core.svn.wordpress.org/trunk@28076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-05-02 18:46:17 +00:00
Sergey Biryukov
a1c478586b
Twenty Fourteen: Fix typo in contextual help.
...
props vanillalounge.
fixes #27493 .
Built from https://develop.svn.wordpress.org/trunk@27661
git-svn-id: http://core.svn.wordpress.org/trunk@27504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-23 12:42:14 +00:00
Lance Willett
a46e7ca3dc
Twenty Fourteen: remove doc block comments for `@return void`. See #27098 , props philiparthurmoore.
...
Built from https://develop.svn.wordpress.org/trunk@27595
git-svn-id: http://core.svn.wordpress.org/trunk@27438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-18 22:44:14 +00:00
Lance Willett
589709bc3a
Twenty Fourteen: improve i18n in Ephemera widget for better translation of plurals for post format archives. Fixes #27069 , props Chouby, SergeyBiryukov, lancewillett.
...
Built from https://develop.svn.wordpress.org/trunk@27589
git-svn-id: http://core.svn.wordpress.org/trunk@27432 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-18 18:50:13 +00:00
Lance Willett
b6233e15a3
Twenty Fourteen: merge two similar strings in Customizer featured content help text. Props celloexpressions, fixes #26647 .
...
Built from https://develop.svn.wordpress.org/trunk@27573
git-svn-id: http://core.svn.wordpress.org/trunk@27416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-17 22:07:14 +00:00
John Blackbourn
79d274f2f6
Add context and a missing period to widget descriptions. Fixes #26668 . Props pavelevap, Hanni
...
Built from https://develop.svn.wordpress.org/trunk@27412
git-svn-id: http://core.svn.wordpress.org/trunk@27259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 17:26:17 +00:00
Scott Taylor
6df629fb02
in TwentyFourteen: don't add the `has-post-thumbnail` class or print the featured image when viewing an attachment.
...
See #27243 .
Built from https://develop.svn.wordpress.org/trunk@27330
git-svn-id: http://core.svn.wordpress.org/trunk@27182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-28 21:57:13 +00:00
Lance Willett
27097dea2c
Twenty Fourteen: fix Ephemera Widget to avoid showing full post content when displayed in single post or page. Restore the global `$more` to its original value after the widget output to avoid any issues caused by changing a global variable.
...
Props obenland, mor10, Frank Klein. See #26961 .
Built from https://develop.svn.wordpress.org/trunk@27124
git-svn-id: http://core.svn.wordpress.org/trunk@26991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-07 18:03:13 +00:00
Lance Willett
c2f46ac811
Twenty Fourteen: translate `featured` tag slug used to link to specific tags in Posts editor. See #26526 .
...
Built from https://develop.svn.wordpress.org/trunk@27122
git-svn-id: http://core.svn.wordpress.org/trunk@26989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-07 17:47:11 +00:00
Lance Willett
88a2fe2986
Twenty Fourteen: delete the `featured_content_ids` transient on theme switch to make sure child themes can override the Featured Content quantity value. Also remove quantity parameter so child themes can change the amount of featured posts with `$max_posts`.
...
Props obenland, see #26660 .
Built from https://develop.svn.wordpress.org/trunk@27120
git-svn-id: http://core.svn.wordpress.org/trunk@26987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-07 17:39:13 +00:00
Lance Willett
31e9d97412
Twenty Fourteen: make sure `featured` tag is hidden on front-end views as expected. Add a check for the tag name in case we're using default values and the default ID of `0` does not match the term id of the `featured` tag.
...
Props obenland, fixes #26732 .
Built from https://develop.svn.wordpress.org/trunk@27118
git-svn-id: http://core.svn.wordpress.org/trunk@26985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-07 17:17:13 +00:00
Lance Willett
21b5149477
Twenty Fourteen: remove extra space before a word, props ocean90. See #26437 .
...
Built from https://develop.svn.wordpress.org/trunk@26842
git-svn-id: http://core.svn.wordpress.org/trunk@26729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-09 20:29:10 +00:00
Lance Willett
3e24cf1636
Twenty Fourteen: remove redundant parentheses and translation wrapper, see #25946 .
...
Built from https://develop.svn.wordpress.org/trunk@26698
git-svn-id: http://core.svn.wordpress.org/trunk@26588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 22:47:10 +00:00
Lance Willett
63c82dd11d
Twenty Fourteen: remove invalid `rel` attributes from post thumbnail output, and fix a CSS typo. See #25946 and #25325 .
...
Built from https://develop.svn.wordpress.org/trunk@26694
git-svn-id: http://core.svn.wordpress.org/trunk@26584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 22:09:10 +00:00
Lance Willett
8e352c8187
Twenty Fourteen: remove unneeded `!important` declarations, and comment the ones we absolutely need to keep around. Fixes #26444 .
...
Built from https://develop.svn.wordpress.org/trunk@26689
git-svn-id: http://core.svn.wordpress.org/trunk@26579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 21:03:11 +00:00
Lance Willett
dd6d39ba9d
Twenty Fourteen: remove trailing slashes on void elements such as meta and link, and remove type attribute from script element. See #24499 .
...
Built from https://develop.svn.wordpress.org/trunk@26672
git-svn-id: http://core.svn.wordpress.org/trunk@26562 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 17:54:09 +00:00
Lance Willett
ecf5c3ae21
Twenty Fourteen: bump JS version for customizer.js, see #26338 .
...
Built from https://develop.svn.wordpress.org/trunk@26669
git-svn-id: http://core.svn.wordpress.org/trunk@26559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 17:33:10 +00:00
Lance Willett
25ee6100bd
Twenty Fourteen: better logic for hide/show title and description, and Customizer handling of the same. Add ID attributes to `style` blocks. Fixes #26338 .
...
Built from https://develop.svn.wordpress.org/trunk@26668
git-svn-id: http://core.svn.wordpress.org/trunk@26558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-05 17:30:11 +00:00
Lance Willett
5f73635e58
Twenty Fourteen: fix typo, props DrewAPicture. See #26414 .
...
Built from https://develop.svn.wordpress.org/trunk@26646
git-svn-id: http://core.svn.wordpress.org/trunk@26536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-04 22:52:10 +00:00
Lance Willett
05200ae863
Twenty Fourteen: minor code cleanup in Customizer file, props obenland. Fixes #26414 .
...
Built from https://develop.svn.wordpress.org/trunk@26643
git-svn-id: http://core.svn.wordpress.org/trunk@26533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-04 22:09:11 +00:00
Lance Willett
9464a4aa1a
Twenty Fourteen: sanitize the values of Featured Content layout option, props kwight. Fixes #26408 .
...
Built from https://develop.svn.wordpress.org/trunk@26636
git-svn-id: http://core.svn.wordpress.org/trunk@26526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-04 21:33:11 +00:00
Lance Willett
f0f5a12288
Twenty Fourteen: add link to Codex documentation in Help text, and minor cleanup based on siobhan feedback. See #25837 .
...
Built from https://develop.svn.wordpress.org/trunk@26630
git-svn-id: http://core.svn.wordpress.org/trunk@26520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-04 19:53:18 +00:00
Lance Willett
0f3b7b7978
Twenty Fourteen: fix site title color preview in Customizer, props kwight. Closes #26404 .
...
Built from https://develop.svn.wordpress.org/trunk@26619
git-svn-id: http://core.svn.wordpress.org/trunk@26509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-12-04 18:42:09 +00:00