Commit Graph

23950 Commits

Author SHA1 Message Date
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
Andrew Nacin 8bdd289576 Update jshint grunt task to exclude eqeqeq and curly for now, until we've resolved other code smells.
props kadamwhite.
see #25187.


git-svn-id: https://develop.svn.wordpress.org/trunk@26041 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 21:14:49 +00:00
Andrew Nacin aacc286f7c Use only one var per scope in our password-strength-meter tests.
props kadamwhite.
see #25187.


git-svn-id: https://develop.svn.wordpress.org/trunk@26040 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 20:40:12 +00:00
Lance Willett f7c0b07d98 Twenty Fourteen: better override for Background and Colors descriptions in Customizer, props obenland. See #25869.
git-svn-id: https://develop.svn.wordpress.org/trunk@26039 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 20:36:09 +00:00
Lance Willett d3bd9f465c Twenty Fourteen: add contextual help text to Background and Colors controls in Customizer, using the `description` field. Props rachelbaker, see #25869.
git-svn-id: https://develop.svn.wordpress.org/trunk@26038 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 20:27:05 +00:00
Lance Willett daad8899b1 Twenty Fourteen: move all controls for managing Featured Content to the Customizer. Also implement smart fallbacks to not using a custom tag with the "featured" tag and sticky posts. Props obenland and celloexpressions, see #25549.
git-svn-id: https://develop.svn.wordpress.org/trunk@26037 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 20:24:24 +00:00
Lance Willett 976df5f9ed Twenty Fourteen: clean up inconsistencies in content template files. Props iamtakashi, fixes #25868.
git-svn-id: https://develop.svn.wordpress.org/trunk@26036 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 19:04:56 +00:00
Andrew Ozz 1a396b5d8a jshint: fixes for revisions.js, props adamsilverstein, fixes #25864.
git-svn-id: https://develop.svn.wordpress.org/trunk@26035 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 18:13:33 +00:00
Lance Willett 48d44afbb9 Twenty Fourteen: remove the pattern image used as a placeholder for featured images. This greatly improves the "first run" experience of the theme and gives it a more general appeal as a blog theme by putting less of a requirement on featured images. Props iamtakashi, fixes #25859.
git-svn-id: https://develop.svn.wordpress.org/trunk@26034 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 17:28:56 +00:00
Sergey Biryukov bc9ca186e5 Add missing semicolon after wpLink object definition. props mt8.biz. fixes #25862.
git-svn-id: https://develop.svn.wordpress.org/trunk@26033 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 10:41:15 +00:00
Dion Hulse 01a9ea55be Add the various Drop ins to the svn:ignore property on src/wp-content. Fixes #25857
git-svn-id: https://develop.svn.wordpress.org/trunk@26032 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 05:50:19 +00:00
Dion Hulse 24c2774076 Fix a case where wp_guess_url() would leave a prefixed path in the generated URL when symlinks were involved. Fixes #25797
git-svn-id: https://develop.svn.wordpress.org/trunk@26031 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-07 03:33:11 +00:00
Lance Willett 245b99ceb1 Twenty Fourteen: minor template fixes and a placeholder screenshot.
git-svn-id: https://develop.svn.wordpress.org/trunk@26030 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 23:53:13 +00:00
Andrew Ozz 859516cd19 Add X-UA-Compatible meta tag in the admin, locking the compatibility mode in IE to the highest supported document mode. Fixes #25575.
git-svn-id: https://develop.svn.wordpress.org/trunk@26029 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 23:48:02 +00:00
Sergey Biryukov fc8d09e2a6 A negative term parent value should be sanitized to 0, not 1. Fix a regression in sanitize_term_field() caused by [26010].
props mattheu for initial patch.
fixes #25852.

git-svn-id: https://develop.svn.wordpress.org/trunk@26028 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 23:40:46 +00:00
Sergey Biryukov 2564c74a57 Fix inverted logic for displaying the 'Broken Theme' string. props pavelevap. fixes #25465.
git-svn-id: https://develop.svn.wordpress.org/trunk@26027 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 22:39:35 +00:00
Lance Willett 8b481f300b Twenty Fourteen: add full-width featured images for layouts without a content sidebar, but use `wp_is_mobile()` to load smaller-sized images for mobile. Props iamtakashi, fixes #25758.
git-svn-id: https://develop.svn.wordpress.org/trunk@26026 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 20:39:50 +00:00
Andrew Ozz 370c503d66 Add es3 and onevar to the JSHint configuration as discussed in IRC. Props jorbin, see #25187.
git-svn-id: https://develop.svn.wordpress.org/trunk@26025 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 20:26:42 +00:00
Sergey Biryukov cd7deb0e7b Make Twenty Fourteen the default theme. props markmcwilliams. fixes #25702.
git-svn-id: https://develop.svn.wordpress.org/trunk@26024 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 20:01:54 +00:00
Lance Willett 8f46d50138 Twenty Fourteen: add missing sidebar for post format archives. Props iamtakashi, fixes #25842.
git-svn-id: https://develop.svn.wordpress.org/trunk@26023 602fd350-edb4-49c9-b593-d223f7449a82
2013-11-06 16:11:51 +00:00