Commit Graph

15 Commits

Author SHA1 Message Date
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
John Blackbourn
e9f7c78d38 In Twenty Thirteen, 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@30795


git-svn-id: http://core.svn.wordpress.org/trunk@30785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-12-09 18:56:22 +00:00
Lance Willett
bbdafdc925 Twenty Thirteen: replace ellipses appended to automatically generated excerpts with both ellipses and a "Continue Reading" link to meet accessibility-ready requirements.
Props davidakennedy, lancewillett. Fixes #30178.
Built from https://develop.svn.wordpress.org/trunk@30390


git-svn-id: http://core.svn.wordpress.org/trunk@30387 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-11-19 18:35:21 +00:00
Lance Willett
d373d0982b Twenty Thirteen: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256.
Built from https://develop.svn.wordpress.org/trunk@25522


git-svn-id: http://core.svn.wordpress.org/trunk@25442 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-20 19:34:10 +00:00
Lance Willett
ff9e60e3e6 Twenty Thirteen: remove all post_format_*() and the_remaining_content() function calls, reverting to the_content(). Simplify functions.php, JS, and CSS files accordingly. Props obenland for starter patch, fixes #24469 and #24407. See #24452.
git-svn-id: http://core.svn.wordpress.org/trunk@24391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-05-31 17:45:00 +00:00
Lance Willett
a738cc3c83 Bundled themes: remove the_title_attribute() title attributes where it duplicates the_title() in anchor text. Props nacin, fixes #24203.
git-svn-id: http://core.svn.wordpress.org/trunk@24131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-29 16:57:30 +00:00
Sergey Biryukov
b706f91278 Use correct function name. props ocean90. fixes #23942. see #23927.
git-svn-id: http://core.svn.wordpress.org/trunk@23911 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-04-04 21:03:35 +00:00
Lance Willett
85a3c6a82b Twenty Thirteen: simpler name for custom image size for image post formats, see #23620.
git-svn-id: http://core.svn.wordpress.org/trunk@23848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-29 05:24:12 +00:00
Lance Willett
788724989e Twenty Thirteen: improvements to Image post format handling to use a custom image size instead of filtering a $content_width variable.
Includes CSS cleanup and markup improvements to both video and image templates, moving the media HTML piece out of the `header` element.

Props obenland, closes #23620.

git-svn-id: http://core.svn.wordpress.org/trunk@23839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-28 07:02:51 +00:00
Mark Jaquith
816618be68 Rename the_extra_content() to the_remaining_content().
fixes #23877.

git-svn-id: http://core.svn.wordpress.org/trunk@23836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-28 05:59:18 +00:00
Lance Willett
a87c00edee Twenty Thirteen: take full advantage of new structured post format template functions, see r23819.
Extract first video or image from Video and Image post format posts, and place the item above the title within its own HTML wrapper with `the_video()` and `the_image()'. Also, remove the item from the post content with `the_extra_content()`.

This allows us to meet the design requirements for Twenty Thirteen with minimal changes to the theme template files. Fixes #23620.

git-svn-id: http://core.svn.wordpress.org/trunk@23820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-27 18:51:47 +00:00
Lance Willett
191272ff82 Twenty Thirteen: remove extraneous comment link on single post views, props markmcwilliams. Fixes #23657.
git-svn-id: http://core.svn.wordpress.org/trunk@23621 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-05 21:44:38 +00:00
Lance Willett
1b73111794 Twenty Thirteen: update post formats for consistent post meta display, fixes #23553.
Fix a few typos for "tags-links" selectors and remove extraneous newlines.

git-svn-id: http://core.svn.wordpress.org/trunk@23469 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-22 06:05:00 +00:00
Mark Jaquith
d1d3076d5a Introduce the Twenty Thirteen theme.
props matt, joen, obenland, lancewillett. see #23504

git-svn-id: http://core.svn.wordpress.org/trunk@23452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-02-18 23:08:56 +00:00