Commit Graph

27427 Commits

Author SHA1 Message Date
Sergey Biryukov
f64d9a10df Twenty Fifteen: Fix missing commas in the stylesheet.
props iamtakashi.
fixes #30068.
Built from https://develop.svn.wordpress.org/trunk@29988


git-svn-id: http://core.svn.wordpress.org/trunk@29730 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-22 02:43:18 +00:00
Andrew Ozz
965e783fd8 Twenty Fifteen: better editor-style.css: slightly smaller fonts, make the body margins relative, fix dependency on the mce-item-table class for tables. Props iamtakashi, fixes #29986
Built from https://develop.svn.wordpress.org/trunk@29987


git-svn-id: http://core.svn.wordpress.org/trunk@29729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-22 02:40:17 +00:00
Andrew Ozz
4c81e264e8 TinyMCE: update the default styles: make the font size larger and make it the same size in tables. Fixes #30038
Built from https://develop.svn.wordpress.org/trunk@29986


git-svn-id: http://core.svn.wordpress.org/trunk@29728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-21 23:06:18 +00:00
John Blackbourn
e2ff1da654 Update the docs for wp_remote_retrieve_response_code(). See #28887.
Built from https://develop.svn.wordpress.org/trunk@29985


git-svn-id: http://core.svn.wordpress.org/trunk@29727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-21 21:13:18 +00:00
John Blackbourn
ae7cb843a0 Avoid double path separators in load_theme_textdomain(). Fixes #29122. Props bradyvercher
Built from https://develop.svn.wordpress.org/trunk@29984


git-svn-id: http://core.svn.wordpress.org/trunk@29726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-21 17:58:18 +00:00
John Blackbourn
9999820b64 Add a focus outline to the widget control toggle arrows. Fixes #27953. Props TomHarrigan.
Built from https://develop.svn.wordpress.org/trunk@29983


git-svn-id: http://core.svn.wordpress.org/trunk@29725 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-21 17:40:19 +00:00
Andrew Ozz
ecdc8d3baf Admin menu:
- Fix scrolling the pinned menu with a mouse wheel.
- Fix pinning when the menu is only slightly taller than the viewport.
- Disable pinning on IE8, updating CSS top makes it jump when scrolling with a mouse wheel.
See #29806
Built from https://develop.svn.wordpress.org/trunk@29978


git-svn-id: http://core.svn.wordpress.org/trunk@29724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-21 06:12:20 +00:00
Sergey Biryukov
2c8e435aa5 Fix copy/paste errors in [27769].
props Corphi.
fixes #30054.
Built from https://develop.svn.wordpress.org/trunk@29977


git-svn-id: http://core.svn.wordpress.org/trunk@29723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 21:35:18 +00:00
Ian Stewart
c481b6f1cf Twenty Fifteen: updated styles for skip link.
Props afercia and iamtakashi, fixes #30043.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 19:39:20 +00:00
Ian Stewart
ccf74c19de Twenty Fifteen: Adding in the twentyfifteen credits action.
Props iamtakashi, fixes #30051.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 19:21:18 +00:00
Ian Stewart
ff872080bc Twenty Fifteen: correct comment meta alignment when avatar display is turned off.
Props iamtakashi, fixes #30046.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 19:19:18 +00:00
Ian Stewart
15ca2edb1e Twenty Fifteen: correct button sizes.
Props iamtakashi, fixes #30045.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 19:16:19 +00:00
Ian Stewart
8cee0a57d1 Twenty Fifteen: beautify the header in IE 8.
Props afercia, fixes #30042.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 19:14:18 +00:00
Ian Stewart
5d4f0ac993 Twenty Fifteen: correct styles for color schemes
Props iamtakashi, fixes #29976.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 18:57:26 +00:00
Dion Hulse
dbbd9fb5ec Filesystem: Fix the move() method of the SSH2 transport, which was using the SSH2 link rather than the SFTP link.
Props nobleclem. Fixes #29405

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


git-svn-id: http://core.svn.wordpress.org/trunk@29716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 07:46:19 +00:00
Dion Hulse
6792506741 Avoid a PHP Notice in the PemFTP Library by adding a missing function parameter. This parameter is unused by WordPress.
Props hugodelgado. Fixes #29628

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


git-svn-id: http://core.svn.wordpress.org/trunk@29715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 07:41:19 +00:00
Dion Hulse
2e30f3d891 HTTP API: Support both the 'limit_response_size' and 'stream' parameters at the same time, allowing a partial file download.
Fixes #26726

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


git-svn-id: http://core.svn.wordpress.org/trunk@29714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-20 07:32:21 +00:00
Boone Gorges
24babfddb3 Allow apostrophes in email addresses when adding users via the Dashboard.
Email addresses entered in a number of interfaces were not being stripslashed
properly, with the result that the emails were not being recognized as valid.

Fixes #18039.
Built from https://develop.svn.wordpress.org/trunk@29966


git-svn-id: http://core.svn.wordpress.org/trunk@29713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-19 20:30:19 +00:00
Boone Gorges
304802d70d Use the comment API rather than direct SQL queries in comments_template().
`comments_template()` is used by most themes to display a post's comments. It
shows all comments that have been approved, and also shows all pending comments
by the current visitor (as determined by the comment cookies). However, the
comments API previously had no way of querying for "all comments that are
either approved, or are unapproved but written by foo@example.com". The
workaround was a direct SQL query: uncached, not subject to the same filters as
other comment queries, and just generally icky.

The new `include_unapproved` parameter for `WP_Comment_Query` accepts an array
of user IDs or email addresses. Pending comments associated with users in this
array will be included in query results, regardless of the value of the 'status'
parameter. In `comments_template()`, we leap from direct SQL queries to
`get_comments()` plus `include_unapproved', striving to put right what once
went wrong.

Props boonebgorges, simonwheatley, hardy101, jesin.
Fixes #19623.
Built from https://develop.svn.wordpress.org/trunk@29965


git-svn-id: http://core.svn.wordpress.org/trunk@29712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-19 19:39:20 +00:00
Boone Gorges
b137059656 Make orderby=meta_value compatible with meta_query when relation=OR.
Passing orderby=meta_value and meta_key=foo to WP_Query should require that
each matched post have a meta value with the key 'foo'. To make this
requirement compatible with meta_query params that have the relation OR, we
nest the meta_query param, and join it using AND to a meta_query clause
generated from the meta_key/meta_compare/meta_type query vars.

Fixes #25538.
Built from https://develop.svn.wordpress.org/trunk@29964


git-svn-id: http://core.svn.wordpress.org/trunk@29711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-19 18:54:19 +00:00
Sergey Biryukov
2c809dc24e Live-update site title in toolbar when changing the corresponding field in General Settings.
props celloexpressions, avryl.
fixes #28682.
Built from https://develop.svn.wordpress.org/trunk@29963


git-svn-id: http://core.svn.wordpress.org/trunk@29710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-19 09:13:20 +00:00
Sergey Biryukov
0eb758720a Move password hint text to a function. Add 'password_hint' filter.
props convissor.
fixes #21243.
Built from https://develop.svn.wordpress.org/trunk@29962


git-svn-id: http://core.svn.wordpress.org/trunk@29709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 20:21:18 +00:00
Sergey Biryukov
15a1e0731e Use proper functions for escaped translations.
pros jcastaneda.
fixes #30012.
Built from https://develop.svn.wordpress.org/trunk@29961


git-svn-id: http://core.svn.wordpress.org/trunk@29708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 20:11:18 +00:00
Sergey Biryukov
79175d10cb In wp.updates.decrementCount(), only display the count if it's a valid non-negative integer.
props jdgrimes.
fixes #29527.
Built from https://develop.svn.wordpress.org/trunk@29960


git-svn-id: http://core.svn.wordpress.org/trunk@29707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 19:55:18 +00:00
Sergey Biryukov
d37ce0b0e5 Theme install:
* Move the "based on" string below the rating to avoid wrapping to a second line.
* Reduce the gap between the theme screenshot and description.
* Fix Install button height on mobile.

props obenland, ocean90.
fixes #28148. see #29556.
Built from https://develop.svn.wordpress.org/trunk@29959


git-svn-id: http://core.svn.wordpress.org/trunk@29706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 19:43:18 +00:00
Sergey Biryukov
beca5ad5a3 wp_add_inline_style():
* Change the `wp-inline-style-$handle` class added in [29956] to `$handle-inline-css` for consistency with existing patterns.
* Add the ID attribute when concatenation is enabled as well.

props georgestephanis.
see #30032.
Built from https://develop.svn.wordpress.org/trunk@29958


git-svn-id: http://core.svn.wordpress.org/trunk@29705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 19:04:20 +00:00
Sergey Biryukov
f25962ac14 Themes: Make "Live Preview" the primary action and "Activate" secondary.
props celloexpressions.
fixes #26899.
Built from https://develop.svn.wordpress.org/trunk@29957


git-svn-id: http://core.svn.wordpress.org/trunk@29704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 18:17:20 +00:00
Sergey Biryukov
26c8088a97 Add ID attribute to style element from wp_add_inline_style().
props westonruter.
fixes #30032.
Built from https://develop.svn.wordpress.org/trunk@29956


git-svn-id: http://core.svn.wordpress.org/trunk@29703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 17:58:19 +00:00
Sergey Biryukov
ccbf1571f3 Customizer: Use correct panel-back icon in RTL.
props TomHarrigan.
fixes #29946.
Built from https://develop.svn.wordpress.org/trunk@29955


git-svn-id: http://core.svn.wordpress.org/trunk@29702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 15:35:22 +00:00
Boone Gorges
09e1239ad6 Remove redundant table alias check in WP_Meta_Query.
Also adds documentation for 'meta_query_find_compatible_table_alias' filter.

See #24093.
Built from https://develop.svn.wordpress.org/trunk@29953


git-svn-id: http://core.svn.wordpress.org/trunk@29701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-18 02:22:19 +00:00
Ian Stewart
1804918131 Twenty Fifteen: Swap order of description and caption so the caption is underneath an image on image attachment pages.
Props iamtakashi, fixes #30020.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 21:36:18 +00:00
Dominik Schilling
67c8d7f847 Customizer: Extract content markup for panels to its own method, WP_Customize_Panel::render_content().
This allows to override the behavior of a panel, or even to completely replace its contents with something other than controls or sections.

props celloexpressions.
fixes #29324.
Built from https://develop.svn.wordpress.org/trunk@29950


git-svn-id: http://core.svn.wordpress.org/trunk@29699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 21:25:19 +00:00
Ian Stewart
d224b52731 Twenty Fifteen: centre gallery thumbnails
Props iamtakashi, fixes #30019


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


git-svn-id: http://core.svn.wordpress.org/trunk@29698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 21:23:19 +00:00
Dominik Schilling
bc982b39c1 Customizer: Introduce customize_preview_$setting->type action to handle multiple settings of the same type.
props celloexpressions.
fixes #29165.
Built from https://develop.svn.wordpress.org/trunk@29948


git-svn-id: http://core.svn.wordpress.org/trunk@29697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 21:21:19 +00:00
Ian Stewart
cbc554946b Twenty Fifteen: correct escaping to render HTML in no-content admin message.
Props dmchale, fixes #30011.

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


git-svn-id: http://core.svn.wordpress.org/trunk@29696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 21:16:20 +00:00
Boone Gorges
43fb0af4f1 Invalidate cache for child terms when parent term is deleted.
Props socki03.
Fixes #29911.
Built from https://develop.svn.wordpress.org/trunk@29945


git-svn-id: http://core.svn.wordpress.org/trunk@29695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 20:59:20 +00:00
Ian Stewart
9ed425438f Twenty Fifteen: Removing unused custom color controls.
Props cainm, fixes #29982 and #29959.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 20:52:19 +00:00
Ian Stewart
507fee2825 Twenty Fifteen: Fix hover and focus style for links in content with custom color schemes.
Props iamtakashi, fixes #29978.

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


git-svn-id: http://core.svn.wordpress.org/trunk@29693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 20:32:21 +00:00
Boone Gorges
4ca2996eff Bail from cleaning meta query clause when it's not an array.
Later isset() checks on string values were causing notices on PHP < 5.4.

Props jorbin.
See #29642.
Built from https://develop.svn.wordpress.org/trunk@29941


git-svn-id: http://core.svn.wordpress.org/trunk@29692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 20:25:19 +00:00
Boone Gorges
9345e9ffa5 Overhaul SQL generating logic in WP_Meta_Query to avoid unnecessary table joins.
The logic used to generate clause SQL in `WP_Meta_Query` is somewhat arcane,
stemming mostly from an ongoing effort to eliminate costly table joins when
they are not necessary. By systematizing the process of looking for shareable
joins - as was done in `WP_Tax_Query` [29902] - it becomes possible to simplify
the construction of SQL queries in `get_sql_for_clause()`. Moreover, the
simplified logic is actually considerably better at identifying shareable
joins, such that certain uses of `WP_Meta_Query` will see joins reduced by 50%
or more.

Includes integration tests for a representative cross-section of the query
clause combinations that result in shared table aliases.

Props boonebgorges, sc0ttkclark.
See #24093.
Built from https://develop.svn.wordpress.org/trunk@29940


git-svn-id: http://core.svn.wordpress.org/trunk@29691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 20:21:18 +00:00
Scott Taylor
ea679e358e wp_schedule_single_event() should not prevent scheduling a future duplicate event. It should only reject an event as a duplicate if there is already a similar event scheduled within 10 minutes of the given timestamp.
Adds unit tests, fixes existing cron test.

Props tellyworth.

See [9181], #6966.
Fixes #28213.

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


git-svn-id: http://core.svn.wordpress.org/trunk@29690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 19:17:18 +00:00
Boone Gorges
0f8e7d0e55 Add @since annotation for 'user_registered' support in 'date_query_valid_columns' documentation.
Props DrewAPicture.
Fixes #27283.
Built from https://develop.svn.wordpress.org/trunk@29938


git-svn-id: http://core.svn.wordpress.org/trunk@29689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 03:51:20 +00:00
Boone Gorges
baff5f2b99 Better "inclusive" support for string values in WP_Date_Query.
The 'inclusive' parameter for WP_Date_Query determines whether non-precise
dates for 'before' and 'after' will be rounded up or down. Previously, this was
supported only when 'before' and 'after' were arrays; string-formatted dates
were run through strtotime(), which rounded them all down (inclusive in the
case of after, non-inclusive in the case of before). Now, we attempt to parse
formats that look like MySQL-formatted date strings, and apply inclusive logic
to them if we recognize them successfully.

Fixes #29908.
string values. Array values support the 'inclusive
Built from https://develop.svn.wordpress.org/trunk@29936


git-svn-id: http://core.svn.wordpress.org/trunk@29688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 02:28:19 +00:00
Boone Gorges
6c6a285091 Comment/post author in/not_in for WP_Comment_Query.
Props nofearinc, chriscct7.
Fixes #29885.
Built from https://develop.svn.wordpress.org/trunk@29935


git-svn-id: http://core.svn.wordpress.org/trunk@29687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 01:58:18 +00:00
Boone Gorges
bde2c97aee Support date_query by user_registered in WP_User_Query.
Props ChriCo, nacin.
Fixes #27283.
Built from https://develop.svn.wordpress.org/trunk@29934


git-svn-id: http://core.svn.wordpress.org/trunk@29686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 01:37:18 +00:00
Boone Gorges
fcc82fd671 Use table aliases for columns in SQL generated by WP_Date_Query.
The use of non-aliased column names (eg 'post_date' instead of 'wp_posts.post_date')
in WP_Date_Query causes SQL notices and other failures when queries involve
table joins, such as date_query combined with tax_query or meta_query. This
changeset modifies WP_Date_Query::validate_column() to add the table alias when
it can be detected from the column name (ie, in the case of core columns).

A side effect of this change is that it is now possible to use WP_Date_Query
to build WHERE clauses across multiple tables, though there is currently no
core support for the automatic generation of the necessary JOIN clauses. See

Props ew_holmes, wonderboymusic, neoxx, Viper007Bond, boonebgorges.
Fixes #25775.
Built from https://develop.svn.wordpress.org/trunk@29933


git-svn-id: http://core.svn.wordpress.org/trunk@29685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 01:20:21 +00:00
Boone Gorges
50f1b45594 Add expectedIncorrectUsage flags for unit tests that generate invalid dates.
Since [29925], passing an invalid date to WP_Date_Query will generate a
_doing_it_wrong() notice. The current changeset adds the
`@expectedIncorrectUsage` flag to those existing unit tests that generate
invalid dates, such as those that test canonical redirect and is_404()
conditionals.

Fixes #25834.
Built from https://develop.svn.wordpress.org/trunk@29932


git-svn-id: http://core.svn.wordpress.org/trunk@29684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-17 00:41:18 +00:00
Boone Gorges
3949a8b6cc Remove invalid continue calls from WP_Tax_Query::get_sql_for_clause().
This was leftover code from the previous implementation, which used a `foreach()`
loop. See [29901].

Props nofearinc.
See #29738, #29718.
Built from https://develop.svn.wordpress.org/trunk@29931


git-svn-id: http://core.svn.wordpress.org/trunk@29683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-16 22:07:20 +00:00
Ian Stewart
31c0fa1c6e Twenty Fifteen: readable comment details in the dark colour scheme.
Props NikV, fixes #29970.


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


git-svn-id: http://core.svn.wordpress.org/trunk@29682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-16 22:01:18 +00:00
Andrew Ozz
553bb3cf77 Editor-expand:
- Better calculation for the caret position when auto-scrolling while typing.
- Fix auto-scrolling for non-WebKit browsers when the caret is above the top of the editor.
Fixes #29954
Built from https://develop.svn.wordpress.org/trunk@29929


git-svn-id: http://core.svn.wordpress.org/trunk@29681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-16 21:31:18 +00:00