Commit Graph

24069 Commits

Author SHA1 Message Date
Scott Taylor
a8e76ea8f9 Set the page_comments option to true in Tests_Canonical to properly check canonical redirection for paged comments. By doing so, one assertion tied to #20388 no longer needs to be.
See #20388, 25913.




git-svn-id: https://develop.svn.wordpress.org/trunk@26091 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 18:57:11 +00:00
Scott Taylor
95a00fb920 Fix canonical redirection of cat as described in #15256 by rolling the cat query var into tax_query, instead of category__in / category__not_in. Top-level categories were only redirecting properly if they had no children.
All unit tests pass. Tests marked for #15256 are no longer skipped.

Fixes #15256.
Props dd32.



git-svn-id: https://develop.svn.wordpress.org/trunk@26090 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 18:35:21 +00:00
Andrew Ozz
88138fbf3a Fix the X-UA-Compatible header for IE8, fixes #25575
git-svn-id: https://develop.svn.wordpress.org/trunk@26089 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 18:01:40 +00:00
Scott Taylor
3cbb68c3af Avoid Out of range value for column 'post_parent' error in Tests_Ajax_MediaEdit::_make_attachment() by setting the default parent id to 0 instead of -1
git-svn-id: https://develop.svn.wordpress.org/trunk@26088 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 17:51:29 +00:00
Scott Taylor
0fdff310fd Fix a failing unit test: an XML-RPC unit test for getPosts with filters was failing. The cause of the failure: a set of posts was created with create_many() and then paginated results were requested. The paginated results were meant to equal the original resultset when diff'd after all pages were joined. create_many() was assigning the same timestamp to all posts, so the LIMIT clause in the generated SQL was not operating as expected. I replaced the create_many() call with a create() loop that increments time by 1 each time. Unit test now passes.
git-svn-id: https://develop.svn.wordpress.org/trunk@26087 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 17:45:36 +00:00
Sergey Biryukov
315681a8ed Remove the code for increasing z-index for the tag suggestion script from Twenty Fourteen.
fixes #25867.

git-svn-id: https://develop.svn.wordpress.org/trunk@26086 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 17:42:04 +00:00
Sergey Biryukov
6592f4cb73 Make suggest script visible in the customizer.
props celloexpressions for initial patch.
see #25867.

git-svn-id: https://develop.svn.wordpress.org/trunk@26085 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 17:38:49 +00:00
Lance Willett
8cc1529de8 Twenty Fourteen: changes to JavaScript files to pass jshint, props jorbin. Fixes #25908 #25909 #25910.
* Add global variable flags to top of JS files.
 * Group variable declarations correctly.

git-svn-id: https://develop.svn.wordpress.org/trunk@26084 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 17:26:24 +00:00
Sergey Biryukov
f2bd2d8359 Remove the code for setting ajaxurl from Twenty Fourteen.
props celloexpressions.
fixes #25866.

git-svn-id: https://develop.svn.wordpress.org/trunk@26083 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 15:50:49 +00:00
Sergey Biryukov
adb2e127c1 Define ajaxurl in the customizer.
props celloexpressions.
see #25866.

git-svn-id: https://develop.svn.wordpress.org/trunk@26082 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 15:46:36 +00:00
Sergey Biryukov
a2aed7b119 Fix docblock formatting. fixes #25893.
git-svn-id: https://develop.svn.wordpress.org/trunk@26081 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 13:31:19 +00:00
Sergey Biryukov
eb8f223cd0 Inline documentation for hooks in wp-admin/edit-link-form.php.
props raamdev.
fixes #25447.

git-svn-id: https://develop.svn.wordpress.org/trunk@26080 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-11 13:15:57 +00:00
Lance Willett
7d112ad590 Twenty Fourteen: improve Featured Content experience in the Customizer. Better preview and cache clearing, props obenland and rachelbaker. Fixes #25549.
git-svn-id: https://develop.svn.wordpress.org/trunk@26079 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 23:37:36 +00:00
Andrew Ozz
1d57e79726 Widgets screen: adjust the placeholder to match the new widget "handle" height, and the spinner's margins so the sidebar titles don't "jump" when it is shown. See #25821, see #25858.
git-svn-id: https://develop.svn.wordpress.org/trunk@26078 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 18:32:01 +00:00
Dion Hulse
325cc9f120 Add a white WordPress logo for use on the about pages. See #25858
git-svn-id: https://develop.svn.wordpress.org/trunk@26077 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 06:11:25 +00:00
Matt Thomas
c8df5459d8 Fixing a typo, see #25858. Props designsimply.
git-svn-id: https://develop.svn.wordpress.org/trunk@26076 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 03:52:06 +00:00
Matt Thomas
78ee1a4a22 Add missing wordpress-logo.svg, see #25858.
git-svn-id: https://develop.svn.wordpress.org/trunk@26075 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 03:49:10 +00:00
Andrew Nacin
974737e832 Fix order, declaration, tabbing of vars in color-picker.js.
props kadamwhite.
fixes #25877.


git-svn-id: https://develop.svn.wordpress.org/trunk@26074 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 02:42:32 +00:00
Helen Hou-Sandi
b0c601170c Add spinner images that were inadvertently left out of [26072]. see #25858.
git-svn-id: https://develop.svn.wordpress.org/trunk@26073 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 00:39:38 +00:00
Helen Hou-Sandi
17287af965 Say hello to a fresh new look for the WordPress admin.
Still to come: more color schemes, a responsive component, and more.

see #25858.
props iammattthomas, tillkruess, EmpireOfLight, melchoyce, ryelle, joen, mitchoyoshitaka, sirbrillig, andypeatling, isaackeyet, Otto42, dd32, matt, helen.


git-svn-id: https://develop.svn.wordpress.org/trunk@26072 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-10 00:26:50 +00:00
Lance Willett
8f85054cd0 Twenty Fourteen: allow slider "Previous" and "Next" labels to be translated, props michahwave. Fixes #25897.
git-svn-id: https://develop.svn.wordpress.org/trunk@26071 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 23:27:28 +00:00
Lance Willett
896ae4e6ef Bundled Themes: implement Microsoft-specific @viewport rules for better responsive styling in Windows 8 "snapped" views. Props celloexpressions, fixes #25888.
git-svn-id: https://develop.svn.wordpress.org/trunk@26070 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 23:19:35 +00:00
Lance Willett
0081ce7c81 Twenty Fourteen: implement UX features in spite of being non-standard CSS selectors that won't validate. @viewport for a better touch experience on Windows, and ::selection for better text selection styles. See #25888 and #25898, props celloexpressions.
git-svn-id: https://develop.svn.wordpress.org/trunk@26069 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 23:15:15 +00:00
Andrew Nacin
6072e1d4cb Avoid JSHint errors in admin comment.js. Declare globals, use single quotes.
props jorbin.
fixes #25885. 


git-svn-id: https://develop.svn.wordpress.org/trunk@26068 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 21:29:43 +00:00
Andrew Nacin
c8ab2675f4 Avoid JSHint errors in color-picker.js. One var, single quotes, add missing semicolon, declare wpColorPickerL10n as global.
props jorbin.
fixes #25877.


git-svn-id: https://develop.svn.wordpress.org/trunk@26067 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 21:28:27 +00:00
Andrew Nacin
df882a2e6c Make [25064] lint-free. see #25854.
git-svn-id: https://develop.svn.wordpress.org/trunk@26066 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 21:25:02 +00:00
Andrew Nacin
a5ec5e4cd7 Avoid JSHint errors. Use dot notation when able and declare pwsL10n as a global.
props jorbin.
fixes #25870.


git-svn-id: https://develop.svn.wordpress.org/trunk@26065 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 21:20:25 +00:00
Andrew Nacin
bab82b3b66 Add grunt phpunit which runs three tasks: phpunit, ajax tests, and phpunit as multisite.
You can also run `grunt phpunit:default`, `grunt phpunit:ajax`, and grunt `phpunit:multisite` separately.

`grunt test` now runs the qunit task (both compiled and uncompiled scripts) and the phpunit tasks.

props bpetty.
fixes #25854, see #25781.


git-svn-id: https://develop.svn.wordpress.org/trunk@26064 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 21:18:23 +00:00
Andrew Nacin
00dffd1bf8 Add grunt qunit:compiled to run the QUnit tests on the compiled JS.
props jorbin, kadamwhite.
fixes #25781.


git-svn-id: https://develop.svn.wordpress.org/trunk@26063 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 20:43:58 +00:00
Lance Willett
4d3e26f321 Twenty Fourteen: remove non-standard ::selection selectors. Closes #25898.
git-svn-id: https://develop.svn.wordpress.org/trunk@26062 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 18:46:41 +00:00
Sergey Biryukov
82878e0859 Add @return for WP_Query::parse_search(). props tivnet. fixes #25894.
git-svn-id: https://develop.svn.wordpress.org/trunk@26061 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 16:04:02 +00:00
Sergey Biryukov
8a87a2345b Declare the variable before using it. props tivnet. fixes #25895 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@26060 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 15:52:30 +00:00
Lance Willett
14ce5221ae Twenty Fourteen: when header is more than 48px tall (like two lines of menu items), unfix the header so it doesn't overlap the page content. Props iamtakashi, fixes #25554.
git-svn-id: https://develop.svn.wordpress.org/trunk@26059 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 15:31:29 +00:00
Andrew Nacin
f5f951ab3c Remove the empty about.min.js. See [25912] for the 3.7 branch.
props tollmanz.
fixes #25855.


git-svn-id: https://develop.svn.wordpress.org/trunk@26058 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 04:56:36 +00:00
Lance Willett
539b3a254b Twenty Fourteen: fix gallery layout issue in IE, props jartes and iamtakashi. Fixes #25625.
git-svn-id: https://develop.svn.wordpress.org/trunk@26057 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-09 00:17:57 +00:00
Scott Taylor
e86c049a50 Fix inexcusable whitespace in tests/phpunit/tests/post/query.php.
Props wonderboymusic.



git-svn-id: https://develop.svn.wordpress.org/trunk@26056 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 23:13:41 +00:00
Scott Taylor
047f7fb8bd Produce proper CAST for DECIMAL and NUMERIC in Meta Query. Adds a bunch of unit tests.
Props ericlewis.
Fixes #23033.



git-svn-id: https://develop.svn.wordpress.org/trunk@26055 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 23:10:41 +00:00
Andrew Ozz
8ee904343b Merge the Widgets Area Chooser feature plugin. First run, see #25821
git-svn-id: https://develop.svn.wordpress.org/trunk@26054 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 23:04:35 +00:00
Scott Taylor
cc19bb3a57 Respect the compare operator value in meta_query when value evaluates to null. Adds Unit Test.
Props bradyvercher, gradyetc.
Fixes #22967.



git-svn-id: https://develop.svn.wordpress.org/trunk@26053 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 22:51:03 +00:00
Scott Taylor
0670cf7cc4 Don't convert URLs inside <pre> and <code> tags when parsing string using make_clickable().
Adds Unit Tests.

Props johnjamesjacoby, helen, nacin, adamsilverstein, sirbrillig. 
Fixes #23756.



git-svn-id: https://develop.svn.wordpress.org/trunk@26052 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 22:37:41 +00:00
Sergey Biryukov
9f9bc20bde Remove old debug comment. props nofearinc. fixes #25865.
git-svn-id: https://develop.svn.wordpress.org/trunk@26051 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 22:23:58 +00:00
Scott Taylor
2a8b83fbb0 Split the content to balance open tags when <!--nextpage--> and <!--more.*?--> are used. Needs filter inline docs. The 4 unit tests that were previously failing for ticket 6297 now pass.
See #6297. 
Props devesine.



git-svn-id: https://develop.svn.wordpress.org/trunk@26050 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 22:21:02 +00:00
Sergey Biryukov
c815622e87 Pass correct 'type' parameter to 'upgrader_process_complete' action in Theme_Upgrader.
props bamadesigner.
fixes #25882 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@26049 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 17:03:19 +00:00
Lance Willett
15173413e5 Twenty Fourteen: fix case of featured posts has_tag() check that was adding an empty footer element. See #25868, props iamtakashi.
git-svn-id: https://develop.svn.wordpress.org/trunk@26048 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 05:53:48 +00:00
Lance Willett
2ae699bcf2 Twenty Fourteen: performance win by reducing the number of post thumbnail sizes needed in the theme. Props iamtakashi, closes #25876.
git-svn-id: https://develop.svn.wordpress.org/trunk@26047 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 05:30:45 +00:00
Dion Hulse
deda988368 Add some missing braces to get_bookmarks() which was causing an early return. Introduced in [25934]. See #25468. Fixes #25874
git-svn-id: https://develop.svn.wordpress.org/trunk@26046 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 02:19:22 +00:00
Lance Willett
fcc86be587 Twenty Fourteen: add brief inline help text for Featured Content controls in Customizer. See #25837.
git-svn-id: https://develop.svn.wordpress.org/trunk@26045 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 01:08:18 +00:00
Lance Willett
db7ec86731 Twenty Fourteen: legibility improvements for small sidebar text. Fixes #25827 props iamtakashi.
git-svn-id: https://develop.svn.wordpress.org/trunk@26044 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 00:54:24 +00:00
Andrew Ozz
3032512477 Grunt: limit JSHint's run to a single specified file. Run with grunt jshint:core --file=filename.js. Props kadamwhite, see #25187.
git-svn-id: https://develop.svn.wordpress.org/trunk@26043 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-08 00:40:38 +00:00
Andrew Nacin
3a5802dd3b Ignore wp-langs-en.js during linting, per azaozz. see #25187.
git-svn-id: https://develop.svn.wordpress.org/trunk@26042 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 21:47:24 +00:00