Sergey Biryukov
3fb7d586da
Unit Tests: Account for the string changes in [38077].
...
See #18218 .
Built from https://develop.svn.wordpress.org/trunk@38078
git-svn-id: http://core.svn.wordpress.org/trunk@38019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-17 16:24:28 +00:00
Sergey Biryukov
7d421dbe42
Text Changes: Add a full stop to "Invalid taxonomy" and "Invalid term ID" strings, for consistency with similar post-related messages.
...
See #18218 , #32329 .
Built from https://develop.svn.wordpress.org/trunk@38077
git-svn-id: http://core.svn.wordpress.org/trunk@38018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-17 16:15:34 +00:00
Sergey Biryukov
866bd39813
I18N: Combine two duplicate "Invalid post type" strings.
...
Props @ramiy.
See #18218 .
Built from https://develop.svn.wordpress.org/trunk@38076
git-svn-id: http://core.svn.wordpress.org/trunk@38017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-17 16:05:31 +00:00
Dominik Schilling
d5cb80dd7f
Import: Enhance accessibility on the Import screen.
...
* Remove title attributes.
* Show "Install Now" and "Details" links if the importer isn't installed yet.
* Show a "Run Importer" link if the importer is installed. It also handles activation if the plugin isn't activated.
* Add `aria-label` attributes to each link.
* Unify the importer descriptions to make them independent from the plugin state. The API was changed in [meta3690].
* Adjust JavaScript callbacks for ajaxified importer installs.
Props afercia, swissspidy, ocean90.
See #24766 .
Fixes #35191 .
Built from https://develop.svn.wordpress.org/trunk@38075
git-svn-id: http://core.svn.wordpress.org/trunk@38016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-17 15:32:30 +00:00
Sergey Biryukov
48f9940cfc
I18N: Change unnecessary uppercased words in WP_Upgrader::generic_strings()
to lower case.
...
See #18218 .
Built from https://develop.svn.wordpress.org/trunk@38074
git-svn-id: http://core.svn.wordpress.org/trunk@38015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-17 13:29:29 +00:00
Sergey Biryukov
f429056194
I18N: Combine two duplicate "Unable to locate WordPress Theme directory" strings.
...
See #18218 .
Built from https://develop.svn.wordpress.org/trunk@38073
git-svn-id: http://core.svn.wordpress.org/trunk@38014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-17 12:58:28 +00:00
Sergey Biryukov
cbd59fdfd0
Text Changes: After [37297], replace two more instances of "WordPress.org Plugin Directory" with "WordPress Plugin Directory".
...
See #35938 .
Built from https://develop.svn.wordpress.org/trunk@38072
git-svn-id: http://core.svn.wordpress.org/trunk@38013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-17 12:50:43 +00:00
Sergey Biryukov
0be3a84ad0
I18N: After [38057], consistently use a context for other instances of Activate %s
, Network Activate %s
, and Delete %s
strings.
...
See #37290 .
Built from https://develop.svn.wordpress.org/trunk@38071
git-svn-id: http://core.svn.wordpress.org/trunk@38012 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-16 23:20:29 +00:00
Sergey Biryukov
50a39d4b1f
I18N: Remove a stray translator comment added in [38057].
...
See #37290 .
Built from https://develop.svn.wordpress.org/trunk@38070
git-svn-id: http://core.svn.wordpress.org/trunk@38011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-16 23:11:31 +00:00
Boone Gorges
40741408ec
On term.php, use $taxnow
when fetching currently edited term.
...
[36874] changed the `get_term()` call so that no `$taxonomy` parameter
was passed, as 4.4 made the parameter optional. This change made it
impossible to access a shared term that has not yet been splitr, since
passing an ambiguous `$term_id` to `get_term()` results in an error.
Restoring the `$taxonomy` parameter fixes the regression.
Props alleynoah, dlh.
Fixes #37205 .
Built from https://develop.svn.wordpress.org/trunk@38069
git-svn-id: http://core.svn.wordpress.org/trunk@38010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-16 18:37:30 +00:00
Sergey Biryukov
f5aab6e25d
Docs: Correct $post
parameter name and description for wp_attachment_is()
and wp_attachment_is_image()
.
...
Props flixos90.
Fixes #37377 .
Built from https://develop.svn.wordpress.org/trunk@38068
git-svn-id: http://core.svn.wordpress.org/trunk@38009 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-16 13:05:29 +00:00
Sergey Biryukov
5cce706f3d
Permalinks: Rename $usingpi
to $using_index_permalinks
for clarity.
...
See #37380 .
Built from https://develop.svn.wordpress.org/trunk@38067
git-svn-id: http://core.svn.wordpress.org/trunk@38008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-16 12:46:29 +00:00
Sergey Biryukov
07c9671cac
Permalinks: After [37747], make sure $usingpi
, $writable
, and $update_required
are defined before checking them on permalinks update.
...
Props Clorith.
Fixes #37380 .
Built from https://develop.svn.wordpress.org/trunk@38066
git-svn-id: http://core.svn.wordpress.org/trunk@38007 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-16 12:44:32 +00:00
Joe McGill
c1e8f430f9
Media: Always add alt
attributes to images inserted from URLs
...
Previously, when inserting an image from a URL, leaving the `alt`
field blank in the media modal would result in an image being
inserted into the editor without an `alt` attribute, rather than
an empty `alt`. This happened because the `props.type` would not
get set in `wp.media.string.props()` — because `attachment` is
undefined in this case — causing the image fallbacks to get
skipped.
This fixes the issue by explicitly setting `props.type` to 'image'
in `wp.media.string.image()` before filling out the rest of the
properties.
Props ambrosey, dabnpits.
Fixes #36735 .
Built from https://develop.svn.wordpress.org/trunk@38065
git-svn-id: http://core.svn.wordpress.org/trunk@38006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-15 03:16:30 +00:00
Dominik Schilling
a8ccd1ce23
Users: Update help text for user-new.php
to remove reference to sending passwords via email.
...
Props anneschmidt.
Fixes #36763 .
Built from https://develop.svn.wordpress.org/trunk@38064
git-svn-id: http://core.svn.wordpress.org/trunk@38005 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-14 21:51:32 +00:00
John Blackbourn
e54a72fc2f
Canonical: Remove a duplicate test data entry.
...
Fixes #37370
Built from https://develop.svn.wordpress.org/trunk@38063
git-svn-id: http://core.svn.wordpress.org/trunk@38004 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-14 20:51:31 +00:00
Dominik Schilling
94d344829e
Editor: Enqueue the wp-embed
script to fix embed previews inside the media modal.
...
Props swissspidy.
Fixes #37334 .
Built from https://develop.svn.wordpress.org/trunk@38062
git-svn-id: http://core.svn.wordpress.org/trunk@38003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-14 13:29:31 +00:00
Drew Jaynes
d8a6dee52c
Docs: Update a cross-reference in the DocBlock for wp_register_plugin_realpath()
from plugin_basename()
to wp_normalize_path()
.
...
Props zuige.
Fixes #37357 .
Built from https://develop.svn.wordpress.org/trunk@38061
git-svn-id: http://core.svn.wordpress.org/trunk@38002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 19:22:28 +00:00
Dominik Schilling
2dd43ea9b1
Post WordPress 4.6 Beta 3 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@38060
git-svn-id: http://core.svn.wordpress.org/trunk@38001 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 18:58:28 +00:00
Dominik Schilling
0b2a1a0d81
WordPress 4.6 Beta 3.
...
Built from https://develop.svn.wordpress.org/trunk@38059
git-svn-id: http://core.svn.wordpress.org/trunk@38000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 18:41:27 +00:00
Boone Gorges
905f4ec0f8
Mail: Improve handling of UTF-8 address headers.
...
Previously, `wp_mail()` implemented Reply-To as a generic header, using
PHPMailer's `addCustomHeader()`. As such, the email address portion of
the header was being incorrectly encoded when the name portion
contained UTF-8 characters. Switching to PHPMailer's more specific
`addReplyTo()` method fixes the issue.
For greater readability, the handling of all address-related headers
(To, CC, BCC, Reply-To) has been standardized.
Props szepe.viktor, iandunn, bpetty, stephenharris.
Fixes #21659 .
Built from https://develop.svn.wordpress.org/trunk@38058
git-svn-id: http://core.svn.wordpress.org/trunk@37999 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 18:04:28 +00:00
Dominik Schilling
98d03cb738
Update/Install: Give context to some install/update strings to allow for differentiation between theme and plugin translations.
...
Props swissspidy, SergeyBiryukov.
Fixes #37290 .
Built from https://develop.svn.wordpress.org/trunk@38057
git-svn-id: http://core.svn.wordpress.org/trunk@37998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 17:32:29 +00:00
Drew Jaynes
4418b71645
Docs: Add an initial @since
version to wp-includes/feed.php.
...
The file was introduced in 2.1.0 when it was moved from wp-includes/feed-functions.php in [3862].
See #32246 . See #36295 .
Built from https://develop.svn.wordpress.org/trunk@38056
git-svn-id: http://core.svn.wordpress.org/trunk@37997 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 17:04:28 +00:00
Drew Jaynes
e3e4762b8f
Docs: Update the default value for the optional $args
parameter in get_networks()
following [38042].
...
See #32504 .
Built from https://develop.svn.wordpress.org/trunk@38055
git-svn-id: http://core.svn.wordpress.org/trunk@37996 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 16:04:29 +00:00
Dominik Schilling
67de1f07d3
HTTP API: Pass proxy settings to Requests.
...
`WP_HTTP_Proxy()` is used directly in `WP_Http_Curl()` and `WP_Http_Streams()`. Since `WP_Http::request()` doesn't use them anymore we have to move the proxy handling into `WP_Http::request()` so the proxy data can be passed to `Requests::request()`.
Props rmccue.
See #33055 .
Fixes #37107 .
Built from https://develop.svn.wordpress.org/trunk@38054
git-svn-id: http://core.svn.wordpress.org/trunk@37995 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 15:51:28 +00:00
Dominik Schilling
5f862c626a
HTTP API: Update Requests.
...
Fixes an issue where you couldn't set a `Requests_Proxy_HTTP` object as a proxy setting.
See https://github.com/rmccue/Requests/pull/223 .
See #37107 , #33055 .
Built from https://develop.svn.wordpress.org/trunk@38053
git-svn-id: http://core.svn.wordpress.org/trunk@37994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 15:44:29 +00:00
Joe McGill
2ecdbf36cb
Media: URL encode spaces in srcset
attributes.
...
In some cases, images in the media library may contain spaces in
their filenames. This results in an invalid `srcset` attribute,
causing broken images on the front end. This change fixes the issue
by replacing spaces in URLs with URL encoded '%20' characters before
returning the `srcset` string.
Props underdude, joemcgill.
Fixes #36549 .
Built from https://develop.svn.wordpress.org/trunk@38052
git-svn-id: http://core.svn.wordpress.org/trunk@37993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 15:24:55 +00:00
Drew Jaynes
60de6917fb
Docs: Add and clarify changelog entries for elements that can now accept, use, or return WP_Post_Type
objects.
...
Also adds a missing initial `@since` version for `wp_xmlrpc_server::_prepare_post_type()`.
See [37890]. See #36217 .
Built from https://develop.svn.wordpress.org/trunk@38051
git-svn-id: http://core.svn.wordpress.org/trunk@37992 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 15:24:28 +00:00
Dominik Schilling
456c9bea3d
Comments: After [37743], prevent a JavaScript error when wpAjax.parseAjaxResponse()
returns an error or true.
...
Props rachelbaker.
Fixes 36742.
Built from https://develop.svn.wordpress.org/trunk@38050
git-svn-id: http://core.svn.wordpress.org/trunk@37991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 15:03:28 +00:00
Dominik Schilling
349de667fa
Remove svn:executable
property from Requests and some other files.
...
Built from https://develop.svn.wordpress.org/trunk@38049
git-svn-id: http://core.svn.wordpress.org/trunk@37990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 14:39:28 +00:00
Rachel Baker
2040186a5d
Comments: Include comment_content with html and without in blacklist_keys comparison.
...
After [38047], also include the comment_content with html in the preg_match against blacklist keys to match urls.
Props ocean90.
Fixes #37208 .
Built from https://develop.svn.wordpress.org/trunk@38048
git-svn-id: http://core.svn.wordpress.org/trunk@37989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 14:05:29 +00:00
Rachel Baker
240e3ec683
Comments: Strip html tags from comment content before blacklist_keys comparison.
...
Use `wp_kses()` to clean comment_content for preg_match against the blacklist_keys. Also includes some initial unit tests for `wp_blacklist_check()`.
Previously, if a blacklisted key was used in comment_content split by an html tag the regex in `wp_blacklist_check()` would not find a match. Example: Where "springfield" was a blacklisted word, if the content of a comment included `spring<i>field</i>" `wp_blacklist_check()` would not return true.
Props cfinke.
Fixes #37208 .
Built from https://develop.svn.wordpress.org/trunk@38047
git-svn-id: http://core.svn.wordpress.org/trunk@37988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 13:48:39 +00:00
Dominik Schilling
c73c23c423
Resource Hints: Increase priority of wp_resource_hints()
so hints get printed before scripts and styles.
...
Also run `wp_resource_hints()` on the login screen and in the customizer.
Props swissspidy.
Fixes #37317 .
Built from https://develop.svn.wordpress.org/trunk@38046
git-svn-id: http://core.svn.wordpress.org/trunk@37987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 12:54:28 +00:00
Dominik Schilling
834f0809fc
WP Mail: Remove an unused variable.
...
Unused since [34864].
Props vishalkakadiya.
Fixes #37346 .
Built from https://develop.svn.wordpress.org/trunk@38045
git-svn-id: http://core.svn.wordpress.org/trunk@37986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 12:37:29 +00:00
Dominik Schilling
fb59d07c9b
Database: Add unit test to test that a column type change for a table name with a hyphen is working after [37583].
...
Fixes #31679 .
Built from https://develop.svn.wordpress.org/trunk@38044
git-svn-id: http://core.svn.wordpress.org/trunk@37985 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 11:39:41 +00:00
John Blackbourn
7e7dfdea55
HTTP API: Remove duplicate documentation for the http_api_debug
hook.
...
Fixes #37081
Built from https://develop.svn.wordpress.org/trunk@38043
git-svn-id: http://core.svn.wordpress.org/trunk@37984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 10:23:43 +00:00
Jeremy Felt
f3b3ece76a
Multisite: Set default $args
to an empty array in get_networks()
.
...
The empty string was not incorrect. Using `array()` here instead makes things a bit more consistent by aligning with `get_sites()`, `get_users()`, and `get_terms()`.
See #32504 .
Built from https://develop.svn.wordpress.org/trunk@38042
git-svn-id: http://core.svn.wordpress.org/trunk@37983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 05:30:29 +00:00
Jeremy Felt
da40e89d06
Meta: Ensure filters are backwards compatible for pre-4.6 style meta registration.
...
When using `register_meta()` with the function signature from 4.5 and earlier, the `auth_{$type}_meta_{$key}` and `sanitize_{$type}_meta_{$key}` filters are used. Any calls to `register_meta()` expecting this behavior should continue to work. The new filters, which take advantage of object subtypes, should not be added unless the proper `$args` array is passed.
See #35658 .
Built from https://develop.svn.wordpress.org/trunk@38041
git-svn-id: http://core.svn.wordpress.org/trunk@37982 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 04:46:28 +00:00
Jeremy Felt
d5e14166f3
Meta: Remove filters when meta is unregistered.
...
If auth and/or sanitize callbacks are specified in the arguments for
`register_meta()`, filters are added to handle these callbacks. These
should be removed when calling `unregister_meta_key()` to avoid
unintentional filtering.
See #35658 .
Built from https://develop.svn.wordpress.org/trunk@38040
git-svn-id: http://core.svn.wordpress.org/trunk@37981 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-13 04:13:30 +00:00
Andrew Ozz
532e8f0204
TinyMCE: preserve <script>
and <style>
tags inside the editor.
...
Uses image placeholders for the tags and makes then visible. That way the tags can also be deleted from inside the editor.
Props iseulde, azaozz.
Fixes #32923 .
Built from https://develop.svn.wordpress.org/trunk@38039
git-svn-id: http://core.svn.wordpress.org/trunk@37980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 22:09:31 +00:00
John Blackbourn
3a7137a7a5
Meta: Add a missing @since
param for wp_object_type_exists()
.
...
See #35658
Built from https://develop.svn.wordpress.org/trunk@38038
git-svn-id: http://core.svn.wordpress.org/trunk@37979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 13:21:29 +00:00
Dominik Schilling
97bf32c66a
Text Changes: Unify/merge two more permission error messages.
...
Props ramiy.
Fixes #34521 .
Built from https://develop.svn.wordpress.org/trunk@38037
git-svn-id: http://core.svn.wordpress.org/trunk@37978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 11:45:29 +00:00
Dominik Schilling
e5f967ca99
Resource Hints: Remove schemes from dns-prefetch
resource hint outputs.
...
"wordpress.org", "!http://wordpress.org ", and "!https://wordpress.org " should all have the same DNS lookup.
Also, replace `\r\n` with `\n` and ensure that invalid URLs are skipped.
Props niallkennedy, peterwilsoncc.
Fixes #37240 .
Built from https://develop.svn.wordpress.org/trunk@38036
git-svn-id: http://core.svn.wordpress.org/trunk@37977 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 11:32:28 +00:00
Dominik Schilling
f160f2afd1
Toolbar: Allow 0 as a value for the tabindex
property of a menu item.
...
To enhance accessibility for items without a link you can now define `tabindex="0"`, which makes descendant dropdowns accessible.
Props joedolson, afercia, ocean90.
Fixes #32495 .
Built from https://develop.svn.wordpress.org/trunk@38035
git-svn-id: http://core.svn.wordpress.org/trunk@37976 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 11:18:30 +00:00
Andrew Ozz
70fa27a953
TinyMCE: update to 4.4.0, changelog: https://github.com/tinymce/tinymce/blob/master/changelog.txt . Includes two bugfixes for #36434 .
...
Fixes #37327 .
Built from https://develop.svn.wordpress.org/trunk@38034
git-svn-id: http://core.svn.wordpress.org/trunk@37975 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-12 00:20:29 +00:00
Pascal Birchler
e4eee7ef5c
Plugins: Improve Ajax search of installed plugins.
...
Fixes a few accessibility issues, tweaks the design of the search form to match other Ajax search fields and improves compatibility with older browsers.
See #37230 .
Built from https://develop.svn.wordpress.org/trunk@38033
git-svn-id: http://core.svn.wordpress.org/trunk@37974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-11 21:50:31 +00:00
Dominik Schilling
f8e7680cd6
Multisite: Use hash_equals()
when comparing hashes to mitigate timing attacks.
...
Fixes #37324 .
Built from https://develop.svn.wordpress.org/trunk@38032
git-svn-id: http://core.svn.wordpress.org/trunk@37973 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-10 19:43:28 +00:00
Dominik Schilling
02424959e4
Accessibility: Add aria-button-if-js
class to links in the media list table that behave like buttons when JavaScript is on.
...
Props joedolson, afercia.
See #26504 .
Fixes #36555 .
Built from https://develop.svn.wordpress.org/trunk@38031
git-svn-id: http://core.svn.wordpress.org/trunk@37972 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-10 19:31:31 +00:00
Drew Jaynes
844ae66820
Docs: The $labels
property in WP_Post_Type
is of type object
as returned from get_post_type_labels()
, not an array.
...
Props swissspidy.
See #36217 .
Built from https://develop.svn.wordpress.org/trunk@38030
git-svn-id: http://core.svn.wordpress.org/trunk@37971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-10 17:41:30 +00:00
Drew Jaynes
31f150080a
Docs: Standardize references to "meta box" or "meta boxes" as two distinct words throughout core documentation per the core spelling guide.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@38029
git-svn-id: http://core.svn.wordpress.org/trunk@37970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-10 00:56:28 +00:00
Drew Jaynes
6c7148943b
Docs: Standardize capitalization of Ajax throughout core documentation per the core spelling guide.
...
Ajax, while considered an acronym for Asynchronous JavaScript and XML, is most commonly capitalized only in the first character.
Part props ocean90.
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@38028
git-svn-id: http://core.svn.wordpress.org/trunk@37969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-10 00:51:30 +00:00
Drew Jaynes
4c029e870e
Docs: Link the 4.6 changelog entry in the DocBlock for register_meta()
to its corresponding dev note on make/core.
...
h/t ocean90.
See #35658 . See #37318 .
Built from https://develop.svn.wordpress.org/trunk@38027
git-svn-id: http://core.svn.wordpress.org/trunk@37968 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 16:50:35 +00:00
Tammie Lister
5bcc4e7b35
PHP 7 compatibility issues fixed in Twenty Thirteen and Twenty Fourteen
...
Props xknown
Fixes #37227
--This Line, and those below, will be ignored--
M themes/twentyfourteen/functions.php
M themes/twentythirteen/functions.php
Built from https://develop.svn.wordpress.org/trunk@38026
git-svn-id: http://core.svn.wordpress.org/trunk@37967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 15:11:33 +00:00
Dominik Schilling
559c6637bf
Docs: Fix a typo in the DocBlock for themes_api()
, themes_api
, plugins_api()
, and plugins_api
.
...
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@38025
git-svn-id: http://core.svn.wordpress.org/trunk@37966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 14:39:33 +00:00
Drew Jaynes
7eb6471461
Docs: Fix minor formatting and syntax for wp-admin/* elements introduced in 4.6.
...
See #37318 .
Built from https://develop.svn.wordpress.org/trunk@38024
git-svn-id: http://core.svn.wordpress.org/trunk@37965 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 14:00:31 +00:00
Drew Jaynes
a13164355f
Docs: Cross-reference parent classes in DocBlocks for upgrader classes moved to their own files in 4.6
...
See #36618 . See #37318 .
Built from https://develop.svn.wordpress.org/trunk@38023
git-svn-id: http://core.svn.wordpress.org/trunk@37964 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 13:45:33 +00:00
Drew Jaynes
2ee0027bc1
Docs: Improve usefulness of DocBlocks for ajax-actions.php functions introduced in 4.6.
...
See #37318 .
Built from https://develop.svn.wordpress.org/trunk@38022
git-svn-id: http://core.svn.wordpress.org/trunk@37963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 13:23:30 +00:00
Drew Jaynes
c009abcc98
Docs: Fix a typo in the hook doc description for the enable_loading_advanced_cache_dropin
run-time filter.
...
See #34936 . See #37318 .
Built from https://develop.svn.wordpress.org/trunk@38021
git-svn-id: http://core.svn.wordpress.org/trunk@37962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 13:17:30 +00:00
Dominik Schilling
1036637afc
Taxonomy: Remove an unnecessary double assignment in WP_Term_Query::get_terms()
.
...
Props birgire.
Fixes #37254 .
Built from https://develop.svn.wordpress.org/trunk@38020
git-svn-id: http://core.svn.wordpress.org/trunk@37961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 11:49:29 +00:00
Pascal Birchler
aa4334cc50
Upgrade/Install: Do not remove event handlers when trying to update a theme.
...
Previously, when clicking "Update now" the callbacks were erroneously removed. This prevented opening the filesystem credentials modal for a second time.
Fixes #37285 .
Built from https://develop.svn.wordpress.org/trunk@38019
git-svn-id: http://core.svn.wordpress.org/trunk@37960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-09 11:43:43 +00:00
Drew Jaynes
dac2988528
Docs: Fix a typo in an inline hook reference in the DocBlock for comment_form()
.
...
Props ocean90.
See #32246 .
Built from https://develop.svn.wordpress.org/trunk@38018
git-svn-id: http://core.svn.wordpress.org/trunk@37959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 23:56:32 +00:00
Dominik Schilling
9b2f385b07
Bootstrap: Make wp_is_ini_value_changeable()
compatible with PHP 5.2.6 - 5.2.17.
...
There is a bug in PHP 5.2.6 - 5.2.17 (https://bugs.php.net/bug.php?id=44936 , https://3v4l.org/IL0A2 ) which changes the access level of a setting to 63 after `ini_set()` was called.
To continue comparing the access value against `INI_ALL` and `INI_USER` use the bit operator `& 7`:
* `1 & 7 === 1` (INI_USER)
* `2 & 7 === 2` (INI_PERDIR)
* `4 & 7 === 4` (INI_SYSTEM)
* `7 & 7 === 7` (INI_ALL)
* `63 & 7 === 7` (INI_ALL)
See [38015].
See #32075 .
Built from https://develop.svn.wordpress.org/trunk@38017
git-svn-id: http://core.svn.wordpress.org/trunk@37958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 18:36:30 +00:00
Dominik Schilling
31d3147f4e
Unit tests: Don't change the memory_limit
setting during tests.
...
40M isn't enough and can lead to an "out of memory" error. Change `test_wp_raise_memory_limit()` to test that `wp_raise_memory_limit()` doesn't *lower* the memory limit.
See [38015].
See #32075 .
Built from https://develop.svn.wordpress.org/trunk@38016
git-svn-id: http://core.svn.wordpress.org/trunk@37957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 18:17:41 +00:00
Dominik Schilling
aa561e67a1
Bootstrap: Enhance core's memory limit handling.
...
* Don't lower memory limit if the current limit is greater than `WP_MAX_MEMORY_LIMIT`.
* Set `WP_MEMORY_LIMIT` and `WP_MAX_MEMORY_LIMIT` to current limit if the `memory_limit` setting can't be changed at runtime.
* Use `wp_convert_hr_to_bytes()` when parsing the value of the `memory_limit` setting because it can be a shorthand or an integer value.
* Introduce `wp_raise_memory_limit( $context )` to raise the PHP memory limit for memory intensive processes. This DRYs up some logic and includes the existing `admin_memory_limit` and `image_memory_limit` filters. The function can also be used for custom contexts, the `{$context}_memory_limit` filter allows to customize the limit.
* Introduce `wp_is_ini_value_changeable( $setting )` to determine whether a PHP ini value is changeable at runtime.
* Remove a `function_exists( 'memory_get_usage' )` check. Since PHP 5.2.1 support for memory limit is always enabled.
Related commits: [38011-38013]
Props jrf, A5hleyRich, swissspidy, ocean90.
Fixes #32075 .
Built from https://develop.svn.wordpress.org/trunk@38015
git-svn-id: http://core.svn.wordpress.org/trunk@37956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 14:37:30 +00:00
Sergey Biryukov
d1cd600733
Docs: Fix typo in a comment in Core_Upgrader::upgrade()
.
...
Props Zuige.
Fixes #37314 .
Built from https://develop.svn.wordpress.org/trunk@38014
git-svn-id: http://core.svn.wordpress.org/trunk@37955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 13:19:30 +00:00
Dominik Schilling
682e028a5a
Bootstrap: Clean up wp_convert_hr_to_bytes()
.
...
* Don't return a value higher than `PHP_INT_MAX`.
* Add unit tests.
Props jrf.
See #32075 .
Built from https://develop.svn.wordpress.org/trunk@38013
git-svn-id: http://core.svn.wordpress.org/trunk@37954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 12:54:28 +00:00
Dominik Schilling
5eae48b414
Boostrap: Move wp_convert_hr_to_bytes()
to wp-includes/load.php.
...
`wp_convert_hr_to_bytes()` was previously defined in wp-includes/media.php because it's only used by `wp_max_upload_size()` in the same file.
Moving this function to load.php allows us to improve core's memory limit handling.
See #32075 .
Built from https://develop.svn.wordpress.org/trunk@38012
git-svn-id: http://core.svn.wordpress.org/trunk@37953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 11:27:27 +00:00
Dominik Schilling
561018677f
Constants: Move constants for data sizes before constants for memory limits.
...
This allows us to improve core's memory limit handling.
See #32075 .
Built from https://develop.svn.wordpress.org/trunk@38011
git-svn-id: http://core.svn.wordpress.org/trunk@37952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 11:19:29 +00:00
Peter Wilson
b9b69676d8
Embeds: Include locale stylesheets after default styles.
...
Fire `locale_stylesheet` action after the `wp_print_styles` action in the embeds header to match the order in `wp_head`.
Props swissspidy.
Fixes #36839 .
Built from https://develop.svn.wordpress.org/trunk@38010
git-svn-id: http://core.svn.wordpress.org/trunk@37951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 06:07:33 +00:00
Rachel Baker
c283b3c0c6
Revisions: Allow autosaves to be restored when revisions are disabled.
...
Fixes bug introduced in [23639] where autosaves are not restored if revisions are disabled.
Props adamsilverstein.
Fixes #36262 .
Built from https://develop.svn.wordpress.org/trunk@38009
git-svn-id: http://core.svn.wordpress.org/trunk@37950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-08 01:16:31 +00:00
Jeremy Felt
602f231a26
Docs: Correct the description of the $network_id
in WP_Site_Query
.
...
Passing 0 for `network_id` results in a query across all networks.
See #35791 .
Built from https://develop.svn.wordpress.org/trunk@38008
git-svn-id: http://core.svn.wordpress.org/trunk@37949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 20:36:30 +00:00
Jeremy Felt
771212f20a
Multisite: Correct logic used to display an Edit User link after adding a user.
...
Previously, if a user was added with the checkbox for no confirmation selected and an error was then encountered in `wpmu_activate_signup()`, a fatal error would trigger because `$new_user` was a `WP_Error` object rather than a user.
Fixes #37223 .
Built from https://develop.svn.wordpress.org/trunk@38007
git-svn-id: http://core.svn.wordpress.org/trunk@37948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 17:48:29 +00:00
Jeremy Felt
24804144de
Multisite: Add a nonce to the "Cancel" URL when changing a site's admin email.
...
Props scottbasgaard.
Fixes #36954 .
Built from https://develop.svn.wordpress.org/trunk@38006
git-svn-id: http://core.svn.wordpress.org/trunk@37947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 17:13:27 +00:00
Boone Gorges
397f08e7d3
Tests: Ensure that test for invalid user ID actually uses an invalid user ID.
...
This prevents false positives when the ID column's incrementor has exceeded the
hardcoded invalid ID.
Fixes #37308 .
Built from https://develop.svn.wordpress.org/trunk@38005
git-svn-id: http://core.svn.wordpress.org/trunk@37946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 16:48:28 +00:00
Dominik Schilling
30420b7d19
Screen API: After [37972], ensure that $box['args']
is an array before trying to access __widget_basename
.
...
This prevents a PHP fatal error on the Nav Menus screen where `$args` is an object.
Props elrae.
Fixes #35021 .
Built from https://develop.svn.wordpress.org/trunk@38004
git-svn-id: http://core.svn.wordpress.org/trunk@37945 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 16:39:29 +00:00
Jeremy Felt
7b5cd0c021
Multisite: Don't store max_num_pages
in WP_Network_Query
query cache.
...
This value can be easily calculated with available data.
Props spacedmonkey.
Fixes #32504 .
Built from https://develop.svn.wordpress.org/trunk@38003
git-svn-id: http://core.svn.wordpress.org/trunk@37944 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 15:52:28 +00:00
Jeremy Felt
d11c9de613
Multisite: Don't store max_num_pages
in WP_Site_Query
query cache.
...
This value can be easily calculated with available data.
Props spacedmonkey.
Fixes #35791 .
Built from https://develop.svn.wordpress.org/trunk@38002
git-svn-id: http://core.svn.wordpress.org/trunk@37943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 15:32:29 +00:00
Boone Gorges
c6d5f78241
Comments: Cache results of SELECT FOUND_ROWS()
query.
...
When comment IDs are fetched from the cache rather than the database,
the subsequent `SELECT FOUND_ROWS()` query will not return the correct value.
To avoid unnecessary queries, we cache the results of the `found_comments`
query alongside the comment IDs.
Props spacedmonkey.
Fixes #37184 .
Built from https://develop.svn.wordpress.org/trunk@38001
git-svn-id: http://core.svn.wordpress.org/trunk@37942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 14:27:38 +00:00
Dominik Schilling
1630c97795
Text Changes: Unify a few more permission error messages which were missed in [37914].
...
Props ramiy.
Fixes #34521 .
Built from https://develop.svn.wordpress.org/trunk@37999
git-svn-id: http://core.svn.wordpress.org/trunk@37940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 11:33:33 +00:00
Dominik Schilling
65eb29ad46
Import: Merge two similar strings.
...
Props ramiy.
See #34521 .
Built from https://develop.svn.wordpress.org/trunk@37998
git-svn-id: http://core.svn.wordpress.org/trunk@37939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 10:53:28 +00:00
Sergey Biryukov
6953feb795
Unit Tests: Add description for data_get_comments_number_text_declension()
.
...
See #13651 .
Built from https://develop.svn.wordpress.org/trunk@37997
git-svn-id: http://core.svn.wordpress.org/trunk@37938 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 10:45:43 +00:00
Jeremy Felt
b69192f9ec
Meta: Don't pass an empty $meta_key
to get_metadata()
.
...
This doesn't break anything, but also isn't necessary.
Props sc0ttkclark.
See #35658 .
Built from https://develop.svn.wordpress.org/trunk@37996
git-svn-id: http://core.svn.wordpress.org/trunk@37937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 00:18:27 +00:00
Jeremy Felt
c243edf41a
Meta: Introduce an initial set of tests for register_meta()
.
...
Props sc0ttkclark, ericlewis.
See #35658 .
Built from https://develop.svn.wordpress.org/trunk@37995
git-svn-id: http://core.svn.wordpress.org/trunk@37936 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-07 00:15:30 +00:00
Gary Pendergast
a37d3051f4
Docs: Fix an incorrect @since
comment.
...
See #36495 .
Built from https://develop.svn.wordpress.org/trunk@37994
git-svn-id: http://core.svn.wordpress.org/trunk@37935 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 23:49:30 +00:00
Dominik Schilling
53bd2cd015
Post WordPress 4.6 Beta 2 version bump.
...
Built from https://develop.svn.wordpress.org/trunk@37993
git-svn-id: http://core.svn.wordpress.org/trunk@37934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 18:39:29 +00:00
Dominik Schilling
3e12e32829
WordPress 4.6 Beta 2.
...
Built from https://develop.svn.wordpress.org/trunk@37992
git-svn-id: http://core.svn.wordpress.org/trunk@37933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 18:25:37 +00:00
Helen Hou-Sandí
5a2ffe61f6
Meta: Make registration error conditions return consistently.
...
In doing this, non-core object types are no longer forcibly blocked and are instead checked against `wp_object_type_exists()` which has a filterable return value. Still, filter that at your own risk.
props Faison for the initial patch.
see 35658.
Built from https://develop.svn.wordpress.org/trunk@37991
git-svn-id: http://core.svn.wordpress.org/trunk@37932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 18:09:32 +00:00
Jeremy Felt
dc57f35048
Meta: Ensure $object_subtype
is available before use in register_meta()
.
...
Props sc0ttkclark.
See #35658 .
Built from https://develop.svn.wordpress.org/trunk@37990
git-svn-id: http://core.svn.wordpress.org/trunk@37931 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 18:01:30 +00:00
Ryan McCue
ff6a4875a8
HTTP API: Switch back to returning an array.
...
The array-compatibility object we started returning in r37428 unfortunately isn't enough like an array. In particular, `is_array()` checks fail, despite the object implementing ArrayAccess. Mea culpa.
This moves the WP_HTTP_Response object to a new http_response key in the array, and changes the value back to an actual array.
Fixes #37097 .
See #33055 .
Built from https://develop.svn.wordpress.org/trunk@37989
git-svn-id: http://core.svn.wordpress.org/trunk@37930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 17:51:30 +00:00
Dominik Schilling
b9d99d3288
Embeds: Don't print the HTML for a featured image if a post has no featured image.
...
See [36693].
Fixes #37288 .
Built from https://develop.svn.wordpress.org/trunk@37988
git-svn-id: http://core.svn.wordpress.org/trunk@37929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 17:08:31 +00:00
Sergey Biryukov
d9b4f1e50b
I18N: Introduce an on/off switch for locales where comment number needs to be declined.
...
When enabled, the switch would override the theme's pseudo-plural `'% Comments'` string with a correct form of `_n( '%s Comment', '%s Comments', $number )`.
Historically, `comments_popup_link()` and `get_comments_number_text()` did not support plural forms and used a pseudo-plural style instead, so some locales were forced to come up with workarounds to display the number of comments in their language correctly.
This change should make those functions more i18n-friendly.
Fixes #13651 .
Built from https://develop.svn.wordpress.org/trunk@37987
git-svn-id: http://core.svn.wordpress.org/trunk@37928 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 14:46:32 +00:00
Joe McGill
7e5885b874
Media: Don't use 'full' as array key in wp_calculate_image_srcset()
.
...
In `wp_calculate_image_srcset()` we get an array of image sizes
associated with an attachment and then add the original image's
information to the array before processing the `srcset`. In doing
so, we set the original data to a `$image_sizes['full']` key, which
could stomp on any custom image sizes using `full` as a size name.
This avoid the issues by adding the original data without a named
key, which is never referenced anyway.
Props jaspermdegroot.
Fixes #36345 .
Built from https://develop.svn.wordpress.org/trunk@37986
git-svn-id: http://core.svn.wordpress.org/trunk@37927 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 14:05:29 +00:00
Sergey Biryukov
139387b7e5
Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong()
, _deprecated_function()
, _deprecated_argument()
, and _deprecated_file()
throughout core.
...
Props metodiew.
Fixes #36495 .
Built from https://develop.svn.wordpress.org/trunk@37985
git-svn-id: http://core.svn.wordpress.org/trunk@37926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 12:40:29 +00:00
Dominik Schilling
3c8c6fee4d
Customize: Fix panel indentation in Firefox.
...
In Firefox on Windows the menus and widgets panel weren't fully visible due to a miscalculation of the width of a panel, caused by a visible scrollbar.
Props wpfo.
Fixes #34622 .
Built from https://develop.svn.wordpress.org/trunk@37984
git-svn-id: http://core.svn.wordpress.org/trunk@37925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 11:32:27 +00:00
Dominik Schilling
dc994f5db5
Plugins: In plugin_basename()
sort plugin paths before resolving symlinks.
...
`arsort()` sorts the paths reverse-alphabetically while preserving the keys. It results in a longer path being listed before a shorter one with the same base directory(ies).
Props jdgrimes, ocean90.
Fixes #28441 .
Built from https://develop.svn.wordpress.org/trunk@37983
git-svn-id: http://core.svn.wordpress.org/trunk@37924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 09:45:27 +00:00
Weston Ruter
f1b7a9c77d
Customize: Ensure that WP_Customize_Setting::value()
can return a previewed value for aggregated multidimensionals.
...
Fixes #37294 .
Built from https://develop.svn.wordpress.org/trunk@37982
git-svn-id: http://core.svn.wordpress.org/trunk@37923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 05:59:28 +00:00
Weston Ruter
64a2d70a90
Customize: Ensure that WP_Customize_Nav_Menu_Section
is able to represent a placeholder nav menu.
...
Placeholder nav menus (ones that have yet to be saved into the DB) have negative integer IDs.
Fixes #37293 .
Props valendesigns, stubgo, westonruter.
Built from https://develop.svn.wordpress.org/trunk@37981
git-svn-id: http://core.svn.wordpress.org/trunk@37922 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-06 05:33:30 +00:00
Dominik Schilling
e88dda587d
XML-RPC: Add unit test to verify IXR changes in [37244].
...
Props aaires.
Fixes #36586 .
Built from https://develop.svn.wordpress.org/trunk@37980
git-svn-id: http://core.svn.wordpress.org/trunk@37921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-05 21:59:27 +00:00
Sergey Biryukov
de1fab0b66
I18N: Adjust the regex in wp_maybe_decline_date()
to avoid \w
and \b
, as they don't work with Unicode characters correctly in PHP 5.3.3 and earlier versions.
...
See [37975] for unit tests.
See #36790 .
Built from https://develop.svn.wordpress.org/trunk@37979
git-svn-id: http://core.svn.wordpress.org/trunk@37920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-05 21:43:30 +00:00
Dominik Schilling
bfe46464c5
Upgrade/Install: Change priority for theme/update update rows.
...
`wp_plugin_update_rows()` and `wp_theme_update_rows()` are using the site transients `update_plugins` and `update_themes` which are set by `wp_update_plugins()` and `wp_update_themes()`. Both functions are hooked into `load-plugins.php` and `load-themes.php`. Therefore the update rows need to be registered after the transients were populated.
See #13071 .
Built from https://develop.svn.wordpress.org/trunk@37978
git-svn-id: http://core.svn.wordpress.org/trunk@37919 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-07-05 16:46:29 +00:00