Commit Graph

33043 Commits

Author SHA1 Message Date
Dion Hulse
aca801ca7a XMLRPC: Revert [35509] which caused a change of behviour in at least one XMLRPC client.
XMLRPC has many quirks in it's operation, #16980 being just one of the many, #35185 just became yet another quirk.

Merges [36132] to the 4.4 branch.
See #16980.
Fixes #35185.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36133 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-31 04:06:16 +00:00
Gary Pendergast
13c222a854 Upgrade PHPMailer from 5.2.10 to 5.2.14.
The full list of changes is available here: https://github.com/PHPMailer/PHPMailer/compare/v5.2.10...v5.2.14

Merge of [36083] to the 4.4 branch.

Fixes #35212.



git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36131 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-31 03:31:25 +00:00
Gary Pendergast
68f621f76a Redirects: Prevent redirects if a queried object exists.
After [34659], it became possible to cause an incorrect redirect, by changing the slug of a post, then creating a new post with the old slug. The correct behaviour is to prevent redirecting to the old post.

Props dd32, pento.

Merge of [36128] to the 4.4 branch.

Fixes #35031.



git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36129 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-31 03:08:28 +00:00
Dion Hulse
2e6fd7f2f1 Tests: After [36100] use an object style which is compatible with PHP5 get_object_vars().
Merges [36117] to the 4.4 branch.
See #35249.
Fixes #35058.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36118 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-29 05:48:58 +00:00
Boone Gorges
b1e92818a8 Force non-public taxonomies to have a query_var of false.
[35333] implemented `public=false` for taxonomies. The implementation prevented
non-public taxonomies from having their archives accessed via query_var during
a normal request. But it didn't prevent non-public taxonomies from registering
their query vars in the `$wp_taxonomies` global. The latter implementation
details causes problems specifically when a taxonomy is registered with
`query_var=true`; for public taxonomies, `register_taxonomy()` translates this
into a query_var equivalent to the taxonomy name, but in the case of non-public
taxonomies, the query_var was set to the boolean itself. The boolean then
causes problems when using non-strict comparison to filter taxonomy objects by
query_var, as when using `get_taxonomies()`.

This changeset addresses the issue by forcing the query_var property of
non-public taxonomies to `false`.

Merges [36108] to the 4.4 branch.

Fixes #35089.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36109 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-27 16:42:35 +00:00
Dion Hulse
2be7479109 Users: When determining whether to show the reassign content option during user delete, don't rely upon WP_Query as it doesn't return all forms of content wp_delete_user() operates on.
This restores the reassign form when a user has a non-public post type or links assigned to them.

Merges [36068] to the 4.4 branch.
Props swissspidy & tharsheblows for initial patches.
Fixes #34993.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36106 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-27 02:16:40 +00:00
Dion Hulse
5310dbb071 Pages: get_page_uri() should return the URI at which the resource being accessed is available at, this may include non-'publish' status posts.
Reverts [34001] and fixes the original issue in #15963 - avoiding a PHP Notice for when the post doesn't exist.

Merges [36094] to the 4.4 branch.
Props tharsheblows.
See #15963.
Fixes #35084.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36105 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-27 02:15:30 +00:00
Dion Hulse
0c2d4a35db Help Tab Order should be based on the Priority Argument
[34370] made the order that tabs are returned respect the order they are added, however it broke the respect of priority. By using a ksort instead of a sort, we can restore that default behavior. This adjusts the unit tests so that both order added and priority are tested.

Merges [36089] to the 4.4 branch.
Props meitar, swissspidy, jorbin
Fixes #35215. See #33941.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36104 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-27 02:13:20 +00:00
Dion Hulse
4410be69f7 Canonical: Output correct canonical links for paged posts when not using pretty permalinks.
Merges [36096] to the 4.4 branch.
Props peterwilsoncc.
Fixes #34890.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36103 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-27 02:11:56 +00:00
Dion Hulse
89743282f7 Allow map_deep() to work with object properties containing a reference. Restores the previous behaviour of stripslashes_deep().
Merges [36100] to the 4.4 branch.
Props jeff@pyebrook.com, swissspidy.
See #22300, [35252].
Fixes #35058.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36101 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-26 05:23:43 +00:00
Dion Hulse
0ad7833b73 Shortcodes: = is a reserved character in shortcode names, mark it as such.
This allows for shortcodes such as `[shortcode=attribute]` to work, which while never intentionally supported were widely used in the pre-shortcode days.

Merges [36097] to the 4.4 branch, minus a string change.
Props aaroncampbell.
Fixes #34939.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36098 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-26 04:47:58 +00:00
Konstantin Obenland
a148640ec4 Menus: Bring back line break between menu items.
While removing line breaks was great for all use cases except justified menu
items, it broke menus with justified menu items.
Reverts [34321].

Merges [36081] to the 4.4 branch.
Props wp-architect.
Fixes #35107.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36082 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-24 00:25:06 +00:00
Dion Hulse
1cef7a9426 Widgets: Remove extra quotes from widget title in WP_Widget_RSS, accidentally added in [33814].
Merges [35978] to the 4.4 branch.
Props ShinichiN.
Fixes #34978.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36067 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-23 01:59:22 +00:00
Dion Hulse
bbb7c1ca4e Remove RDIO from oEmbed providers
RDIO is shutting down. https://www.rdio.com/farewell/

Merges[36007] to the 4.4 branch.
Props swissspidy.
Fixes #35152.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36066 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-23 01:52:47 +00:00
Dion Hulse
3b46a8a016 Customize: Ensure that "Change" button appears when there are only 2 themes.
Fixes defect introduced in [35535].

Merges [35943] to the 4.4 branch.
Props igmoweb.
See #34549.
Fixes #35081.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36065 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-23 01:50:27 +00:00
Dion Hulse
546ece8154 In WP::handle_404(), make sure $wp_query->post is a WP_Post object before cloning it.
Merges [35994] to the 4.4 branch.
Props igmoweb, swissspidy.
Fixes #35013.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36064 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-23 01:41:24 +00:00
Dion Hulse
7f503b0c41 I18N: In wp_maybe_decline_date(), bail early if translation functions are not available, e.g. in SHORTINIT mode.
Merges [35880] to the 4.4 branch.
Props SergeyBiryukov.
Fixes #34967.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36063 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-23 01:38:16 +00:00
Gary Pendergast
f605394d46 Embeds: Don't show embed discovery link on a static front page.
There's currently no iframe content being generated for a static front page. Giving out a link to that isn't an ideal user experience.

Props peterwilsoncc.

Merge of [36059] to the 4.4 branch.

Fixes #35194.



git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36060 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-22 10:54:17 +00:00
Dion Hulse
86cff16c6a Update random_compat to latest
Changes:
 * Checks `disable_classes` for `COM()` before using to avoid PHP Warnings
 * Uses `stream_set_chunk_size()` to avoid reading 8KiB from `/dev/urandom` unintentionally.

Merges [35922] to the 4.4 branch.

Fixes #34948.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36058 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-22 03:22:05 +00:00
Boone Gorges
9b064872d0 Order terms by 'name' when populating object term cache.
[34217] removed the `ORDER BY` clause from `update_object_term_cache()`, for
improved performance. But this proved to cause problems in cases where users
were expecting the results of `get_the_terms()` to be ordered by 'name'. Let's
revert the change for the time being, and look into more disciplined ordering
in a future release.

Merges [36056] to the 4.4 branch.

Props afercia.
See #28922. Fixes #35180.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36057 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-22 01:52:41 +00:00
John Blackbourn
509f2dc5f7 Tests: Correct the public query vars test for the 4.4 branch.
See #35115


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36052 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 08:35:15 +00:00
John Blackbourn
58dbd83c4f Query: Re-initialise any dynamically-added public query vars before running the public query vars test.
Merges [36048] to the 4.4 branch.

Fixes #35115


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36051 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 07:56:05 +00:00
John Blackbourn
5f07f529a7 Query: Introduce a unit test which will fail when new public query vars are introduced without also updating the test. This adds an extra layer of explicitness to introducing public query vars in order to avoid introducing unintentional clashes with URL query vars that are already in use.
Merges [36045] to the 4.4 branch.

Fixes #35115


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36046 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 05:49:42 +00:00
John Blackbourn
36366a5f76 Avoid a PHP notice when trying to access the post_parent property of hierarchical post type nav menu items.
Merges [35876] to the 4.4 branch.

Fixes #34446


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36044 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 03:52:54 +00:00
John Blackbourn
ddaca62f7c Login: Revert [34213] and [35897]. It has become apparent that there is a need for a separate function (and corresponding filter) which allows for the login form action URL to differ from the URL used to access the login form, so that plugins or implementations which change the login URL do not need to worry about handling the form submission at the same URL.
For now, we'll revert to the pre-4.4 behaviour of hard-coding the login form action URL as `wp-login.php` and look at implementing a separate function and corresponding filter in 4.5.

Merges [36042] to the 4.4 branch.

Props KrissieV, salcode, JPry
Fixes #34925
Fixes #35103


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36043 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 03:29:49 +00:00
Boone Gorges
6049f6f119 Respect approval status when determining comment page count in comments_template().
Since 4.4, when fetching the first page of comments and the 'newest' comments
are set to display first, `comments_template()` must perform arithmetic to
determine which comments to show. See #8071. This arithmetic requires the
total comment count for the current post, which is calculated with a separate
`WP_Comment_Query`. This secondary comment query did not properly account for
non-approved comment statuses; all unapproved comments should be part of the
comment count for admins, and individual users should have their own
unapproved comments included in the count. As a result, `comments_template()`
was, in some cases, being fooled into thinking that a post had fewer comments
available for pagination than it actually had, which resulted in empty pages
of comments.

We correct this problem by mirroring 'status' and 'include_unapproved' params
of the main comment query within the secondary query used to calculate pagination.

Merges [36040] to the 4.4 branch.

Fixes #35068.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36041 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 03:10:45 +00:00
John Blackbourn
f2c9b567d9 Comments: When a comment is submitted, ensure the user_ID element in the array that's passed to the preprocess_comment filter gets populated.
Merges [36038] to the 4.4 branch.

Fixes #34997


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36039 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 02:57:06 +00:00
Gary Pendergast
5cb6bf82b8 Texturize: Transform & into & in tag attributes.
[35709] was overly broad, and stopped transforming `&` characters within tag attributes. So that sites aren't generating invalid HTML, we need to restore this functionality, while continuing to not transform `&` within blocked tags.

Merge of [36036] to the 4.4 branch.

Fixes #35008.



git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36037 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 02:45:43 +00:00
Gary Pendergast
59e62535a0 Query: Remove title from the public query vars list.
[33706] added `title` as a public query var, but there's not really a practical need for this, and it interferes with any plugin that uses `title` as a query var for itself.

Merge of [36034] to the 4.4 branch.

Props tyxla.

Fixes #35115.



git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36035 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-21 02:30:34 +00:00
Boone Gorges
4407a710ce Ensure that wp_list_categories() supports comma-separated lists for 'exclude' and 'exclude_tree'.
[34696] introduced a regression whereby comma-separated values for 'exclude'
and 'exclude_tree' would be handled improperly when merging the two parameters,
resulting in category IDs being incorrectly dropped from the combined array.

Merges [36005] to the 4.4 branch.

Props gblsm, hnle.
Fixes #35156.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36006 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-18 18:13:58 +00:00
Boone Gorges
5d63b53a27 Ensure get_terms() results are unique when using 'meta_query'.
The introduction of 'meta_query' to `get_terms()` in 4.4 made it possible for
`get_terms()` to erroneously return duplicate results. To address the issue,
we add the `DISTINCT` keyword to the SQL query when a 'meta_query' parameter
has been provided.

Merges [36003] to the 4.4 branch.

Props @jadpm.
Fixes #35137.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@36004 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-18 17:48:33 +00:00
Dion Hulse
5642a5ae48 Filesystem: Revert [33648] and [34733] unfortunately these have caused issues for some servers, while fixing it for others.
See #28013
Fixes #34976 for the 4.4 branch
Fixes #34976 for the 4.4 branch


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35945 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-15 02:36:59 +00:00
Boone Gorges
d0d7a534b6 After [35934], ensure get_comment_link() test works without shared fixtures.
`get_comment_link()` test fixtures are shared in trunk as of [35857]. This
change was not backported to the 4.4 branch, so the 4.4 test should not
expect shared fixtures.

See #34946.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35936 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-14 21:09:52 +00:00
Boone Gorges
4260a85f41 Omit cpage query var in comment link if comment pagination is disabled.
WP 4.4 changed the way comment pagination is calculated. See #8071. In the
context of `get_comment_link()`, these changes introduced a regression that
causes `cpage` (or its pretty-permalink correlate `comment-page-x`) to appear
in comment links when comment pagination is disabled. The current changeset
fixes the regression.

Merges [35933] to the 4.4 branch.

Fixes #34946.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35934 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-14 19:56:14 +00:00
Boone Gorges
270d00cf10 Don't use array_merge() when building comment children arrays.
`array_merge()` is much slower than building the combined array using a
`foreach` loop. The performance difference was causing a speed regression with
the `get_children()` functionality introduced in 4.4.

Merges [35931] to the 4.4 branch.

Props rogerhub.
Fixes #35025.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35932 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-14 19:39:31 +00:00
Dion Hulse
1f56470c0b HTTP: Partially revert [34283] which removed the 1024bit certificates from our trust store.
Most browsers no longer trust 1024bit certificates, or certificates signed by them, instead verifying them by a trusted intermediate or a cross-sign from another trusted certificate.

Unfortunately, as it turns out, OpenSSL prior to 1.0.1g cannot correctly handle certificates chains such as this, even if one of the intermediates is trusted.
The solution is that we need to continue to trust the 1024bit legacy root certificates forthe foreseeable future

This adds the following certificates back into our trust store:
{{{
GTE CyberTrust Global Root
Thawte Server CA
Thawte Premium Server CA
Verisign Class 3 Public Primary Certification Authority
Verisign Class 3 Public Primary Certification Authority - G2
ValiCert Class 1 VA
ValiCert Class 2 VA
RSA Root Certificate 1
Entrust.net Secure Server CA
Equifax Secure Global eBusiness CA
Equifax Secure eBusiness CA 1
America Online Root Certification Authority 1
America Online Root Certification Authority 2
NetLock Business (Class B) Root
NetLock Express (Class C) Root
Verisign Class 3 Public Primary Certification Authority
}}}

Props rmccue.
Merges [35919] to the 4.4 branch.
Fixes #34935.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35921 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-14 05:24:03 +00:00
Dominik Schilling (ocean90)
a2b68153e6 Bump package.json and readme.html to 4.4.1 in the 4.4 branch.
git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35852 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-10 10:55:57 +00:00
Boone Gorges
1045482f57 Improve handling for WP_Error objects in get_the_terms().
`wp_get_object_terms()` can return a `WP_Error` object. As such, the
`get_the_terms()` cache wrapper should handle them properly. To wit:

* Don't try to map an error object to `get_term()`. Introduced in [35032].
* Don't cache an error object as taxonomy relationships. Introduced in at least [16487], maybe earlier.

Ports [35850] to the 4.4 branch.

Props stephenharris.
Fixes #34723.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35851 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-10 03:43:50 +00:00
Dion Hulse
2250f2b689 The 4.4 branch is now 4.4.1-alpha.
git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35843 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-09 01:13:17 +00:00
Scott Taylor
e8ab7df3e1 WordPress 4.4
git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35841 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 23:43:01 +00:00
Dominik Schilling (ocean90)
5f030b8254 About Page: Add release video and update post embed.
Merge of [35839] to the 4.4 branch.

Props camikaos, siobhan, rosso99, wonderboymusic.
Fixes #34663.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35840 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 23:28:27 +00:00
Dominik Schilling (ocean90)
761449a32f Install/Upgrade: Keep indexing bots away until a site is ready to be seen.
Merge of [35837] to the 4.4 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35838 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 22:01:10 +00:00
Dominik Schilling (ocean90)
394ae69977 Add missing svn:mergeinfo properties for [35835].
git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35836 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 20:39:31 +00:00
Dominik Schilling (ocean90)
b5aa0ecbe8 About Page: Use w.org CDN, use ReverbNation instead of Cloudup, adjust the layout.
Merge of [35832], [35833], and [35834] to the 4.4 branch.

See #34663.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35835 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 20:33:05 +00:00
Dominik Schilling (ocean90)
10b71686e2 Bundled Themes: Update POT files.
Merge of [35829] to the 4.4 branch.

See #34804.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35830 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 15:19:29 +00:00
Scott Taylor
40f51fc6d5 About Page: use the source of the Make/Core Embed response instead of discovering it (or reading from the cache) every time.
Merge of [35826] to the 4.4 branch.
See #34663.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35828 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 03:43:47 +00:00
Scott Taylor
e9636371f1 About Page: use srcset for images, also known as Recursive Dogfooding.
Merge of [35825] to the 4.4 branch.

Props joemcgill.
See #34663.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35827 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-08 03:42:38 +00:00
Dominik Schilling (ocean90)
369f3848fa About Page: Add Cloudup embed and cache the embeds as site transients.
Merge of [35823] to the 4.4 branch.

Props wonderboymusic.
See #34663.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35824 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-07 23:31:22 +00:00
Dominik Schilling (ocean90)
32860dbdf4 Media: Don't generate responsive image attributes if src does not match ID in wp-image- class.
We rely on the `wp-image-` class to quickly find an attachment ID to add responsive image attributes.
To avoid incorrect images being displayed, do not add these attributes if the `src` does not match the
meta from the attachment ID in the class.

Merge of [35820] to the 4.4 branch.

Props azaozz, kovshenin, joemcgill, mikeschroder.
See #34898.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35821 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-07 20:28:37 +00:00
Dominik Schilling (ocean90)
b7d892baed List Tables: Revert [34728] and [35482].
Part of [34728] was already reverted in [35682], but the default values still made it impossible to set a default ordering for custom post types.

Merge of [35818] for the 4.4 branch.

See #25493.
Fixes #34825.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35819 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-07 20:07:20 +00:00