Commit Graph

29 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
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
dcf53d5bbb Twenty Eleven: fix escaping and minor code style issues. See #29127.
Built from https://develop.svn.wordpress.org/trunk@31265


git-svn-id: http://core.svn.wordpress.org/trunk@31246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-01-22 00:42:23 +00:00
Lance Willett
25d1363a66 Twenty Eleven: update code comments to reflect WP inline docs standards. Props DrewAPicture, see #25256.
Built from https://develop.svn.wordpress.org/trunk@25625


git-svn-id: http://core.svn.wordpress.org/trunk@25542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-09-25 16:50:11 +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
Lance Willett
7ca388af6f Twenty Eleven: remove invalid pubdate value from time elements. See #22095.
git-svn-id: http://core.svn.wordpress.org/trunk@22213 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-10-12 16:12:14 +00:00
Lance Willett
9886963778 Twenty Eleven: escape i18n attributes as late as possible, props mfields. See #21756.
git-svn-id: http://core.svn.wordpress.org/trunk@22199 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-10-11 21:30:42 +00:00
lancewillett
1f592e5cef Twenty Eleven: fix typo, s/#entry-meta/.entry-meta/ props zeo. See #21418.
git-svn-id: http://core.svn.wordpress.org/trunk@21368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-30 19:45:58 +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
westi
af5605d3f9 TwentyEleven: Standardise on "Leave a reply". Fixes #18156 props SergeyBiryukov and pavelevap.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19375 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-21 15:40:13 +00:00
nacin
0d9f4a7495 Twenty Eleven: Don't call comments_popup_link() if post_password_required(). That'll result in double password messages. props helenyhou, fixes #17962 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18422 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-07-11 17:58:43 +00:00
azaozz
1a50d6ee95 Simplify some Twenty-Eleven strings for i18n, props nbachiyski, fixes #17777
git-svn-id: http://svn.automattic.com/wordpress/trunk@18348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-27 20:24:23 +00:00
azaozz
d41f756348 TwentyEleven Theme H1 Priority, props iandstewart, fixes #17611
git-svn-id: http://svn.automattic.com/wordpress/trunk@18335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-23 23:03:46 +00:00
dd32
ee1bb15914 Consistently wrap the "Pages:" text in <span> tags, Combine the 2 identical translations for the Pages text (one with, and one without, span tags). See #17744
git-svn-id: http://svn.automattic.com/wordpress/trunk@18312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-14 15:14:24 +00:00
dd32
640fe9ad62 Remove the few post_type == post checks on Post Format templates, Post formats only apply to posts. See #17748
git-svn-id: http://svn.automattic.com/wordpress/trunk@18274 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-11 07:14:59 +00:00
nacin
077b2cec72 Remove extra </a>. props aaroncampbell. see #17385.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-10 23:29:56 +00:00
azaozz
3a29a3d893 Twenty Eleven code review and cleanup, props dd32, fixes #17748
git-svn-id: http://svn.automattic.com/wordpress/trunk@18253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-10 23:01:16 +00:00
nacin
53cd4287e1 Twenty Eleven: escaping frenzy, hide authors if a single author blog. props DH-Shredder, props iandstewart, see #17385, fixes #17563.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-10 21:57:18 +00:00
azaozz
853d1ab1a2 Implement rel="author" in Twenty Eleven and Twenty Ten, props joostdevalk, fixes #17722
git-svn-id: http://svn.automattic.com/wordpress/trunk@18189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-08 02:02:09 +00:00
iandstewart
08fb0d4133 Twenty Eleven: Add border styles to images so we can better style linked images on :focus; includes updates to editor styles and improvements to Image Post styles; See #17524
git-svn-id: http://svn.automattic.com/wordpress/trunk@18132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-03 21:11:41 +00:00
iandstewart
ef03662627 Twenty Eleven: make categories and tags i18n friendly; Props dimadin; Fixes #17531
git-svn-id: http://svn.automattic.com/wordpress/trunk@18029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-25 15:19:33 +00:00
nacin
7f98b9beaf Fix Twenty Eleven phpdoc subpackage names. props zeo, fixes #17444.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-18 19:06:09 +00:00
nacin
7f16795c70 the_excerpt() doesn't take an argument. props coffee2code. fixes #17489. see #13883.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-18 17:26:40 +00:00
lancewillett
c5b106de63 Twenty Eleven fixes, props matveb - see #17198
- Add padding to the menu when the search input is in menu bar
- Improve search input behavior when located in menu bar (also props ocean90)
- i18n for post formats headings (also props nickbohle)
- Small style fix for images

git-svn-id: http://svn.automattic.com/wordpress/trunk@17845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-09 22:08:05 +00:00
lancewillett
32fd5672a4 Twenty Eleven fixes - see #17198
* RTL tweaks and fixes
* Misc style fixes
* Fix tags output, comment links, and remove trailing spaces from translatable strings


git-svn-id: http://svn.automattic.com/wordpress/trunk@17791 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-04 00:45:50 +00:00
iandstewart
c3d51112c2 Twenty Eleven: Post Format headings and CSS cleanup; See #17198 props matveb
git-svn-id: http://svn.automattic.com/wordpress/trunk@17788 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-02 21:11:32 +00:00
iandstewart
ff4d0e5249 Twenty Eleven: updated DocBlock comments following Twenty Ten's example; See #17198
git-svn-id: http://svn.automattic.com/wordpress/trunk@17787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-02 21:04:44 +00:00
lancewillett
ee4df1fc1e Twenty Eleven: introduce image post format and miscellaneous style fixes, props matveb and iandstewart - see #17198
git-svn-id: http://svn.automattic.com/wordpress/trunk@17776 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-29 22:33:04 +00:00