Commit Graph

23804 Commits

Author SHA1 Message Date
Scott Taylor
53a2c3a181 Produce proper CAST for DECIMAL and NUMERIC in Meta Query. Adds a bunch of unit tests.
Props ericlewis.
Fixes #23033.


Built from https://develop.svn.wordpress.org/trunk@26055


git-svn-id: http://core.svn.wordpress.org/trunk@25980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 23:11:08 +00:00
Andrew Ozz
753e745796 Merge the Widgets Area Chooser feature plugin. First run, see #25821
Built from https://develop.svn.wordpress.org/trunk@26054


git-svn-id: http://core.svn.wordpress.org/trunk@25979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 23:05:10 +00:00
Scott Taylor
5129b9d0ff Respect the compare operator value in meta_query when value evaluates to null. Adds Unit Test.
Props bradyvercher, gradyetc.
Fixes #22967.


Built from https://develop.svn.wordpress.org/trunk@26053


git-svn-id: http://core.svn.wordpress.org/trunk@25978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 22:52:08 +00:00
Scott Taylor
275f39216a 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.


Built from https://develop.svn.wordpress.org/trunk@26052


git-svn-id: http://core.svn.wordpress.org/trunk@25977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 22:38:10 +00:00
Sergey Biryukov
6bf2d27c98 Remove old debug comment. props nofearinc. fixes #25865.
Built from https://develop.svn.wordpress.org/trunk@26051


git-svn-id: http://core.svn.wordpress.org/trunk@25976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 22:24:09 +00:00
Scott Taylor
734fe0f6ad 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.


Built from https://develop.svn.wordpress.org/trunk@26050


git-svn-id: http://core.svn.wordpress.org/trunk@25975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 22:22:11 +00:00
Sergey Biryukov
e15b51efa3 Pass correct 'type' parameter to 'upgrader_process_complete' action in Theme_Upgrader.
props bamadesigner.
fixes #25882 for trunk.
Built from https://develop.svn.wordpress.org/trunk@26049


git-svn-id: http://core.svn.wordpress.org/trunk@25974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 17:04:09 +00:00
Lance Willett
0f8be808ff Twenty Fourteen: fix case of featured posts has_tag() check that was adding an empty footer element. See #25868, props iamtakashi.
Built from https://develop.svn.wordpress.org/trunk@26048


git-svn-id: http://core.svn.wordpress.org/trunk@25973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 05:54:10 +00:00
Lance Willett
1b98c32e7a Twenty Fourteen: performance win by reducing the number of post thumbnail sizes needed in the theme. Props iamtakashi, closes #25876.
Built from https://develop.svn.wordpress.org/trunk@26047


git-svn-id: http://core.svn.wordpress.org/trunk@25972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 05:31:09 +00:00
Dion Hulse
90b6ccc88d Add some missing braces to get_bookmarks() which was causing an early return. Introduced in [25934]. See #25468. Fixes #25874
Built from https://develop.svn.wordpress.org/trunk@26046


git-svn-id: http://core.svn.wordpress.org/trunk@25971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 02:20:10 +00:00
Lance Willett
8e494481f8 Twenty Fourteen: add brief inline help text for Featured Content controls in Customizer. See #25837.
Built from https://develop.svn.wordpress.org/trunk@26045


git-svn-id: http://core.svn.wordpress.org/trunk@25970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 01:09:10 +00:00
Lance Willett
d929fcd8c2 Twenty Fourteen: legibility improvements for small sidebar text. Fixes #25827 props iamtakashi.
Built from https://develop.svn.wordpress.org/trunk@26044


git-svn-id: http://core.svn.wordpress.org/trunk@25969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-08 00:55:09 +00:00
Lance Willett
4a460f3779 Twenty Fourteen: better override for Background and Colors descriptions in Customizer, props obenland. See #25869.
Built from https://develop.svn.wordpress.org/trunk@26039


git-svn-id: http://core.svn.wordpress.org/trunk@25968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 20:37:08 +00:00
Lance Willett
996e9823d7 Twenty Fourteen: add contextual help text to Background and Colors controls in Customizer, using the description field. Props rachelbaker, see #25869.
Built from https://develop.svn.wordpress.org/trunk@26038


git-svn-id: http://core.svn.wordpress.org/trunk@25967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 20:28:11 +00:00
Lance Willett
5420155231 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.
Built from https://develop.svn.wordpress.org/trunk@26037


git-svn-id: http://core.svn.wordpress.org/trunk@25966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 20:25:09 +00:00
Lance Willett
26c7409f9c Twenty Fourteen: clean up inconsistencies in content template files. Props iamtakashi, fixes #25868.
Built from https://develop.svn.wordpress.org/trunk@26036


git-svn-id: http://core.svn.wordpress.org/trunk@25965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 19:05:09 +00:00
Andrew Ozz
87570ff683 jshint: fixes for revisions.js, props adamsilverstein, fixes #25864.
Built from https://develop.svn.wordpress.org/trunk@26035


git-svn-id: http://core.svn.wordpress.org/trunk@25964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 18:14:10 +00:00
Lance Willett
d028b169d2 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.
Built from https://develop.svn.wordpress.org/trunk@26034


git-svn-id: http://core.svn.wordpress.org/trunk@25963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 17:29:10 +00:00
Sergey Biryukov
b9387f0621 Add missing semicolon after wpLink object definition. props mt8.biz. fixes #25862.
Built from https://develop.svn.wordpress.org/trunk@26033


git-svn-id: http://core.svn.wordpress.org/trunk@25962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 10:42:09 +00:00
Dion Hulse
560b0c8b0a Fix a case where wp_guess_url() would leave a prefixed path in the generated URL when symlinks were involved. Fixes #25797
Built from https://develop.svn.wordpress.org/trunk@26031


git-svn-id: http://core.svn.wordpress.org/trunk@25961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-07 03:34:10 +00:00
Lance Willett
904acbc865 Twenty Fourteen: minor template fixes and a placeholder screenshot.
Built from https://develop.svn.wordpress.org/trunk@26030


git-svn-id: http://core.svn.wordpress.org/trunk@25960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 23:54:10 +00:00
Andrew Ozz
0743625aed Add X-UA-Compatible meta tag in the admin, locking the compatibility mode in IE to the highest supported document mode. Fixes #25575.
Built from https://develop.svn.wordpress.org/trunk@26029


git-svn-id: http://core.svn.wordpress.org/trunk@25959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 23:49:09 +00:00
Sergey Biryukov
bf6f02320a 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.
Built from https://develop.svn.wordpress.org/trunk@26028


git-svn-id: http://core.svn.wordpress.org/trunk@25958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 23:41:09 +00:00
Sergey Biryukov
23de998e29 Fix inverted logic for displaying the 'Broken Theme' string. props pavelevap. fixes #25465.
Built from https://develop.svn.wordpress.org/trunk@26027


git-svn-id: http://core.svn.wordpress.org/trunk@25957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 22:40:08 +00:00
Lance Willett
35af8942ab 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.
Built from https://develop.svn.wordpress.org/trunk@26026


git-svn-id: http://core.svn.wordpress.org/trunk@25956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 20:40:10 +00:00
Sergey Biryukov
72d4b140fb Make Twenty Fourteen the default theme. props markmcwilliams. fixes #25702.
Built from https://develop.svn.wordpress.org/trunk@26024


git-svn-id: http://core.svn.wordpress.org/trunk@25955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 20:02:09 +00:00
Lance Willett
1c6e90efb0 Twenty Fourteen: add missing sidebar for post format archives. Props iamtakashi, fixes #25842.
Built from https://develop.svn.wordpress.org/trunk@26023


git-svn-id: http://core.svn.wordpress.org/trunk@25954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 16:12:09 +00:00
Sergey Biryukov
918e8bab96 Remove irrelevant @see references. props mt8.biz. fixes #25843.
Built from https://develop.svn.wordpress.org/trunk@26022


git-svn-id: http://core.svn.wordpress.org/trunk@25953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-06 10:17:09 +00:00
Lance Willett
16831f259d Twenty Fourteen: improvements to Accent Color behavior, including a case where options were published too soon. Props celloexpressions, fixes #25580.
Built from https://develop.svn.wordpress.org/trunk@26021


git-svn-id: http://core.svn.wordpress.org/trunk@25952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 23:29:08 +00:00
Lance Willett
c1b0fa9039 Twenty Fourteen: add Audio post format support. Props celloexpressions, closes #25807.
Built from https://develop.svn.wordpress.org/trunk@26020


git-svn-id: http://core.svn.wordpress.org/trunk@25951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 21:52:09 +00:00
Lance Willett
52d6bb332d Twenty Fourteen: remove a todo.
Built from https://develop.svn.wordpress.org/trunk@26019


git-svn-id: http://core.svn.wordpress.org/trunk@25950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 21:49:08 +00:00
Lance Willett
b093d548fc Twenty Fourteen: add print styles, props iamtakashi. Closes #25830.
Built from https://develop.svn.wordpress.org/trunk@26018


git-svn-id: http://core.svn.wordpress.org/trunk@25949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 16:43:09 +00:00
Dion Hulse
c9683257db Core Upgrader: Include an unmodified $wp_version in Core_Upgrader::upgrade(). This protects against cases where the global $wp_version has been modified. See #25772
Built from https://develop.svn.wordpress.org/trunk@26017


git-svn-id: http://core.svn.wordpress.org/trunk@25948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 06:23:10 +00:00
Dion Hulse
9d011a0556 Core Upgrader success statistics: Pass the version of WordPress we're upgrading from, as well as the version being upgraded to. Props nacin. See #25772 for trunk
Built from https://develop.svn.wordpress.org/trunk@26016


git-svn-id: http://core.svn.wordpress.org/trunk@25947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 06:20:09 +00:00
Dion Hulse
38a69e4ccc Remove dead code from the Plugin Upgrader class. Props jdgrimes. Fixes #25470
Built from https://develop.svn.wordpress.org/trunk@26015


git-svn-id: http://core.svn.wordpress.org/trunk@25946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 05:48:10 +00:00
Dion Hulse
b511346319 When checking filesystem permissions for core updates, only check the permissions of the files which we need to alter. Props nacin for initial patch. Fixes #25771 for trunk
Built from https://develop.svn.wordpress.org/trunk@26014


git-svn-id: http://core.svn.wordpress.org/trunk@25945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 05:43:09 +00:00
Dion Hulse
21a3164b3b Add a filter to the Background Updates debug email, matches the filter used on the non-debug post-update emails. Props pento. Fixes #25756
Built from https://develop.svn.wordpress.org/trunk@26013


git-svn-id: http://core.svn.wordpress.org/trunk@25944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 02:15:10 +00:00
Scott Taylor
a519007202 Respect paged when offset is used in WP_Query. Adds unit tests.
Props coffee2code.
Fixes #18897.


Built from https://develop.svn.wordpress.org/trunk@26012


git-svn-id: http://core.svn.wordpress.org/trunk@25943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 01:35:10 +00:00
Scott Taylor
ba3f75b3c3 Pass $args to the export_wp action in export_wp(), which is currently passed no arguments.
Props nickdaugherty.
Fixes #25574.


Built from https://develop.svn.wordpress.org/trunk@26011


git-svn-id: http://core.svn.wordpress.org/trunk@25942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 01:27:08 +00:00
Scott Taylor
cefafee3d3 Cast proper fields to int when returning from wp_get_object_terms(). Add term_taxonomy_id and object_id to the list in sanitize_term() and sanitize_term_field().
Fixes #17646. Adds unit tests.
Props simonwheatley, dd32, kovshenin.


Built from https://develop.svn.wordpress.org/trunk@26010


git-svn-id: http://core.svn.wordpress.org/trunk@25941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 01:19:11 +00:00
Scott Taylor
7d7ba0aea3 Don't globalize version variables twice. See #23685.
Built from https://develop.svn.wordpress.org/trunk@26009


git-svn-id: http://core.svn.wordpress.org/trunk@25940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 00:58:09 +00:00
Scott Taylor
92ba8748aa When WordPress is loaded in a function (e.g. unit tests) the variables initialized at the top level aren't globals, but we expect them to be. Explicitly make the version variables global.
Props nbachiyski.
Fixes #23685.


Built from https://develop.svn.wordpress.org/trunk@26008


git-svn-id: http://core.svn.wordpress.org/trunk@25939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-05 00:24:10 +00:00
Scott Taylor
ca85591c3c Category and tag are typically checked before checking for a custom taxonomy. If the global query matches category or tag (even if it also has tax_query set), return category/tag as the queried object, instead of arbitrarily returning the first term in the tax_query stack (typically those added with 'pre_get_posts').
Real world example: http://www.emusic.com/17dots/topics/daily-download/ - "tag" page, regionalized for US-only content using `pre_get_posts` passing in the terms "US" and "ALL" for "region" (custom tax). All of the theme functions would output "ALL" as the term name. Even though it was a tag archive, the queried object was an arbitrary term from `tax_query`.

See [26006]. All unit tests pass.
Fixes #20767.



Built from https://develop.svn.wordpress.org/trunk@26007


git-svn-id: http://core.svn.wordpress.org/trunk@25938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 23:54:10 +00:00
Scott Taylor
a5eb3208d7 WP_UnitTestCase::go_to() tried its best to clean up global space, but ultimately fell short. Because it was blowing away WP every time it was called, it was dropping all the query vars that were registered for custom taxonomies and custom post types (ouch).
Introduces `_cleanup_query_vars()`. This is a prerequisite for the unit tests on #20767. All unit tests pass with this change.

See #20767.
Fixes #25818.


Built from https://develop.svn.wordpress.org/trunk@26006


git-svn-id: http://core.svn.wordpress.org/trunk@25937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 22:47:10 +00:00
Lance Willett
50fbc698fd Twenty Fourteen: update bundled Genericons to the latest version, 3.0.2. Props iamtakashi, closes #25812.
Built from https://develop.svn.wordpress.org/trunk@26003


git-svn-id: http://core.svn.wordpress.org/trunk@25936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 18:08:10 +00:00
Lance Willett
c0c6f8a359 Twenty Thirteen: capitalize "Not Found" string for use in a page title, see #24891 and r25907.
Built from https://develop.svn.wordpress.org/trunk@26002


git-svn-id: http://core.svn.wordpress.org/trunk@25935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 17:57:11 +00:00
Sergey Biryukov
cd45adaa0b Pass comment ID and comment post ID to get_comment_class() in WP_Comments_List_Table::single_row().
props drozdz.
fixes #25814.
Built from https://develop.svn.wordpress.org/trunk@26001


git-svn-id: http://core.svn.wordpress.org/trunk@25934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-04 11:00:11 +00:00
Sergey Biryukov
40391f4e37 Fall back to comment author email in get_avatar() if the user who left the comment no longer exists.
props mauryaratan, lite3.
fixes #25803.
Built from https://develop.svn.wordpress.org/trunk@26000


git-svn-id: http://core.svn.wordpress.org/trunk@25933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-02 12:20:11 +00:00
Lance Willett
e0e2ace724 Twenty Fourteen: revamp the RTL stylesheet and related cleanup. Props iamtakashi, see #25801.
Built from https://develop.svn.wordpress.org/trunk@25999


git-svn-id: http://core.svn.wordpress.org/trunk@25932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-11-02 04:36:12 +00:00
Lance Willett
6593ae56b8 Twenty Fourteen: second pass at revamping the main CSS file. Update pattern graphics to fix issue with orientation changes on tablets. Props iamtakashi, fixes #25592.
Built from https://develop.svn.wordpress.org/trunk@25998


git-svn-id: http://core.svn.wordpress.org/trunk@25931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-10-31 04:28:10 +00:00