Konstantin Obenland
d6ffe16606
Twenty Ten: Use global img contraint for captions
...
Fixes an incompatibility with the way caption width is set since 4.9, where the caption element would cover the whole content width.
Props slilley, Clorith, hardeepasrani.
Fixes #42604 .
Built from https://develop.svn.wordpress.org/trunk@42386
git-svn-id: http://core.svn.wordpress.org/trunk@42215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-12-11 23:32:46 +00:00
Sergey Biryukov
216441356a
Twenty Seventeen: Correct the number of recent posts in a comment in template-parts/page/content-front-page-panels.php
.
...
Props skostadinov, marcelo2605.
Fixes #42621 .
Built from https://develop.svn.wordpress.org/trunk@42348
git-svn-id: http://core.svn.wordpress.org/trunk@42177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-12-01 03:47:52 +00:00
Sergey Biryukov
82e5b30939
Twenty Seventeen: Use consistent wording when referring to the front page in inline docs.
...
Props chetan200891.
Fixes #42666 .
Built from https://develop.svn.wordpress.org/trunk@42347
git-svn-id: http://core.svn.wordpress.org/trunk@42176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-12-01 03:44:47 +00:00
Gary Pendergast
aaf99e6913
Code is Poetry.
...
WordPress' code just... wasn't.
This is now dealt with.
Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057 .
Built from https://develop.svn.wordpress.org/trunk@42343
git-svn-id: http://core.svn.wordpress.org/trunk@42172 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-30 23:11:00 +00:00
Gary Pendergast
c90cfa3b50
General: Fix some precision alignment formatting warnings.
...
The WPCS `WordPress.WhiteSpace.PrecisionAlignment` rule throws warnings for a bunch of code that will likely cause issues for `wpcbf`. Fixing these manually beforehand gives us better auto-fixed results later.
See #41057 .
Built from https://develop.svn.wordpress.org/trunk@42228
git-svn-id: http://core.svn.wordpress.org/trunk@42057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-26 23:57:55 +00:00
Gary Pendergast
a779284c00
General: Reformat inline if ()
statements inside HTML tags.
...
This pattern occurs a handful of times across the codebase:
`<div class="foo<?php if ( $bar ) { echo ' baz'; } ?>">`
Unfortunately, it doesn't really play nicely with `phpcbf`, so all instances need to be removed in preperation for auto code formatting.
See #41057 .
Built from https://develop.svn.wordpress.org/trunk@42217
git-svn-id: http://core.svn.wordpress.org/trunk@42046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-23 04:09:49 +00:00
David A. Kennedy
7b74056cf5
Bundled Themes: Bump version numbers and update changelogs for 4.9 release
...
* Also, updates POT files for Twenty Ten and Twenty Eleven.
Props lemacarl, maedahbatool, mrahmadawais, davidakennedy.
Fixes #42090 .
Built from https://develop.svn.wordpress.org/trunk@42105
git-svn-id: http://core.svn.wordpress.org/trunk@41934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-11-01 22:43:47 +00:00
David A. Kennedy
750098da21
Bundled Themes: Make sure new gallery widgets look good in themes
...
Twenty Ten: Reduces image size and removes image borders for galleries in widget areas.
Twenty Eleven: Reduces image size and removes image borders for galleries in widget areas.
Twenty Twelve: Reduces image size for some gallery sizes in widget areas.
Twenty Thirteen: Ensure proper clearing for images, hide captions for some gallery column combos and ensure good display for galleries in widget areas.
Twenty Fourteen: Ensure proper clearing for images and hide captions for some gallery column combos for galleries in widget areas.
Twenty Seventeen: Hide captions for some gallery column combos for galleries in widget areas.
Props joyously, williampatton, davidakennedy, melchoyce, crunnells.
Fixes #41969 .
Built from https://develop.svn.wordpress.org/trunk@42019
git-svn-id: http://core.svn.wordpress.org/trunk@41853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-25 02:17:47 +00:00
David A. Kennedy
55c8978f1f
Twenty Seventeen: Make gallery link styles consistent in all widget areas
...
Removes the box shadow on gallery links in footer widget areas so they're consistent with the sidebar widget area.
Props transl8or, sami.keijonen, davidakennedy.
Fixes #42302 .
Built from https://develop.svn.wordpress.org/trunk@42004
git-svn-id: http://core.svn.wordpress.org/trunk@41838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 21:53:51 +00:00
David A. Kennedy
b6539fb5a0
Twenty Seventeen: Fix double bottom-margins below embeds
...
Corrects an issue where both the containing paragraph and embed had bottom margins, causing unwanted extra space.
Props westonruter.
Fixes #42118 .
Built from https://develop.svn.wordpress.org/trunk@41888
git-svn-id: http://core.svn.wordpress.org/trunk@41722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-17 22:50:51 +00:00
Weston Ruter
da565a20b9
Twenty Seventeen: Fix positioning of edit shortcuts when partials are nested inside a frontpage panel.
...
Fixes #41557 .
Built from https://develop.svn.wordpress.org/trunk@41842
git-svn-id: http://core.svn.wordpress.org/trunk@41676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-12 04:44:45 +00:00
Sergey Biryukov
0b39f4c99d
Twenty Seventeen: Add missing @return
tag for twentyseventeen_video_controls()
.
...
Props ndoublehwp, audrasjb.
Fixes #41927 .
Built from https://develop.svn.wordpress.org/trunk@41780
git-svn-id: http://core.svn.wordpress.org/trunk@41614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-06 01:35:47 +00:00
Sergey Biryukov
2c5a378291
Twenty Fourteen: Add missing singular placeholder in comments.php
.
...
Uses the recommended pattern for better compatibility with languages that use the singular form for other numbers. Also adds translator comments.
Props bplv, xkon.
See #39660 .
Built from https://develop.svn.wordpress.org/trunk@41762
git-svn-id: http://core.svn.wordpress.org/trunk@41596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-05 00:42:46 +00:00
Sergey Biryukov
0a2c1d7749
Twenty Fifteen: Add missing singular placeholder in comments.php
.
...
Uses the recommended pattern for better compatibility with languages that use the singular form for other numbers. Also adds translator comments.
Props bplv, xkon.
See #39660 .
Built from https://develop.svn.wordpress.org/trunk@41761
git-svn-id: http://core.svn.wordpress.org/trunk@41595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-05 00:41:46 +00:00
Sergey Biryukov
9319a9cec9
Bundled Themes: Restore double line breaks before media queries.
...
See #40138 .
Built from https://develop.svn.wordpress.org/trunk@41757
git-svn-id: http://core.svn.wordpress.org/trunk@41591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-05 00:02:48 +00:00
Sergey Biryukov
203b275658
Bundled Themes: Change tag cloud format to a list (<ul>
) for better semantics and accessibility.
...
List markup allows screen reader users to know in advance how many tags are within the list.
Props xkon, davidakennedy.
Fixes #40138 .
Built from https://develop.svn.wordpress.org/trunk@41756
git-svn-id: http://core.svn.wordpress.org/trunk@41590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-04 23:53:47 +00:00
Sergey Biryukov
821004b1a6
Twenty Seventeen: After [41703], adjust RTL styles for tag cloud widget.
...
Props davidakennedy.
Fixes #40184 .
Built from https://develop.svn.wordpress.org/trunk@41754
git-svn-id: http://core.svn.wordpress.org/trunk@41588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-04 23:35:50 +00:00
Sergey Biryukov
44e23c2dab
Twenty Sixteen: Make sure comment number comparison in comments.php
works as expected.
...
`get_comments_number()` returns a numeric string, not an integer.
See #39660 .
Built from https://develop.svn.wordpress.org/trunk@41729
git-svn-id: http://core.svn.wordpress.org/trunk@41563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-04 13:22:48 +00:00
Sergey Biryukov
f67678b59a
Twenty Seventeen: Change tag cloud format to a list (<ul>
) for better semantics and accessibility.
...
List markup allows screen reader users to know in advance how many tags are within the list.
Props sami.keijonen.
Fixes #40184 .
Built from https://develop.svn.wordpress.org/trunk@41703
git-svn-id: http://core.svn.wordpress.org/trunk@41537 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-03 12:17:46 +00:00
Sergey Biryukov
c5c5fb1cd3
Twenty Seventeen: Add missing labels for <aside role="complementary">
widget areas.
...
Props sami.keijonen.
Fixes #42056 .
Built from https://develop.svn.wordpress.org/trunk@41687
git-svn-id: http://core.svn.wordpress.org/trunk@41521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-02 22:04:46 +00:00
Sergey Biryukov
9597082ec9
Twenty Seventeen: Add Docker Hub icon to supported social links.
...
Props xkon.
Fixes #41529 .
Built from https://develop.svn.wordpress.org/trunk@41593
git-svn-id: http://core.svn.wordpress.org/trunk@41426 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-25 13:49:43 +00:00
Sergey Biryukov
01efcd51a6
Twenty Seventeen: Add Periscope icon to supported social links.
...
Props xkon.
Fixes #40959 .
Built from https://develop.svn.wordpress.org/trunk@41592
git-svn-id: http://core.svn.wordpress.org/trunk@41425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-25 13:14:45 +00:00
Sergey Biryukov
29fa55f71d
Twenty Sixteen: After [41343], add missing space to if
condition in twentysixteen_content_image_sizes_attr()
.
...
Fixes #38468 .
Built from https://develop.svn.wordpress.org/trunk@41580
git-svn-id: http://core.svn.wordpress.org/trunk@41413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-23 12:25:45 +00:00
Sergey Biryukov
6918752529
Twenty Seventeen: Document the type of $item
argument in twentyseventeen_dropdown_icon_to_menu_link()
more accurately.
...
Props ndoublehwp.
Fixes #41923 .
Built from https://develop.svn.wordpress.org/trunk@41548
git-svn-id: http://core.svn.wordpress.org/trunk@41381 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-20 18:15:46 +00:00
Sergey Biryukov
ca92da1dcc
Twenty Fifteen: Add missing comma in ie.css
.
...
Props lalitpendhare.
Fixes #41890 .
Built from https://develop.svn.wordpress.org/trunk@41382
git-svn-id: http://core.svn.wordpress.org/trunk@41215 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-16 05:12:48 +00:00
Sergey Biryukov
9da1dd552d
Twenty Fifteen: Remove "called called" dittography, missed in [41349].
...
Props birgire.
See #41841 , #41836 .
Built from https://develop.svn.wordpress.org/trunk@41357
git-svn-id: http://core.svn.wordpress.org/trunk@41190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-09 14:48:44 +00:00
Sergey Biryukov
6bea951e7a
Bundled Themes: Remove "called called" and "can can" dittography.
...
Props johnpgreen.
Fixes #41836 .
Built from https://develop.svn.wordpress.org/trunk@41349
git-svn-id: http://core.svn.wordpress.org/trunk@41182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-08 18:13:43 +00:00
Sergey Biryukov
8cfe233137
Twenty Sixteen: Replace inline control structureв to improve code readability.
...
Fixes #38468 .
Built from https://develop.svn.wordpress.org/trunk@41343
git-svn-id: http://core.svn.wordpress.org/trunk@41176 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-08 06:04:44 +00:00
Sergey Biryukov
6880400dd5
Twenty Seventeen: Correct the @return
value for twentyseventeen_post_thumbnail_sizes_attr()
.
...
Props truongwp.
Fixes #41830 .
Built from https://develop.svn.wordpress.org/trunk@41342
git-svn-id: http://core.svn.wordpress.org/trunk@41175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-08 04:27:44 +00:00
Sergey Biryukov
15c38a8068
Twenty Sixteen: Correct the @return
value for twentysixteen_post_thumbnail_sizes_attr()
.
...
Props truongwp.
See #41830 .
Built from https://develop.svn.wordpress.org/trunk@41341
git-svn-id: http://core.svn.wordpress.org/trunk@41174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-09-08 04:26:45 +00:00
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
Drew Jaynes
07f01a2e10
Docs: Replace a variety of http links referenced in inline docs with their https counterparts (where possible).
...
Props johnpgreen.
Fixes #40732 .
Built from https://develop.svn.wordpress.org/trunk@40948
git-svn-id: http://core.svn.wordpress.org/trunk@40798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-06-25 22:06:41 +00:00
Sergey Biryukov
0990313c25
Twenty Sixteen: Allow category display in post preview even when there is only one category.
...
Props lancewillett, davidakennedy.
Fixes #39531 .
Built from https://develop.svn.wordpress.org/trunk@40908
git-svn-id: http://core.svn.wordpress.org/trunk@40758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-06-15 12:06:41 +00:00
Dominik Schilling
6a3be0ea29
Twenty Seventeen: Remove/merge unused variables in content-front-page.php.
...
#wceu2017
Props dingo_bastard, mariusvetrici.
Fixes #39771 .
Built from https://develop.svn.wordpress.org/trunk@40904
git-svn-id: http://core.svn.wordpress.org/trunk@40754 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-06-15 10:20:42 +00:00
Aaron Jorbin
efc146a3ca
Bundled Themes - Bump themes in preparation for 4.8
...
Change version numbers in stylesheets, fix typo in Twenty Fourteen readme and update copyright dates for themes. Twentysixteen wasn't updated this cycle.
See #40745 for changes that helped push this along.
Fixes #40905 .
Props davidakennedy, mrahmadawais, maedahbatool.
Built from https://develop.svn.wordpress.org/trunk@40883
git-svn-id: http://core.svn.wordpress.org/trunk@40733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-06-08 04:40:43 +00:00
Konstantin Obenland
fd77b45b57
Twenty Sixteen: Add missing binary files
...
They slipped through the cracks when applying/creating patches.
See [40851], #36497 .
Built from https://develop.svn.wordpress.org/trunk@40852
git-svn-id: http://core.svn.wordpress.org/trunk@40703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-30 21:53:40 +00:00
Konstantin Obenland
d22061139e
Importing Twenty Sixteen, default theme for 2016.
...
Fixes #36497 .
Built from https://develop.svn.wordpress.org/trunk@40851
git-svn-id: http://core.svn.wordpress.org/trunk@40702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-30 21:21:43 +00:00
Konstantin Obenland
71cd7287ba
Default themes: Improve styles for 4.8 widgets
...
Mostly adds styles for lists and mediaelement.js instances within widgets.
Adds size classname to image widget so themes can customize their display.
Props Soean, obenland, celloexpressions, ocean90, karmatosed.
Fixes #40745 .
Built from https://develop.svn.wordpress.org/trunk@40839
git-svn-id: http://core.svn.wordpress.org/trunk@40690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-25 15:19:42 +00:00
Konstantin Obenland
14d0491fbf
Twenty Seventeen: Remove uneccessary return statement
...
Props truongwp.
Fixes #40516 .
Built from https://develop.svn.wordpress.org/trunk@40795
git-svn-id: http://core.svn.wordpress.org/trunk@40653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-19 15:19:41 +00:00
Weston Ruter
31d4d81039
Widgets: Introduce media widgets for images, audio, and video with extensible base for additional media widgets in the future.
...
The last time a new widget was introduced, Vuvuzelas were a thing, Angry Birds started taking over phones, and WordPress stopped shipping with Kubrick. Seven years and 17 releases without new widgets have been enough, time to spice up your sidebar!
Props westonruter, melchoyce, obenland, timmydcrawford, adamsilverstein, gonom9, wonderboymusic, Fab1en, DrewAPicture, sirbrillig, joen, matias, samikeijonen, afercia, celloexpressions, designsimply, michelleweber, ranh, kjellr, karmatosed.
Fixes #32417 , #39993 , #39994 , #39995 .
Built from https://develop.svn.wordpress.org/trunk@40640
git-svn-id: http://core.svn.wordpress.org/trunk@40501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-05-11 21:11:44 +00:00
Pascal Birchler
c58cb3af9e
Twenty Seventeen: Bump version and update the changelog.
...
Updates changelog to link to Codex pages, like other default themes.
Props swissspidy, davidakennedy.
Fixes #40461.
Built from https://develop.svn.wordpress.org/trunk@40472
git-svn-id: http://core.svn.wordpress.org/trunk@40348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-18 09:14:46 +00:00
Pascal Birchler
e5c05e18a1
Twenty Seventeen: Correct heading hierarchy for posts on the front page.
...
When the posts page is on the front page or within a front page section, the heading hierarchy for the individual post titles needs to be adjusted accordingly.
Props joedolson, celloexpressions, davidakennedy.
Fixes #40264 .
Built from https://develop.svn.wordpress.org/trunk@40458
git-svn-id: http://core.svn.wordpress.org/trunk@40334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-17 10:09:43 +00:00
Sergey Biryukov
090901009b
Twenty Seventeen: Declare jQuery as a dependency for navigation.js
.
...
Props chesio.
Fixes #40224 .
Built from https://develop.svn.wordpress.org/trunk@40315
git-svn-id: http://core.svn.wordpress.org/trunk@40222 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-23 16:22:44 +00:00
Sergey Biryukov
f44fe7f5fe
Twenty Seventeen: Use esc_attr_e()
for translatable strings in HTML attributes.
...
Props bor0.
Fixes #40216 .
Built from https://develop.svn.wordpress.org/trunk@40311
git-svn-id: http://core.svn.wordpress.org/trunk@40218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-22 03:52:41 +00:00
Sergey Biryukov
59855beb7b
Twenty Seventeen: Correct grammar in 'Page Layout' control description.
...
Props zoonini, laurelfulford.
Fixes #40107 .
Built from https://develop.svn.wordpress.org/trunk@40270
git-svn-id: http://core.svn.wordpress.org/trunk@40189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-03-10 23:35:45 +00:00
David A. Kennedy
1015c3b3a0
Twenty Seventeen: Rename "Sidebar" widget area for clarity
...
Renames the "Sidebar" widget area to "Blog Sidebar" and adjust its description to set better expectations for users as to where it appears in the theme.
Props apmarshall
Fixes #39567 .
Built from https://develop.svn.wordpress.org/trunk@40024
git-svn-id: http://core.svn.wordpress.org/trunk@39961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-28 00:25:42 +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
David A. Kennedy
bccec366ca
Twenty Fourteen: Fix fatal errors in WordPress versions before 4.0.0
...
The line of code throwing the error was introduced in WordPress 4.5 in r37040 "Customize: Require opt-in for selective refresh of widgets". Since `is_customize_preview()` was introduced in 4.0.0 and Twenty Fourteen should work from WordPress 3.6 and up, this caused the issue.
The patch adds an `is_customize_preview` function if it's missing.
Props adamsilverstein.
Fixes #39407 .
Built from https://develop.svn.wordpress.org/trunk@40022
git-svn-id: http://core.svn.wordpress.org/trunk@39959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-27 20:31:42 +00:00
Sergey Biryukov
64694c6742
Twenty Seventeen: Improve typography for Simplified Chinese (zh_CN
).
...
Props ze3kr, Dharm1025.
Fixes #39379 .
Built from https://develop.svn.wordpress.org/trunk@39942
git-svn-id: http://core.svn.wordpress.org/trunk@39879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-24 07:27:44 +00:00
Sergey Biryukov
1ba4484186
Twenty Seventeen: Remove duplicate global $post
declaration in twentyseventeen_front_page_section()
.
...
Props ixkaito.
Fixes #39590 .
Built from https://develop.svn.wordpress.org/trunk@39909
git-svn-id: http://core.svn.wordpress.org/trunk@39846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-01-15 12:50:39 +00:00