Sergey Biryukov
001ffe81fb
Docs: Improve inline comments per the documentation standards.
...
Includes minor code layout fixes for better readability.
See #48303 .
Built from https://develop.svn.wordpress.org/trunk@47122
git-svn-id: http://core.svn.wordpress.org/trunk@46922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-01-29 00:45:18 +00:00
Sergey Biryukov
8e29221da4
Bundled Themes: Update the message shown when a comment is awaiting moderation.
...
If the commenter doesn't have cookies set, they won't see the comment preview again. Showing an expanded message will help offset any confusion if they revisit the site later, and their comment is still in moderation, but they can't see it anymore.
Props birgire, superpoincare.
Fixes #47461 . See #43857 .
Built from https://develop.svn.wordpress.org/trunk@46117
git-svn-id: http://core.svn.wordpress.org/trunk@45929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-14 21:00:56 +00:00
Sergey Biryukov
e199663322
I18N: Capitalize translator comments consistently, add trailing punctuation.
...
Includes minor code layout fixes.
See #44360 .
Built from https://develop.svn.wordpress.org/trunk@45932
git-svn-id: http://core.svn.wordpress.org/trunk@45743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-09-03 00:41:05 +00:00
Sergey Biryukov
e0563013ed
Bundled Themes: Audit and update version numbers passed to `wp_enqueue_style()` to ensure proper cache busting.
...
Props dswebsme, ianbelanger, desrosj.
Fixes #46979 .
Built from https://develop.svn.wordpress.org/trunk@45767
git-svn-id: http://core.svn.wordpress.org/trunk@45578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-08-08 01:25:58 +00:00
Sergey Biryukov
ac10f9b9e4
Bundled Themes: Replace Codex URLs with a corresponding HelpHub or DevHub article.
...
Props ianbelanger, tobifjellner, SergeyBiryukov.
See #47771 .
Built from https://develop.svn.wordpress.org/trunk@45675
git-svn-id: http://core.svn.wordpress.org/trunk@45486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-07-25 22:46:55 +00:00
Gary Pendergast
c71bc1513e
Coding Standards: Add missing translator comments to the default themes.
...
All default themes now have translator comments for all strings with placeholders!
See #46732 .
Built from https://develop.svn.wordpress.org/trunk@45609
git-svn-id: http://core.svn.wordpress.org/trunk@45420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-07-09 01:10:00 +00:00
Gary Pendergast
87675d288b
Coding Standards: Fix all `WordPress.WhiteSpace.PrecisionAlignment` issues.
...
See #47632 .
Built from https://develop.svn.wordpress.org/trunk@45602
git-svn-id: http://core.svn.wordpress.org/trunk@45413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-07-05 05:21:56 +00:00
Adam Silverstein
18ccaf962e
Bundled Theme: add a `wp_body_open` shim for older WordPress versions.
...
WordPress 5.2 adds the `wp_body_open()` function, and the default themes make use of it. This patch adds a shim for `wp_body_open` to bundled themes so this function will also work in older versions of WordPress.
Props lgedeon, johnbillion, timph, ramiy, pento.
Fixes #46679 .
Built from https://develop.svn.wordpress.org/trunk@45256
git-svn-id: http://core.svn.wordpress.org/trunk@45065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-04-23 13:04:56 +00:00
desrosj
47ad9774e3
Bundled Themes: Reverts [45213].
...
Reverting to address backward compatibility concerns in Twenty Eleven and Twenty Ten.
See #39997 .
Built from https://develop.svn.wordpress.org/trunk@45218
git-svn-id: http://core.svn.wordpress.org/trunk@45027 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-04-16 18:22:52 +00:00
desrosj
464535d0d3
Bundled Themes: Use the theme version when enqueuing theme specific stylesheets.
...
For many bundled theme related stylesheets, a version is either not specified, or specified as a hardcoded date string when enqueued. This is problematic when a stylesheet is updated and the version number is not (which has happened several times recently). This change ensures that all bundled theme related stylesheets use the theme’s version as the stylesheet version. This ensures cache busting for theme stylesheets every time a theme is updated and guarantees that users receive any new or updated styles included in the update when visiting the site for the first time after an update.
Props parsmizban, ianbelanger, dswebsme.
Fixes #39997 .
Built from https://develop.svn.wordpress.org/trunk@45213
git-svn-id: http://core.svn.wordpress.org/trunk@45022 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-04-16 14:56:51 +00:00
Sergey Biryukov
76e6cc67c2
Bundled Themes: Link to an updated documentation on child themes on developer.wordpress.org, instead of Codex.
...
Props man4toman, andraganescu.
Fixes #46450 .
Built from https://develop.svn.wordpress.org/trunk@45081
git-svn-id: http://core.svn.wordpress.org/trunk@44890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-04-01 11:56:52 +00:00
desrosj
4aa38f2193
Bundled Themes: Replace “Gutenberg” in code comments and classes.
...
This update replaces the term “Gutenberg” in the themes code comments and classes with something more future-friendly.
Props laurelfulford.
Merges [44213] into trunk.
Fixes #45452 .
Built from https://develop.svn.wordpress.org/trunk@44313
git-svn-id: http://core.svn.wordpress.org/trunk@44143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-19 03:30:41 +00:00
desrosj
5e1e612528
Twenty Ten: Add styles and support for the new block-based editor.
...
This update adds styles and theme support related to the new block-based editor to enhance the experience of using it with Twenty Ten.
These are the specific changes made to this theme:
- Add blocks.css, to style blocks on the front end, to make sure they match the theme’s existing HTML element styles.
- Add `editor-blocks.css` to style blocks in the editor, to make sure they match the theme’s existing HTML element styles.
- Add theme support for `editor-styles`, to pull the existing editor stylesheet into the new editor.
- Add theme support for `wp-block-styles`, to load the default block styles on the front end.
- Add theme support for `editor-color-palette`, to load a color palette based on the theme’s color scheme into the block-based editor.
Props nielslange, crunnells, laurelfulford, davidakennedy.
Merges [43793] to trunk.
Fixes #45038 .
Built from https://develop.svn.wordpress.org/trunk@44137
git-svn-id: http://core.svn.wordpress.org/trunk@43967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 01:46:38 +00:00
Gary Pendergast
56c162fbc9
Coding Standards: Upgrade WPCS to 1.0.0
...
WPCS 1.0.0 includes a bunch of new auto-fixers, which drops the number of coding standards issues across WordPress significantly. Prior to running the auto-fixers, there were 15,312 issues detected. With this commit, we now drop to 4,769 issues.
This change includes three notable additions:
- Multiline function calls must now put each parameter on a new line.
- Auto-formatting files is now part of the `grunt precommit` script.
- Auto-fixable coding standards issues will now cause Travis failures.
Fixes #44600 .
Built from https://develop.svn.wordpress.org/trunk@43571
git-svn-id: http://core.svn.wordpress.org/trunk@43400 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-08-17 01:51:36 +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
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
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
Lance Willett
ff5628169e
Twenty Ten: fix escaping and minor code style issues. See #29127 .
...
Built from https://develop.svn.wordpress.org/trunk@31266
git-svn-id: http://core.svn.wordpress.org/trunk@31247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-22 00:42:44 +00:00
Lance Willett
609335eef1
Twenty Ten and Eleven: don't display modified excerpt link in wp-admin.
...
Props kraftbj, fixes #30026 .
Built from https://develop.svn.wordpress.org/trunk@30145
git-svn-id: http://core.svn.wordpress.org/trunk@30145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-01 03:40:25 +00:00
Andrew Nacin
f5eb32ec6b
Default themes: Don't use /** docblocks for simple multiline comments.
...
props DrewAPicture, ericlewis.
fixes #25256 .
Built from https://develop.svn.wordpress.org/trunk@25746
git-svn-id: http://core.svn.wordpress.org/trunk@25659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-09 20:39:09 +00:00
Lance Willett
6268f714e0
Twenty Ten: update code comments to reflect WP inline docs standards. Props DrewAPicture, closes #25256 .
...
Built from https://develop.svn.wordpress.org/trunk@25627
git-svn-id: http://core.svn.wordpress.org/trunk@25544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-25 17:04:10 +00:00
Lance Willett
0767933d3a
Twenty Ten: call `get_post_galleries()` correctly now that it has new arguments, and use a more accurate `function_exists` call. Props kovshenin, closes #23617 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@24195 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-07 21:57:49 +00:00
Lance Willett
3066066fae
Twenty Ten: fix style element ID attribute value, see #24033 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@24145 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-29 21:02:53 +00:00
Lance Willett
245c2111f0
Bundled themes: add identifier to `style` elements added by the theme. Fixes #24033 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@24001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-16 17:18:30 +00:00
Lance Willett
5697b2f828
Twenty Ten: improve how gallery image IDs are retrieved for use in the Gallery post format template. Props to obenland for original patch, fixes #23617 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@23826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 20:37:34 +00:00
Lance Willett
399ab4bb59
Twenty Ten and Twenty Eleven: revert r23720 and r23721 ( closes #23772 ) and r23718 and r23719 ( closes #23774 ).
...
Unfortunately, it's too late for these improvements in older themes since it's very likely they'll adversely affect child themes.
git-svn-id: http://core.svn.wordpress.org/trunk@23778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-22 16:15:24 +00:00
Lance Willett
f4b2484cc9
Twenty Ten: use callback in functions.php to enqueue scripts and styles rather than putting them directly in header.php template file. Props obenland, fixes #23772 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@23721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-15 18:24:45 +00:00
Lance Willett
24e099bb3e
Twenty Ten: use a filter to modify the output of `wp_title()`. Props obenland, closes #23774 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@23719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-15 18:16:47 +00:00
Lance Willett
c615bf76e4
Twenty Ten: add helpful descriptions to sidebars. Fixes #15401 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@23477 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-22 17:32:48 +00:00
Lance Willett
f3cfd63822
Bundled Themes: allow `show_home` argument to be overridden when using `wp_page_menu` as a fallback to a Custom Menu. Props SergeyBiryukov and kovshenin, fixes #22331 .
...
git-svn-id: http://core.svn.wordpress.org/trunk@22359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-11-02 16:52:53 +00:00
lancewillett
27281f6fd1
Twenty Ten and Eleven: *_continue_reading_link() should be pluggable, fixes #16500 . Props nacin and SergeyBiryukov.
...
git-svn-id: http://core.svn.wordpress.org/trunk@21490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-09 18:21:58 +00:00
lancewillett
3c586888ad
Twenty Ten: code readability in twentyten_comment, props kovshenin, fixes #21474 . (And minor pinking shears.)
...
git-svn-id: http://core.svn.wordpress.org/trunk@21486 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-09 17:22:44 +00:00
ryan
55958522c1
Back compat for bundled themes. Props nacin, SergeyBiryukov, kobenland. fixes #20768
...
git-svn-id: http://core.svn.wordpress.org/trunk@20983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-04 14:43:19 +00:00
ryan
0f1f59b092
Custom background fixes:
...
* Specify default background colors for the bundled themes.
* Change the default custom background callback to only operate on saved values, rather than default values.
* Prevent an unsaved default value from overriding a manually modified style.css file.
Props nacin, kobenland
fixes #20448
git-svn-id: http://core.svn.wordpress.org/trunk@20973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-01 20:31:50 +00:00
nacin
fa631702a6
Flexible heights for Twenty Ten's custom headers. see #20448 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@20474 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-15 20:51:24 +00:00
nacin
0393394451
Twenty Ten: Remove $locale.php file support. see #20448 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@20473 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-15 20:46:09 +00:00
nacin
359ed454b7
Callbacks for custom headers and custom backgrounds registered through add_theme_support() are now wp-head-callback, admin-head-callback, and admin-preview-callback. see #19910 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@20231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-21 03:36:17 +00:00
nacin
1a265e464c
Move Twenty Ten and the rest of Twenty Eleven to add_theme_support() for headers and backgrounds. props sabreuse for initial patch. fixes #20265 . see #20249 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@20225 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-03-20 21:32:42 +00:00
ryan
dd64f17ab7
More consistent attribute escaping. Props nacin.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-10 19:18:51 +00:00
nacin
1154e4b468
Use get_template_directory() instead of TEMPLATEPATH in Twentys Ten and Eleven. props solarisssmoke, fixes #18071 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19058 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-25 04:42:16 +00:00
nacin
1687dd21b2
Back compat with the gallery_style filter in Twenty Ten. fixes #16610 for trunk.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17478 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-22 08:23:30 +00:00
nacin
4066dde395
Correct docs for TT version number. props Jayjdk, fixes #16087 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-01-03 22:47:05 +00:00
nacin
d1cc06bac1
Deprecate twentyten_remove_gallery_css in favor of the use_default_gallery_style filter. see #15103 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-10 19:27:12 +00:00
nacin
56264e107b
Allow the various header constants to be redefined in Twenty Ten. see #14903 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-02 00:17:12 +00:00
nacin
72a354331b
Add a simple filter to allow removing the recent comments default widget styles. fixes #15493 , see #14876 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-21 13:55:11 +00:00
nacin
27cb70434a
Twenty Ten code cleanups. props lancewillett, fixes #15476 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-19 05:37:47 +00:00
markjaquith
7616a6cafb
Add Post Format support to TwentyTen. Can now use this to designate an Aside or a Gallery! see #14746
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-05 02:25:41 +00:00
markjaquith
17fbb0e123
add_theme_support( 'post-formats', array( 'aside', 'image', 'etc' ) ); Add UI for choosing a post format, and save the choice. see #14746
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-04 07:41:07 +00:00
nacin
a07ec69bce
Add a class to 'Your comment is awaiting moderation' in the comment walker and Twenty Ten's callback. fixes #15206 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-28 03:58:51 +00:00
nacin
9f9f5205b0
Fix some encoding issues. props hakre, fixes #14735 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-27 09:54:17 +00:00