33065 Commits

Author SHA1 Message Date
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
Dominik Schilling (ocean90)
fcfb1333bf Docs: After [35314], fix the DocBlock for url_shorten().
Merge of [35813] for the 4.4 branch.

Props swissspidy.
See #20166.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35815 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-07 17:05:34 +00:00
Dominik Schilling (ocean90)
efa7c2947e About: Sync tagline from about page with credits and freedoms.
Merge of [35812] to the 4.4 branch.
See #34663.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35814 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-07 16:58:28 +00:00
Dion Hulse
162bc2474b Bundled Themes: Bump version numbers in default themes.
Merges [35802] to the 4.4 branch.
Props davidakennedy.
Fixes #34804.


git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35806 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-06 22:09:47 +00:00
Mark Jaquith
fffc9eeaa6 About Page: Add the WordPress 4.4 tagline.
"Connected" because of REST API and cross-site embeds.
"Responsive" because of responsive images and under-the-hood tweaks.

See #34663 for the 4.4 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35798 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-06 21:54:45 +00:00
Andrew Nacin
0d0580076f Branch 4.4
git-svn-id: https://develop.svn.wordpress.org/branches/4.4@35775 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-06 15:46:16 +00:00
Andrew Nacin
66b0dfe31b Add initial_db_version to wp_version_check().
fixes #34854.


git-svn-id: https://develop.svn.wordpress.org/trunk@35774 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-06 15:43:49 +00:00
Scott Taylor
f89c25a43d REST API: Core typically sends nocache headers on all auth'ed responses, as in wp, admin-ajax, etc. Because the REST API infrastructure is hooked in pre-wp, we should be setting this ourselves.
Adds unit tests.

Props joehoyle.
Fixes #34832.


git-svn-id: https://develop.svn.wordpress.org/trunk@35773 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 23:35:54 +00:00
Boone Gorges
a1f89f4e86 Use 'invalid_username' error code when tripping 'illegal_user_logins'.
This gives us better compatibility with existing errors thrown by
`sanitize_user()`, especially in Multisite, where user_login has more
restrictions on allowed characters.

Props markjaquith.
Fixes #27317.

git-svn-id: https://develop.svn.wordpress.org/trunk@35772 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 23:24:56 +00:00
Aaron Jorbin
6825c7226e Make comment screen row actions focusable
In [34504], tabbing through row actions on comments that lacked links was broken. This restores the desired behavior and ensures that the row actions can be seen by no-js users.

Second Permanent Committer sign off was by WonderBoyMusic

See #15520
Fixes #34791
Props afercia, azaozz



git-svn-id: https://develop.svn.wordpress.org/trunk@35771 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 23:12:57 +00:00
Scott Taylor
12f4c30551 Canonical: introduce strip_fragment_from_url() and use when comparing URLs in redirect_canonical().
Props tellyworth.
Fixes #19918.


git-svn-id: https://develop.svn.wordpress.org/trunk@35770 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 23:10:09 +00:00
Drew Jaynes
db281bf80e About page: Make strings translatable.
See #34663.


git-svn-id: https://develop.svn.wordpress.org/trunk@35769 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 18:08:21 +00:00
Drew Jaynes
267164d5b8 About page: Final string changes.
Props petya, ocean90, DrewAPicture
See #34663.


git-svn-id: https://develop.svn.wordpress.org/trunk@35768 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 17:54:35 +00:00
Dominik Schilling (ocean90)
ec01033a2d Unit Tests: Implement addWarning() method in SpeedTrapListener.
The method was introduced in PHPUnit 5.1.0, released today.

Fixes #34846.

git-svn-id: https://develop.svn.wordpress.org/trunk@35767 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 16:40:10 +00:00
Drew Jaynes
1a3a997433 About page: Add non-breaking spaces to "Reddit Comments" and "Speaker Deck" oEmbed provider names to prevent line wrapping between the words.
Props ocean90.
See #34663.


git-svn-id: https://develop.svn.wordpress.org/trunk@35766 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 16:26:35 +00:00
Drew Jaynes
cc5e86207b About page: Fix some minor string errors and simplify URL-building for the plugin install link for capable users.
Props ocean90, DrewAPicture
See #34663.


git-svn-id: https://develop.svn.wordpress.org/trunk@35765 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 16:12:51 +00:00
Dominik Schilling (ocean90)
5f4902605e Reset Password: Add a missing new operator for WP_Error in get_password_reset_key().
Missed in [34923].

Fixes #34180.


git-svn-id: https://develop.svn.wordpress.org/trunk@35764 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 15:30:17 +00:00
Drew Jaynes
1035906de6 First pass of the 4.4 about page. Adds strings (not yet translatable) and screen shots (not CDN).
Props wonderboymusic, markjaquith, helen, nacin, liljimmi, mordauk, melchoyce, ryelle, ocean90, DrewAPicture
See #34663.


git-svn-id: https://develop.svn.wordpress.org/trunk@35763 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 12:23:24 +00:00
Andrew Nacin
12b1cc4410 Embeds: Enforce, via unit tests, the no-ampersand rule for wp-embed.js.
fixes #34698.


git-svn-id: https://develop.svn.wordpress.org/trunk@35762 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-04 05:45:29 +00:00
Scott Taylor
dedff8fd0e WP oEmbed: validate the secret send via postMessage in wp.receiveEmbedMessage. Also, compare window instances.
In the data sent to us from the embedded iframe by postMessage(), the secret value is being used directly in a document.querySelectorAll() call without first being validated or escaped.

In theory, this could lead to some broken embeds.

Props mdawaffe.
Fixes #34831.


git-svn-id: https://develop.svn.wordpress.org/trunk@35761 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-03 20:16:28 +00:00
Helen Hou-Sandi
3e85312bbf Media: Avoid rel="rel=" situations.
props lucymtc, swissspidy.
fixes #34826. see #32074.


git-svn-id: https://develop.svn.wordpress.org/trunk@35760 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-03 17:16:57 +00:00
Gary Pendergast
76367a145e Readme: Bump recommended MySQL version to 5.6, as 5.5 is now over 5 years old.
Happy birthday, MySQL 5.5! 

Fixes #34840.



git-svn-id: https://develop.svn.wordpress.org/trunk@35759 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-03 16:45:22 +00:00
Mark Jaquith
2ddab3adf8 Route HEAD API requests through the GET callback method
fixes #34837
props danielbachhuber

git-svn-id: https://develop.svn.wordpress.org/trunk@35758 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-03 16:34:00 +00:00
Boone Gorges
14eae0a8a7 Ensure that order is specified when querying for comment descendants.
Props tellyworth.
Fixes #34838.

git-svn-id: https://develop.svn.wordpress.org/trunk@35757 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-03 15:49:37 +00:00
wonderboymusic
594ce27b61 Install: after [35508], the margin on the header for the Install screen is too big.
Props SergeyBiryukov.
Fixes #34819.


git-svn-id: https://develop.svn.wordpress.org/trunk@35756 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-01 21:01:02 +00:00
Scott Taylor
a8523ae92a Responsive Images: Currently images are included in the srcset if the aspect ratio difference is smaller than 0.01. This number is too high, set it to 0.002
Props joemcgill.
Fixes #34810.


git-svn-id: https://develop.svn.wordpress.org/trunk@35755 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-01 20:57:42 +00:00
Scott Taylor
aad857409b Customize Unit Tests: also remove_action( 'after_setup_theme', 'twentysixteen_setup' ). TwentyFifteen is already removed.
See #31550.


git-svn-id: https://develop.svn.wordpress.org/trunk@35754 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-01 20:55:22 +00:00
Scott Taylor
69900349ca Media: don't use get_media_embedded_in_content() in wp_make_content_images_responsive().
Adds unit test.

Props azaozz.
Fixes #34807.


git-svn-id: https://develop.svn.wordpress.org/trunk@35753 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-01 20:49:13 +00:00
Scott Taylor
a69f591c55 Media: show Trash filter for Media list table when MEDIA_TRASH is true.
Props chacha102.
Fixes #34795.


git-svn-id: https://develop.svn.wordpress.org/trunk@35752 602fd350-edb4-49c9-b593-d223f7449a82
2015-12-01 20:47:24 +00:00