John Blackbourn
afe406b82e
Docs: Fix some documentation errors in bundled themes.
...
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@48101
git-svn-id: http://core.svn.wordpress.org/trunk@47870 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-20 07:24:06 +00:00
John Blackbourn
1a77bb81d8
Docs: Remove unnecessary variables names from @return
tags.
...
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@48100
git-svn-id: http://core.svn.wordpress.org/trunk@47869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 22:55:12 +00:00
John Blackbourn
37234874a5
Docs: Misc improvements to inline docs.
...
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@48099
git-svn-id: http://core.svn.wordpress.org/trunk@47868 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 22:28:13 +00:00
John Blackbourn
fe823d698f
Docs: Corrections and improvements to inline docs related to XML sitemaps.
...
See #50117 , #49572
Built from https://develop.svn.wordpress.org/trunk@48098
git-svn-id: http://core.svn.wordpress.org/trunk@47867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 22:26:10 +00:00
John Blackbourn
acb8983ac1
Docs: Corrections and improvements to inline docs related to plugin and theme auto-updates.
...
See #50052 , #49572
Built from https://develop.svn.wordpress.org/trunk@48097
git-svn-id: http://core.svn.wordpress.org/trunk@47866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 22:17:07 +00:00
Sergey Biryukov
99d49a0cc3
Build/Test Tools: Replace the banner text from wp-emoji-loader.min.js
in formatting.php
during build process.
...
This ensures that `/*! This file is auto-generated */` comment is not included on front end as part of the inline Emoji detection script.
Follow-up to [41271], [46589].
Props superpoincare, SergeyBiryukov.
Fixes #49861 .
Built from https://develop.svn.wordpress.org/trunk@48096
git-svn-id: http://core.svn.wordpress.org/trunk@47865 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 22:08:08 +00:00
Sergey Biryukov
82a5d41d9b
Help/About: Move "Learn more: Auto-updates documentation" link about "Support", for consistency with other screens.
...
Follow-up to [48062].
See #50215 .
Built from https://develop.svn.wordpress.org/trunk@48095
git-svn-id: http://core.svn.wordpress.org/trunk@47864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 21:14:08 +00:00
Sergey Biryukov
896436f1b9
Sitemaps: Rename the wp_sitemaps_is_enabled
filter to wp_sitemaps_enabled
.
...
This makes it more consistent with the other filters of the similar purpose.
Props arpitgshah.
Fixes #50428 . See #50117 .
Built from https://develop.svn.wordpress.org/trunk@48094
git-svn-id: http://core.svn.wordpress.org/trunk@47861 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 18:00:07 +00:00
Sergey Biryukov
a15912561e
Docs: Document globals in WP_Sitemaps_*
classes the same way they are documented in the rest of core.
...
See #49572 , #50117 .
Built from https://develop.svn.wordpress.org/trunk@48093
git-svn-id: http://core.svn.wordpress.org/trunk@47860 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 17:56:09 +00:00
Andrew Ozz
aca919f007
Plugins and Themes Auto-Updates:
...
- Fix displaying of errors on the Themes screen.
- Correct the classes used for the error messages, and use `notice-alt` as notices are mostly shown on a white background.
Props afercia, azaozz.
Fixes #50405 .
Built from https://develop.svn.wordpress.org/trunk@48092
git-svn-id: http://core.svn.wordpress.org/trunk@47859 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 16:51:14 +00:00
desrosj
019bc2d244
Docs: Add missing return type for _remove_theme_support()
.
...
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@48091
git-svn-id: http://core.svn.wordpress.org/trunk@47858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 14:46:10 +00:00
Sergey Biryukov
0050998801
Filesystem API: Expicitly set directory permissions in WP_Filesystem_SSH2::mkdir()
.
...
This ensures the permissions are correct after a directory is created with `ssh2_sftp_mkdir()`, which appears to be affected by system `umask` settings.
Props bbrdaric.
Fixes #49218 .
Built from https://develop.svn.wordpress.org/trunk@48090
git-svn-id: http://core.svn.wordpress.org/trunk@47857 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 10:38:08 +00:00
Sergey Biryukov
527696af3b
Coding Standards: Add some space around control structures in WP_Filesystem_*
classes for consistency and better readability.
...
Additionally, synchronize `$tempfile` and `$temphandle` variable names in `WP_Filesystem_FTPext` and `WP_Filesystem_ftpsockets`.
See #49542 .
Built from https://develop.svn.wordpress.org/trunk@48089
git-svn-id: http://core.svn.wordpress.org/trunk@47856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-19 10:36:12 +00:00
whyisjake
1e3d4921fb
Privacy: Revert use relative paths for exported personal data.
...
Tests need to be updated to pass.
See: #44038 .
Unprops: whyisjake.
Built from https://develop.svn.wordpress.org/trunk@48088
git-svn-id: http://core.svn.wordpress.org/trunk@47855 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 23:02:10 +00:00
whyisjake
2d514c83d5
Privacy: Use relative paths for exported personal data.
...
Ensures back-compat while moving to paths off of the `/exports` directory.
Fixes : #44038 .
Props: allendav, mrTall, desrosj, garrett-eclipse, cameronamcintyre, nmenescardi, xkon, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@48087
git-svn-id: http://core.svn.wordpress.org/trunk@47854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 21:40:14 +00:00
Adam Silverstein
810e9c3c2b
Formatting: new filter safecss_filter_attr_allow_css
on css parts.
...
Enables developers to determine whether a section of CSS should be allowed or discarded. By default, the value will be false if the part contains \ ( & } = or comments. Returning true allows the CSS part to be included in the output.
Replaces the `safe_style_disallowed_chars` filter introduced in r47891.
Props azaozz.
Fixes #37134 .
Built from https://develop.svn.wordpress.org/trunk@48086
git-svn-id: http://core.svn.wordpress.org/trunk@47853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 21:01:11 +00:00
Sergey Biryukov
50ffc3843b
Docs: Add missing $user_data
parameter name to lostpassword_post
and lostpassword_errors
filter DocBlocks.
...
Follow-up to [48084].
See #49521 , #49572 .
Built from https://develop.svn.wordpress.org/trunk@48085
git-svn-id: http://core.svn.wordpress.org/trunk@47852 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 20:29:15 +00:00
Sergey Biryukov
2c19aee6d5
Login and Registration: Introduce lostpassword_errors
filter in retrieve_password()
for errors encountered on a password reset request.
...
This complements the `registration_errors` filter in `register_new_user()`.
Props wpdo5ea, dilipbheda.
Fixes #49521 .
Built from https://develop.svn.wordpress.org/trunk@48084
git-svn-id: http://core.svn.wordpress.org/trunk@47851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 20:24:09 +00:00
Sergey Biryukov
05e28b4d7c
Coding Standards: Use strict comparison for JS fragment in wp-admin/admin-header.php
.
...
Props subrataemfluence.
Fixes #45810 .
Built from https://develop.svn.wordpress.org/trunk@48083
git-svn-id: http://core.svn.wordpress.org/trunk@47850 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 20:08:09 +00:00
Sergey Biryukov
8d3075952e
Administration: Combine the styles for <p>
and .wp-die-message
, instead of duplicating.
...
This brings some consistency with `_default_wp_die_handler()`, where they are already combined.
Follow-up to [45909].
See #47580 .
Built from https://develop.svn.wordpress.org/trunk@48082
git-svn-id: http://core.svn.wordpress.org/trunk@47849 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 15:07:11 +00:00
Sergey Biryukov
168a9df672
Coding Standards: Fix WPCS issues in wp-includes/sitemaps/
.
...
Some of these were not caught when running `composer lint:errors`, but are fixed when running `phpcbf` directly.
Follow-up to [48072], [48080].
See #49542 , #50117 .
Built from https://develop.svn.wordpress.org/trunk@48081
git-svn-id: http://core.svn.wordpress.org/trunk@47848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 14:46:09 +00:00
Sergey Biryukov
e1bd050cb9
Coding Standards: Remove unused variable in WP_Sitemaps_Provider::get_sitemap_entries()
.
...
Follow-up to [48072].
See #49542 , #50117 .
Built from https://develop.svn.wordpress.org/trunk@48080
git-svn-id: http://core.svn.wordpress.org/trunk@47847 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 14:44:07 +00:00
Pascal Birchler
fcd890e546
Sitemaps: Bump $wp_db_version
to flush rewrite rules after [48072].
...
Props ocean90.
See #50117 .
Built from https://develop.svn.wordpress.org/trunk@48079
git-svn-id: http://core.svn.wordpress.org/trunk@47846 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 11:26:17 +00:00
Andrew Ozz
d61790f9dc
Fix empty line phpcs error.
...
See #50280 .
Built from https://develop.svn.wordpress.org/trunk@48078
git-svn-id: http://core.svn.wordpress.org/trunk@47845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 00:46:09 +00:00
Andrew Ozz
7757ad5e94
Plugins and Themes Auto-Updates: allow overriding of the HTML for the auto-update setting link. This will let plugins show better/specific information when they are overriding the auto-update settings, for example "Updates are managed by ... plugin".
...
Introduces: `theme_auto_update_setting_html`, `plugin_auto_update_setting_html`, and `theme_auto_update_setting_template` filters.
Props audrasjb, pbiron, azaozz.
Fixes #50280 .
Built from https://develop.svn.wordpress.org/trunk@48077
git-svn-id: http://core.svn.wordpress.org/trunk@47844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-18 00:00:13 +00:00
Sergey Biryukov
cb72d22d67
Menus: Check the correct variable in Walker_Nav_Menu_Edit::start_el()
when menu item is a taxonomy term.
...
Follow-up to [45891].
Props ashour.
Fixes #50415 .
Built from https://develop.svn.wordpress.org/trunk@48076
git-svn-id: http://core.svn.wordpress.org/trunk@47843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 19:47:14 +00:00
Sergey Biryukov
d81302511d
External Libraries: Update Moment.js to 2.26.0.
...
Changelog: https://github.com/moment/moment/compare/2.22.2...2.26.0
This commit also fixes a deprecation warning regarding the usage of `moment.locale()` to set locale properties.
As of Moment.js 2.12.0, `moment.locale()` is deprecated and `moment.updateLocale()` should be used instead.
Additionally, minimize `moment.js` as part of build process to remove the source map reference.
This avoids a `sourceMappingURL` being in the minified file, as we don't ship source maps.
Props yoancutillas, SergeyBiryukov.
Fixes #50408 .
Built from https://develop.svn.wordpress.org/trunk@48075
git-svn-id: http://core.svn.wordpress.org/trunk@47842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 17:40:27 +00:00
ianbelanger
1a767ac06f
Bundled Themes: Twenty Sixteen table border extends beyond table.
...
Fixes issues where tables created by the table block have an extra border on the left side which extends below the table.
Props gsmumbo, mukesh27, JavierCasares.
Fixes #50180 .
Built from https://develop.svn.wordpress.org/trunk@48074
git-svn-id: http://core.svn.wordpress.org/trunk@47841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 17:27:09 +00:00
ianbelanger
48eea2481c
Bundled Themes: Twenty Nineteen horizontal rule is very narrow.
...
Fixes the issue by adding specific styles for the `<hr>` tag.
Props laurelfulford, nielslange, kjellr, samful, leprincenoir.
Fixes #45912 .
Built from https://develop.svn.wordpress.org/trunk@48073
git-svn-id: http://core.svn.wordpress.org/trunk@47840 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 15:48:09 +00:00
Pascal Birchler
609dd1d14f
Sitemaps: Add XML sitemaps functionality to WordPress.
...
While web crawlers are able to discover pages from links within the site and from other sites, XML sitemaps supplement this approach by allowing crawlers to quickly and comprehensively identify all URLs included in the sitemap and learn other signals about those URLs using the associated metadata.
See https://make.wordpress.org/core/2020/06/10/merge-announcement-extensible-core-sitemaps/ for more details.
This feature exposes the sitemap index via `/wp-sitemap.xml` and exposes a variety of new filters and hooks for developers to modify the behavior. Users can disable sitemaps completely by turning off search engine visibility in WordPress admin.
This change also introduces a new `esc_xml()` function to escape strings for output in XML, as well as XML support to `wp_kses_normalize_entities()`.
Props Adrian McShane, afragen, adamsilverstein, casiepa, flixos90, garrett-eclipse, joemcgill, kburgoine, kraftbj, milana_cap, pacifika, pbiron, pfefferle, Ruxandra Gradina, swissspidy, szepeviktor, tangrufus, tweetythierry.
Fixes #50117 .
See #3670 . See #19998 .
Built from https://develop.svn.wordpress.org/trunk@48072
git-svn-id: http://core.svn.wordpress.org/trunk@47839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 15:24:07 +00:00
desrosj
689fdc6319
Site Health: Verify PHP version requirements when auto-updating themes.
...
Follow up of [47819].
See #49653 .
Fixes #50411 .
Built from https://develop.svn.wordpress.org/trunk@48071
git-svn-id: http://core.svn.wordpress.org/trunk@47838 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 14:48:07 +00:00
Sergey Biryukov
a9a6b25cae
Script Loader: Include the script or style handle in _wp_scripts_maybe_doing_it_wrong()
message.
...
This makes the message more helpful and allows for easier debugging.
Props janthiel.
Fixes #50406 .
Built from https://develop.svn.wordpress.org/trunk@48070
git-svn-id: http://core.svn.wordpress.org/trunk@47837 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 10:16:08 +00:00
TimothyBlynJacobs
41f70ae5f8
REST API: Only register one block renderer route.
...
Every block has a different set of attributes. These attributes are specified as a JSON Schema object. Previously, every block registered its own block renderer route using its attributes for the schema. This allowed for the attributes to be validated using the built in endpoint validation rules. It had the unfortunate side effect, however, of creating a large number of nearly identical REST API routes, one for each dynamic block. Each registered route has a performance impact. As the number of server side blocks goes up, this becomes more and more of an issue.
Now, we register a single block renderer route and dynamically validate the attributes based on the selected block.
Fixes #48079 .
Props gziolo, TimothyBlynJacobs.
Built from https://develop.svn.wordpress.org/trunk@48069
git-svn-id: http://core.svn.wordpress.org/trunk@47836 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-17 03:22:12 +00:00
Sergey Biryukov
353c9bfc58
Docs: List the expected return type first for size_format()
and wp_get_original_referer()
.
...
Follow-up to [46696], [47060].
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@48068
git-svn-id: http://core.svn.wordpress.org/trunk@47835 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 21:24:07 +00:00
Sergey Biryukov
de59ad23a4
Docs: Consistently include an empty line between @since
tag and @see
, @link
, or @global
, per the documentation standards.
...
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@48067
git-svn-id: http://core.svn.wordpress.org/trunk@47834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 21:07:14 +00:00
Sergey Biryukov
8fdb0728be
Text Changes: Replace "webmaster" with "site admin" in register_new_user()
.
...
Follow-up to [48049], accidentally reverted in [48059].
Props kebbet.
See #50394 .
Built from https://develop.svn.wordpress.org/trunk@48066
git-svn-id: http://core.svn.wordpress.org/trunk@47833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 20:05:10 +00:00
Sergey Biryukov
a8cd3a3e2c
Coding Standards: Rename the $clean
or $ids
variable in several functions to $non_cached_ids
for clarity.
...
* `_get_non_cached_ids()`
* `update_meta_cache()`
* `update_object_term_cache()`
See #49542 .
Built from https://develop.svn.wordpress.org/trunk@48065
git-svn-id: http://core.svn.wordpress.org/trunk@47832 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 19:09:08 +00:00
ianbelanger
c5ee065c3a
Bundled Themes: Twenty Seventeen pagination links don't appear for home pages.
...
Fixes issues where pagination does not work on the page that is set to the home page.
Props dimitris.m, laurelfulford, poena, ianbelanger, samful.
Fixes #39685 .
Built from https://develop.svn.wordpress.org/trunk@48064
git-svn-id: http://core.svn.wordpress.org/trunk@47831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 18:40:07 +00:00
Sergey Biryukov
49edaea6f1
Coding Standards: Fix WPCS issues in wp-admin/nav-menus.php
.
...
Includes minor code layout fixes for better readability.
See #49542 .
Built from https://develop.svn.wordpress.org/trunk@48063
git-svn-id: http://core.svn.wordpress.org/trunk@47830 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 18:38:08 +00:00
whyisjake
97e2b94f84
Help/About: Add help tabs to provide informations about plugin & themes auto-updates.
...
Adds language around how the feature works and includes links to the WordPress HelpHub pages.
Fixes : #50215 .
Props: audrasjb, garrett-eclipse, paaljoachim, marybaum, pbiron, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@48062
git-svn-id: http://core.svn.wordpress.org/trunk@47829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 17:29:07 +00:00
ianbelanger
5e0879db84
Bundled Themes: Twenty Seventeen Navbar z-index issue.
...
Fixes navbar z-index issue by upping the z-index value to 1000 from 7.
Props halgatewood, justnorris, poena, sinatrateam.
Fixes #39384 .
Built from https://develop.svn.wordpress.org/trunk@48061
git-svn-id: http://core.svn.wordpress.org/trunk@47828 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 17:16:10 +00:00
whyisjake
ed1e6c3d87
Themes: Add additional later escaping to post_class()
and body_class()
functions.
...
Additionally, this adds a few tests to test output.
Fixes #20009 .
Props mfields, scribu, azaozz, obenland, dd32, nacin, jrf, jdgrimes, garyj, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@48060
git-svn-id: http://core.svn.wordpress.org/trunk@47827 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 16:57:15 +00:00
Andrea Fercia
f83c504b88
I18N: Remove the "Error:" prefix from error messages.
...
For a number of years, most of the WordPress error messages have been prefixed with "Error:". However, these messages appear in a context where it's already clear an error occurred. Whether it's an error, a warning, or any other classification, that's not so relevant for users. The content of the message is the relevant part. The "Error:" prefix doesn't add great value while it does add unnecessary complexity for the message readability.
Also, revises some of these messages to improve clarity and removes HTML from translatable strings.
Props garrett-eclipse, ramiy, SergeyBiryukov, afercia, sabernhardt, quadthemes, audrasjb.
See #47003 , #43037 , #42945 , #15887 .
Fixes #47656 .
Built from https://develop.svn.wordpress.org/trunk@48059
git-svn-id: http://core.svn.wordpress.org/trunk@47826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 15:35:13 +00:00
desrosj
8f065b688d
Build/Test Tools: Prevent double /
s when including PHPMailer files.
...
`ABSPATH` includes a trailing slash already.
Follow up of [48033].
Props desrosj.
See #50377 , #41750 .
Built from https://develop.svn.wordpress.org/trunk@48058
git-svn-id: http://core.svn.wordpress.org/trunk@47825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 13:59:12 +00:00
Sergey Biryukov
1f06606aa7
Customize: Introduce get_custom_logo_image_attributes
filter for the list of custom logo image attributes.
...
Props achbed, dlh, westonruter.
Fixes #36640 .
Built from https://develop.svn.wordpress.org/trunk@48057
git-svn-id: http://core.svn.wordpress.org/trunk@47824 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 11:49:08 +00:00
whyisjake
bdb1fe0d7e
Administration: Remove wp-auth-check
from the Heartbeat API.
...
As of [27153], wp-auth-check is returned on all heartbeats without the need for data from client-side. This also means that the timing and scheduling of this request data is ineffectual.
Fixes #50305 .
Props dsixinetu, azaozz, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@48056
git-svn-id: http://core.svn.wordpress.org/trunk@47823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 07:09:09 +00:00
whyisjake
8a6cc1a810
Cache API: Add wp_cache_get_multiple()
to core functions.
...
* `update_object_term_cache`
* `update_meta_cache`
* `_get_non_cached_ids`
See [47938].
Fixes #50352 .
Props spacedmonkey, tillkruss, lukecavanagh.
Built from https://develop.svn.wordpress.org/trunk@48055
git-svn-id: http://core.svn.wordpress.org/trunk@47822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 06:30:09 +00:00
whyisjake
28c6339400
I18N: Add i18n to size_format()
.
...
Add translatable strings to the units of the `size_format()` function.
Props Rahe, audrasjb, ocean90.
Fixes #50194 .
Built from https://develop.svn.wordpress.org/trunk@48054
git-svn-id: http://core.svn.wordpress.org/trunk@47821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 06:10:08 +00:00
whyisjake
ea8331f00d
REST API: Allow queries other than the main query to be is_home
.
...
Ensure that REST API calls can match the main query of the page.
See #34373 .
Fixes #50213 .
Props: dlh, TimothyBlynJacobs, boonebgorges, joemcgill, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@48053
git-svn-id: http://core.svn.wordpress.org/trunk@47820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 06:04:12 +00:00
whyisjake
ccf534dc48
Code Standards: Cleanup some code spacing.
...
See: #37826 and #44286 .
Built from https://develop.svn.wordpress.org/trunk@48052
git-svn-id: http://core.svn.wordpress.org/trunk@47819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-16 00:56:08 +00:00
whyisjake
d3c44a690d
Menus: Provide menu settings when creating a new menu.
...
This simplifies the steps in the process of adding new menus.
Props: garrett-eclipse, audrasjb, ianjvr.
Built from https://develop.svn.wordpress.org/trunk@48051
git-svn-id: http://core.svn.wordpress.org/trunk@47818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 23:22:06 +00:00
whyisjake
28d29b35f7
Comments: Don't display edit links to trashed post comments.
...
If a post is in the trash, the comments bubble won't link to the comments list.
Fixes : #37826 .
Props: swissspidy, helen, FolioVision, DrewAPicture, stevenlinx, donmhico, birgire, garrett-eclipse, andraganescu, johnbillion.
Built from https://develop.svn.wordpress.org/trunk@48050
git-svn-id: http://core.svn.wordpress.org/trunk@47817 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 23:06:08 +00:00
Sergey Biryukov
6aa5788189
Text Changes: Replace "Webmaster" in output messages with more appropriate terms:
...
* "All at `###SITENAME###`" in `wp-admin/ms-delete-site.php`, for consistency with other Multisite emails.
* "Site admin" in `register_new_user()`, for clarity.
Props Presskopp, marybaum.
Fixes #50394 .
Built from https://develop.svn.wordpress.org/trunk@48049
git-svn-id: http://core.svn.wordpress.org/trunk@47816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 19:41:11 +00:00
desrosj
4cdd79af25
Emoji: Upgrade Twemoji to version 13.0.0.
...
🥸
Props kraftbj, desrosj, otto42.
Fixes #50148 .
Built from https://develop.svn.wordpress.org/trunk@48048
git-svn-id: http://core.svn.wordpress.org/trunk@47815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 18:04:26 +00:00
ianbelanger
6d914acd6c
Bundled Themes: Twenty Nineteen dropcap appears higher than expected in Firefox.
...
Fixes the issue by adding moz specific top margin for the dropcap.
Props kjellr, joseph.dickson, maxpertici, samful.
Fixes #45876 .
Built from https://develop.svn.wordpress.org/trunk@48047
git-svn-id: http://core.svn.wordpress.org/trunk@47814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 15:13:09 +00:00
desrosj
b8de1549ff
Coding Standards: Remove the PHP Compatibility scanning job from the allowed_failures
list.
...
All pre-existing compatibility warnings and errors as flagged by the PHPCompatibilityWP ruleset have been addressed.
Fixes #49922 .
Built from https://develop.svn.wordpress.org/trunk@48046
git-svn-id: http://core.svn.wordpress.org/trunk@47813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 15:04:10 +00:00
desrosj
c4a89f1635
General: Continuing to work towards a passing PHP Compatibility scan.
...
- Add `phpcs:ignore` statements to compatibility checks in PHPMailer.
- Remove quotes around the assertion in an `assert()` call. This will trigger a deprecated notice under certain conditions on PHP 7.2.
Props jrf, desrosj.
See #49922 , #48033 .
Built from https://develop.svn.wordpress.org/trunk@48045
git-svn-id: http://core.svn.wordpress.org/trunk@47812 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 14:56:07 +00:00
Sergey Biryukov
942fc4e0fc
Networks and Sites: Don't unnecessarily switch to the current blog in get_blog_details()
.
...
Props arpitgshah, djennez, acsnaterse, joostdevalk, SergeyBiryukov.
Fixes #50391 .
Built from https://develop.svn.wordpress.org/trunk@48044
git-svn-id: http://core.svn.wordpress.org/trunk@47811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-15 12:31:11 +00:00
Sergey Biryukov
a1f8dd4972
Posts, Post Types: Introduce default_category_post_types
filter.
...
The filter allows custom post types associated with the `category` taxonomy to opt in to requiring a default category, same as regular posts.
Props enrico.sorcinelli.
Fixes #43516 .
Built from https://develop.svn.wordpress.org/trunk@48043
git-svn-id: http://core.svn.wordpress.org/trunk@47810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-14 21:42:17 +00:00
Dominik Schilling
893c580831
Users: On the 'Add New User' screen, don't show the roles dropdown if the current user can't promote other users.
...
Fixes #50345 .
Built from https://develop.svn.wordpress.org/trunk@48042
git-svn-id: http://core.svn.wordpress.org/trunk@47809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-14 17:03:10 +00:00
Dominik Schilling
9f7a7f8d57
Coding Standards: Fix code indentation in post_submit_meta_box()
to improve readability.
...
See #49542 .
Built from https://develop.svn.wordpress.org/trunk@48041
git-svn-id: http://core.svn.wordpress.org/trunk@47808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-14 16:31:08 +00:00
Sergey Biryukov
d776a4d15e
Coding Standards: Use strict comparison in js/_enqueues/lib/ajax-response.js
.
...
Props ankitmaru.
Fixes #50320 .
Built from https://develop.svn.wordpress.org/trunk@48040
git-svn-id: http://core.svn.wordpress.org/trunk@47807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-14 11:28:07 +00:00
Sergey Biryukov
01eb2907a7
Accessibility: Themes: Don't link to the home page in get_custom_logo()
when it's displayed on the home page.
...
Props Soean, audrasjb, sabernhardt, FlorianBrinkmann, rianrietveld, afercia, joedolson, samful, knutsp, SergeyBiryukov.
See #37011 .
Built from https://develop.svn.wordpress.org/trunk@48039
git-svn-id: http://core.svn.wordpress.org/trunk@47806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-14 10:02:11 +00:00
Sergey Biryukov
e6ee3f742e
External Libraries: Update Masonry to 4.2.2 and imagesLoaded to 4.1.4.
...
Notable changes include dropping support for IE 8 & 9, which are no longer supported by WordPress core either.
Release notes:
https://github.com/desandro/masonry/releases
https://github.com/desandro/imagesloaded/releases
Changelogs:
https://github.com/desandro/masonry/compare/v3.3.2...v4.2.2
https://github.com/desandro/imagesloaded/compare/v3.2.0...v4.1.4
Props pierlo, hareesh-pillai, grapplerulrich, pderksen, desrosj, garrett-eclipse, SergeyBiryukov.
Fixes #37675 , #48031 .
Built from https://develop.svn.wordpress.org/trunk@48038
git-svn-id: http://core.svn.wordpress.org/trunk@47805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-13 18:53:27 +00:00
Sergey Biryukov
04200b39ce
Themes: Ensure the theme slug is set before checking if the theme is installed or active.
...
This fixes an issue with every installed theme being marked as active on Themes screen.
The slug is set on Add Themes screen, but not on Themes.
Follow-up to [47924].
Props BackuPs, mukesh27, SergeyBiryukov.
Fixes #50381 . See #50334 .
Built from https://develop.svn.wordpress.org/trunk@48037
git-svn-id: http://core.svn.wordpress.org/trunk@47804 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-13 14:26:07 +00:00
Sergey Biryukov
c7b843302f
Coding Standards: Exclude the whole PHPMailer directory from WPCS checks, for consistency with other external libraries in their own directory.
...
Follow-up to [48033].
See #41750 .
Built from https://develop.svn.wordpress.org/trunk@48036
git-svn-id: http://core.svn.wordpress.org/trunk@47803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-13 12:36:10 +00:00
Sergey Biryukov
aa5017ebb9
External Libraries: Add class aliases for phpmailerException
and SMTP
to deprecated files to account for the new namespace.
...
This ensures backward compatibility with plugins using the old `class-phpmailer.php` or `class-smtp.php` files.
Follow-up to [48033].
Props Otto42.
Fixes #50379 . See #41750 .
Built from https://develop.svn.wordpress.org/trunk@48035
git-svn-id: http://core.svn.wordpress.org/trunk@47802 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-12 21:42:09 +00:00
TimothyBlynJacobs
afaeaf1529
External Libraries: Skip deprecated file warning for PHPMailer if the API is not loaded.
...
In [48033] the "class-phpmailer.php" file was deprecated. In test suites, this file is loaded before WordPress in order to setup a mock PHPMailer instance. This means that for test suites that are still loading that file, they'll experience fatal errors due to the undefined "_deprecated_file" function.
This commit skips issuing the deprecated file warning if the "_deprecated_file" function is not available.
Fixes #50380 .
Built from https://develop.svn.wordpress.org/trunk@48034
git-svn-id: http://core.svn.wordpress.org/trunk@47801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-12 21:10:08 +00:00
desrosj
e4379c5ba8
External Libraries: Upgrade PHPMailer to version 6.1.6.
...
Now that WordPress Core supports PHP >= 5.6, the PHPMailer library can be updated to the latest version.
The PHPMailer files now reside in a new directory, `wp-includes/PHPMailer`. These files are copied verbatim from the library upstream and will make updating in the future easier. For backwards compatibility, the old files will remain and trigger deprecated file warnings.
The PHPMailer class is also now under the `PHPMailer\PHPMailer\PHPMailer` namespace. The `PHPMailer` class in the global namespace has been aliased for a seamless transition.
This upgrade also clears up a handful of PHP compatibility issues detailed in #49922 .
For a full list of changes, see the PHPMailer GitHub: https://github.com/PHPMailer/PHPMailer/compare/v5.2.27...v6.1.6 .
Props Synchro, SergeyBiryukov, desrosj, donmhico, ayeshrajans.
Fixes #41750 .
Built from https://develop.svn.wordpress.org/trunk@48033
git-svn-id: http://core.svn.wordpress.org/trunk@47800 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-12 15:47:07 +00:00
ianbelanger
232277586f
Bundled Themes: Twenty Nineteen long submenu item titles do not wrap.
...
Fixes the issue of long submenu item titles that do not wrap by adding a `max-width: 20rem;` and removing `white-space: nowrap;`.
Props kjellr, mukesh27, mohsinrasool, samful.
Fixes #45866 .
Built from https://develop.svn.wordpress.org/trunk@48032
git-svn-id: http://core.svn.wordpress.org/trunk@47799 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-12 15:11:08 +00:00
Sergey Biryukov
4cc11cdbdd
Filesystem API: Avoid a PHP notice in WP_Filesystem_Direct::owner()
and ::group()
methods and their WP_Filesystem_SSH2
counterparts.
...
Although not officially documented in the PHP manual, `posix_getpwuid()` and `posix_getgrgid()` can return `false` in some circumstances.
Props logig.
Fixes #50373 .
Built from https://develop.svn.wordpress.org/trunk@48031
git-svn-id: http://core.svn.wordpress.org/trunk@47798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-12 12:35:09 +00:00
ianbelanger
99c6adfeaa
Bundled Themes: Twenty Seventeen CSS issue when using rowspan in tables.
...
Fixes CSS issue when using rowspan in tables. This issue does not apply to the Table Block, just tables inserted as custom html.
Props aussi, subrataemfluence, jainnidhi.
Fixes #44004 .
Built from https://develop.svn.wordpress.org/trunk@48028
git-svn-id: http://core.svn.wordpress.org/trunk@47796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-11 17:15:08 +00:00
ianbelanger
5bc4b92551
Bundled Themes: Twenty Seventeen add Telegram and Whatsapp support to Social Media Menu.
...
Adds Telegram and Whatsapp support and SVG's to Social Media Menu.
Props cpasqualini, audrasjb, laurelfulford, karmatosed, ibdz.
Fixes #43999 .
Built from https://develop.svn.wordpress.org/trunk@48027
git-svn-id: http://core.svn.wordpress.org/trunk@47795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-11 15:31:09 +00:00
Sergey Biryukov
4de0d47792
Canonical: Revert [47937] pending unit tests and further review.
...
Props needle.
See #12456 .
Built from https://develop.svn.wordpress.org/trunk@48026
git-svn-id: http://core.svn.wordpress.org/trunk@47794 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-11 10:55:11 +00:00
whyisjake
c075eec24f
Editor: Ensure latest comments can only be viewed from public posts.
...
Props: poena, xknown.
Built from https://develop.svn.wordpress.org/trunk@47984
git-svn-id: http://core.svn.wordpress.org/trunk@47752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 19:20:11 +00:00
ianbelanger
9524b335c7
Bundled Themes: Twenty Twenty and Twenty Nineteen version bump.
...
We are releasing new versions of Twenty Twenty & Twenty Nineteen today thus we need to bump the version.
Props ianbelanger.
Fixes #50359 .
Built from https://develop.svn.wordpress.org/trunk@47952
git-svn-id: http://core.svn.wordpress.org/trunk@47724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 17:32:06 +00:00
whyisjake
dda0ccdd18
Administration: Add a new filter to extend set-screen-option
.
...
Props: xknown, SergeyBiryukov.
Built from https://develop.svn.wordpress.org/trunk@47951
git-svn-id: http://core.svn.wordpress.org/trunk@47723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 17:24:51 +00:00
whyisjake
ffc4869c9c
Themes: Ensure a broken theme name is returned properly.
...
Props: sstoqnov.
Built from https://develop.svn.wordpress.org/trunk@47950
git-svn-id: http://core.svn.wordpress.org/trunk@47722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 17:23:36 +00:00
whyisjake
10e2a50c52
Formatting: Ensure that wp_validate_redirect()
sanitizes a wider variety of characters.
...
Props: xknow, vortfu.
Built from https://develop.svn.wordpress.org/trunk@47949
git-svn-id: http://core.svn.wordpress.org/trunk@47721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 17:22:28 +00:00
whyisjake
7e9267567f
Editor: Prevent HTML decoding on by setting the proper editor context.
...
Props: sstoqnov.
Built from https://develop.svn.wordpress.org/trunk@47948
git-svn-id: http://core.svn.wordpress.org/trunk@47720 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 17:21:20 +00:00
whyisjake
2ae3b3b801
Embeds: Ensure that the title attribute is set correctly on embeds.
...
Props xknown.
Built from https://develop.svn.wordpress.org/trunk@47947
git-svn-id: http://core.svn.wordpress.org/trunk@47719 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 17:20:10 +00:00
Sergey Biryukov
1d95eb63a7
Docs: Add missing documentation for the $group
parameter of WP_Object_Cache::get_multiple()
.
...
Synchronize documentation between `wp_cache_get_multiple()`, its compat version, and the class method.
See #20875 .
Built from https://develop.svn.wordpress.org/trunk@47944
git-svn-id: http://core.svn.wordpress.org/trunk@47717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 09:57:09 +00:00
TimothyBlynJacobs
941a31318c
REST API: Fix updating "multiple" meta keys with non-string values.
...
Previously, the REST API would end up deleting each row of metadata and recreating it unnecessarily. This was caused by a type mismatch where the metadata API would always return a string value, and the REST API operated on a typed value.
The REST API now applies the same sanitization and type casting for "multiple" meta keys and "single" meta keys.
Fixes #49339 .
Props renathoc.
Built from https://develop.svn.wordpress.org/trunk@47943
git-svn-id: http://core.svn.wordpress.org/trunk@47716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-10 02:22:13 +00:00
desrosj
38352d2c7a
Coding Standards: Cleans up some PHPCS issues introduced in [47938].
...
See #20875 .
Built from https://develop.svn.wordpress.org/trunk@47942
git-svn-id: http://core.svn.wordpress.org/trunk@47715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 22:42:12 +00:00
ianbelanger
4e61c5fb0f
Bundled Themes: Twenty Twenty number of replies not translatable.
...
Fixes the issue by removing the single quote from around the `1` in the elseif conditional of the comments template.
Props Parvand, SergeyBiryukov, desrosj, juliobox, Mista-Flo, benjamingosset, audrasjb, opurockey.
Fixes #49058 .
Built from https://develop.svn.wordpress.org/trunk@47941
git-svn-id: http://core.svn.wordpress.org/trunk@47714 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 20:02:08 +00:00
ianbelanger
32116649cf
Bundled Themes: Twenty Twenty HTML in featured image caption is being escaped.
...
Fixes the issue by replacing `esc_html` with `wp_kses_post` in the caption in featured images.
Props pierlo, JavierCasares, audrasjb.
Fixes #49833 .
Built from https://develop.svn.wordpress.org/trunk@47940
git-svn-id: http://core.svn.wordpress.org/trunk@47713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 19:52:07 +00:00
whyisjake
ae76b79f85
Cache API: Include the cache-compat
file.
...
This was missed during the prior commit.
See [47938].
Built from https://develop.svn.wordpress.org/trunk@47939
git-svn-id: http://core.svn.wordpress.org/trunk@47712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 19:50:09 +00:00
whyisjake
3e2b649351
Cache API: Introduce wp_cache_get_multi()
.
...
Many caching backend have support for multiple gets in a single request. This brings that support to core, with a compatability fallback that will loop over requests if needed.
Fixes : #20875 .
Props: nacin, tollmanz, wonderboymusic, ryan, jeremyfelt, spacedmonkey, boonebgorges, dd32, rmccue, ocean90, jipmoors, johnjamesjacoby, tillkruess, donmhico, davidbaumwald, SergeyBiryukov, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@47938
git-svn-id: http://core.svn.wordpress.org/trunk@47711 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 19:47:13 +00:00
whyisjake
c65334d820
Canonical: Ensure a redirect for posts missing postname
in a query with an ID.
...
If a site is using `/%post_id%/%postname%/` as permalink structure, and is missing the `postname`, the site won't redirect to the appropriate URL. This change ensure that the redirect happens.
Fixes : #12456 .
Props: Frank.Prendergast, dd32, Otto42, hlanggo, wonderboymusic, atimmer, seth17, calvin_ngan, Niresh12495, anbumz, SergeyBiryukov, donmhico.
Built from https://develop.svn.wordpress.org/trunk@47937
git-svn-id: http://core.svn.wordpress.org/trunk@47710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 19:26:12 +00:00
Sergey Biryukov
f5d5b76f6e
Docs: Fix typo in WP_Widget::__construct()
and ::WP_Widget()
DocBlocks.
...
Props SUM1.
Fixes #50348 .
Built from https://develop.svn.wordpress.org/trunk@47936
git-svn-id: http://core.svn.wordpress.org/trunk@47709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 15:37:10 +00:00
Sergey Biryukov
c227ed2322
Docs: Improve documentation for is_active_sidebar()
.
...
The function determines whether the sidebar contains widgets, not that it is loaded on the page.
Props SUM1.
Fixes #50347 .
Built from https://develop.svn.wordpress.org/trunk@47935
git-svn-id: http://core.svn.wordpress.org/trunk@47708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 15:31:09 +00:00
ianbelanger
c681e37da7
Bundled Themes: Twenty Fifteen bulleted list block appears too far to the left in the editor.
...
Fixes the issue by removing unnecessary margin rules for bulleted lists in the editor.
Props kjellr.
Fixes #50029 .
Built from https://develop.svn.wordpress.org/trunk@47934
git-svn-id: http://core.svn.wordpress.org/trunk@47707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 14:10:09 +00:00
ianbelanger
644fb1b931
Bundled Themes: Twenty Twenty uses overly specific selector for button background.
...
Fixes the issue by removing `:not(.toogle)` from the `button` selector, as it is not needed.
Props flixos90.
Fixes #50271 .
Built from https://develop.svn.wordpress.org/trunk@47933
git-svn-id: http://core.svn.wordpress.org/trunk@47706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 13:52:08 +00:00
Sergey Biryukov
bbdfffdaa1
Networks and Sites: Ensure the site ID in wp_insert_site()
is still correct after calling clean_blog_cache()
.
...
By saving `$wpdb->insert_id` to a variable, we make sure the ID does not change if another database insert is performed on the `clean_site_cache` action.
Props trepmal.
Fixes #50324 .
Built from https://develop.svn.wordpress.org/trunk@47932
git-svn-id: http://core.svn.wordpress.org/trunk@47705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 12:41:09 +00:00
Sergey Biryukov
40584118d9
Docs: Document that get_tags()
returns a WP_Error
object if any of the specified taxonomies do not exist.
...
Props coffee2code.
Fixes #50344 .
Built from https://develop.svn.wordpress.org/trunk@47930
git-svn-id: http://core.svn.wordpress.org/trunk@47703 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-09 11:14:12 +00:00
desrosj
784908ae5f
Coding Standards: PHP short ternary operator syntax is not allowed.
...
WPCS 2.2.0 added a sniff for detecting short ternary operator syntax, which is not allowed per the Core handbook.
Follow up of [47927].
Fixes #50258 .
Built from https://develop.svn.wordpress.org/trunk@47929
git-svn-id: http://core.svn.wordpress.org/trunk@47702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-08 21:27:10 +00:00
desrosj
d1015f46b5
Build/Test Tools: Update the wp-coding-standards/wpcs
package.
...
This updates the version from 2.1.1 to 2.3.0, the latest version at this time.
Fixes #50258 .
Built from https://develop.svn.wordpress.org/trunk@47927
git-svn-id: http://core.svn.wordpress.org/trunk@47701 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-08 20:11:10 +00:00
desrosj
c591d94cc5
General: Remove or add inline comments to $HTTP_RAW_POST_DATA
occurrences.
...
The `$HTTP_RAW_POST_DATA` global was deprecated in PHP 5.6 and removed completely in PHP 7.0. In general, `php://input` should be used instead of `$HTTP_RAW_POST_DATA`.
Because WordPress Core still supports PHP 5.6, some plugins or sites may still rely on this variable being present and populated with the expected data. For that reason, occurrences of the variable will remain with updated inline documentation until support for PHP 5.6 is officially dropped in WordPress.
Props skoskie, jrf, desrosj, TimothyBlynJacobs.
See #49922 .
Fixes #49810 .
Built from https://develop.svn.wordpress.org/trunk@47926
git-svn-id: http://core.svn.wordpress.org/trunk@47700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-08 19:55:10 +00:00
desrosj
9e9be350e2
Bundled Themes: Update several package versions in Twenty Twenty and Twenty Nineteen.
...
The following packages received version bumps:
Twenty Twenty
- `concurrently`
- `postcss-cli`
- `rtlcss`
- `stylelint-a11y`
Twenty Nineteen
- `node-sass`
- `postcss-cli`
- `rtlcss`
See #49768 .
Built from https://develop.svn.wordpress.org/trunk@47925
git-svn-id: http://core.svn.wordpress.org/trunk@47699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-08 18:47:08 +00:00
Sergey Biryukov
4adfd75159
Themes: Show a disabled "Activated" button instead of "Activate" for the active theme on Add Themes screen.
...
Additionally, switch the "Live Preview" label for the active theme to "Customize", for consistency with the Themes screen.
Props afercia, SergeyBiryukov.
Fixes #50334 .
Built from https://develop.svn.wordpress.org/trunk@47924
git-svn-id: http://core.svn.wordpress.org/trunk@47698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-08 18:16:10 +00:00
TimothyBlynJacobs
5efaf888a5
REST API: Support the (min|max)Items JSON Schema keywords.
...
A future commit will add support for the uniqueItems keyword.
Props sorenbronsted.
See #48821 .
Built from https://develop.svn.wordpress.org/trunk@47923
git-svn-id: http://core.svn.wordpress.org/trunk@47697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-07 22:42:13 +00:00
Sergey Biryukov
18a9359c06
Posts, Post Types: Display a more specific error message when an attachment could not be inserted into the database.
...
Props shital-patel, Presskopp, ocean90.
Fixes #50325 .
Built from https://develop.svn.wordpress.org/trunk@47922
git-svn-id: http://core.svn.wordpress.org/trunk@47696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-07 09:24:11 +00:00
TimothyBlynJacobs
171356a890
REST API: Add additional fields to the themes controller.
...
When the themes controller was introduced it only returned a theme's supported features. This adds the majority of a theme's header information to the response.
Props ockham, spacedmonkey.
Fixes #49906 .
Built from https://develop.svn.wordpress.org/trunk@47921
git-svn-id: http://core.svn.wordpress.org/trunk@47695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-07 06:46:10 +00:00
Peter Wilson
6459c0f2ee
Block Editor: Update wp-includes/assets/script-loader-packages.php
.
...
Follow-up to [47765], [47766].
See #50094 .
Built from https://develop.svn.wordpress.org/trunk@47920
git-svn-id: http://core.svn.wordpress.org/trunk@47694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-07 01:29:12 +00:00
Sergey Biryukov
b19c1627e5
Bootstrap/Load: Introduce wp_get_environment_type()
to retrieve the current environment type.
...
The type can be set via the `WP_ENVIRONMENT_TYPE` global system variable, a constant of the same name, or the `wp_get_environment_type` filter.
Possible values include `development`, `stage`, `production'. If not set, the type defaults to `production`.
Props Clorith, krogsgard, joostdevalk, frank-klein, Maelacuna, nathanrice, grierson, jchristopher, davidvee, jackfungi, johnbillion, tabrisrp, knutsp, ev3rywh3re, Rastaban, danielbachhuber, pfefferle, audrasjb, SergeyBiryukov.
Fixes #33161 .
Built from https://develop.svn.wordpress.org/trunk@47919
git-svn-id: http://core.svn.wordpress.org/trunk@47693 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-06 11:07:12 +00:00
Adam Silverstein
0b9a800512
Media: remove any attachment-filter
query param when switching views.
...
Fix an issue where the media attachment filter no longer worked after switching to list view, filtering by a media type then switching back to the grid view.
Props itzmekhokan, netsurfer2705, zodiac1978.
Fixes #43656 .
Built from https://develop.svn.wordpress.org/trunk@47915
git-svn-id: http://core.svn.wordpress.org/trunk@47689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-05 21:13:10 +00:00
Sergey Biryukov
f546fe5aa5
Networks and Sites: Update the link text for "Debugging a WordPress Network" support article in ms_not_installed()
.
...
Props Presskopp.
Fixes #50326 .
Built from https://develop.svn.wordpress.org/trunk@47914
git-svn-id: http://core.svn.wordpress.org/trunk@47688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-05 09:13:08 +00:00
Sergey Biryukov
4bbb7fb852
Docs: Update the DocBlock for the wp_media_attach_action
hook per the documentation standards.
...
Rename the `$att_id` variable to `$attachment_id` for clarity.
Follow-up to [47909].
See #49614 .
Built from https://develop.svn.wordpress.org/trunk@47913
git-svn-id: http://core.svn.wordpress.org/trunk@47687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-05 08:30:10 +00:00
desrosj
07a3972bc3
Docs: Fix a typo in the Docker compose file.
...
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@47912
git-svn-id: http://core.svn.wordpress.org/trunk@47686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-04 16:53:09 +00:00
whyisjake
00df557404
REST API: Ensure that all properties of get_endpoint_args_for_item_schema
are listed.
...
* Add new var $valid_schema_properties to match rest_validate_value_from_schema()
* Unit test to ensure all valid properties exists, and non-valid properties are ignored
Fixes : #50301 .
Props: pentatonicfunk, TimothyBlynJacobs.
Built from https://develop.svn.wordpress.org/trunk@47911
git-svn-id: http://core.svn.wordpress.org/trunk@47685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-04 16:43:08 +00:00
desrosj
b013a15d43
Accessibility: Add the aria-hidden
attribute to the auto-update related icons.
...
`<span>` elements used for displaying icons should use the `aria-hidden` attribute as they are purely decorative.
Props audrasjb, ryokuhi.
Fixes #50293 .
Built from https://develop.svn.wordpress.org/trunk@47910
git-svn-id: http://core.svn.wordpress.org/trunk@47684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-04 15:47:09 +00:00
whyisjake
00d3696923
Media: Add an action for wp_media_attach_action
.
...
This action fires when media is attached/detached from a post.
Fixes : #49614 .
Props: jonoaldersonwp, antpb, rebasaurus, donmhico.
Built from https://develop.svn.wordpress.org/trunk@47909
git-svn-id: http://core.svn.wordpress.org/trunk@47683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-04 15:00:09 +00:00
Sergey Biryukov
0eaae8ebbf
Docs: Update type for WP_Block_Type::$style
property.
...
Follow-up to [47907].
See #48529 .
Built from https://develop.svn.wordpress.org/trunk@47908
git-svn-id: http://core.svn.wordpress.org/trunk@47682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-04 10:44:10 +00:00
gziolo
eec4c743fa
Blocks: Update default value for some fields in WP_Block_Type
...
Related to the issue with default values for the blocks registered on the server. By using null for some fields we can treat them as undefined on the client.
See: WordPress/gutenberg#22849.
Props aduth.
Fixes #48529 .
Built from https://develop.svn.wordpress.org/trunk@47907
git-svn-id: http://core.svn.wordpress.org/trunk@47681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-04 06:07:13 +00:00
Sergey Biryukov
b50e87d52b
Docs: Add missing @global
reference for the $post_id
global in wp_admin_bar_edit_menu()
.
...
Follow-up to [47903].
Props davidbaumwald.
See #50312 .
Built from https://develop.svn.wordpress.org/trunk@47906
git-svn-id: http://core.svn.wordpress.org/trunk@47680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 21:27:09 +00:00
desrosj
2ef561db67
Build/Test Tools: Revert [47901].
...
This is not matching branches as desired.
Unrops desrosj, jorbin, ocean90, TimothyBlynJacobs.
Fixes #50307 .
Built from https://develop.svn.wordpress.org/trunk@47905
git-svn-id: http://core.svn.wordpress.org/trunk@47679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 21:14:09 +00:00
Aaron Jorbin
df343d59f2
Build/Test: Die with an error if populate_network fails
...
If you are missing WP_TESTS_EMAIL, populate_network will fail and it can be hard to debug. As populate_network can return a wp_error object, we can detect that and display the error to a user.
See: https://github.com/WordPress/gutenberg/pull/22613
Fixes : #50251
Props: TimothyBlynJacobs
Built from https://develop.svn.wordpress.org/trunk@47904
git-svn-id: http://core.svn.wordpress.org/trunk@47678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 21:04:10 +00:00
Sergey Biryukov
524f188982
Toolbar: Display a "View Post" link when viewing comments for a single post on Comments screen.
...
Props Otto42, matt, SergeyBiryukov.
Fixes #50312 .
Built from https://develop.svn.wordpress.org/trunk@47903
git-svn-id: http://core.svn.wordpress.org/trunk@47677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 19:57:10 +00:00
desrosj
27485fd7aa
General: Continuing to work towards a passing PHP Compatibility scan.
...
This is a final pass to fix PHP compatibiilty issues in the codebase with code changes or adding `phpcs:ignore` comments.
With this change, all PHP compatibility warnings and errors without specific tickets have been addressed (see #49810 and #41750 ).
Props desrosj, johnbillion, jrf.
See #49922 .
Built from https://develop.svn.wordpress.org/trunk@47902
git-svn-id: http://core.svn.wordpress.org/trunk@47676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 17:40:12 +00:00
desrosj
e2790b4e63
Build/Test Tools: Disable Travis CI build Slack notifications for non-official branches.
...
When branches are unintentionally pushed to the GitHub `wordpress-develop` mirror by committers, a build is triggered in Travis and the result is reported in Slack if the criteria defined is met.
Though this is not the desired workflow (any modifications made to the mirror are erased when the repository is synced from SVN), this can cause a lot of noise if several pushes are made and raise false alarms.
This change limits builds only to the `master` branch, and branches meeting the `X.X` pattern to match each branched version.
Props desrosj, jorbin, ocean90, TimothyBlynJacobs.
Fixes #50307 .
Built from https://develop.svn.wordpress.org/trunk@47901
git-svn-id: http://core.svn.wordpress.org/trunk@47675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 17:03:12 +00:00
Sergey Biryukov
353def14e2
Docs: Document the term_order
value for the orderby
parameter of WP_Term_Query::__construct()
.
...
Props pbiron.
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@47898
git-svn-id: http://core.svn.wordpress.org/trunk@47672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 14:41:06 +00:00
Sergey Biryukov
5636fb886b
Docs: Reformat the orderby
section of WP_Term_Query::__construct()
for better readability.
...
This makes it more consistent with the `fields` section.
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@47897
git-svn-id: http://core.svn.wordpress.org/trunk@47671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 14:37:09 +00:00
Sergey Biryukov
f22e113e95
File Editor: Don't verify SSL certificate when doing loopback requests for checking for fatal errors.
...
Previously, verification was disabled for the loopback request to the admin URL, but not to the home URL.
Follow-up to [46230].
Props munyagu.
Fixes #50309 . See #47957 .
Built from https://develop.svn.wordpress.org/trunk@47896
git-svn-id: http://core.svn.wordpress.org/trunk@47670 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 11:43:15 +00:00
Sergey Biryukov
683507fe14
External Libraries: Update clipboard.js to 2.0.6.
...
This change includes some bug fixes and removal of the PhantomJS dependency.
Changelog: https://github.com/zenorocha/clipboard.js/compare/v2.0.4...v2.0.6
Props hareesh-pillai.
Fixes #50306 .
Built from https://develop.svn.wordpress.org/trunk@47895
git-svn-id: http://core.svn.wordpress.org/trunk@47669 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 11:12:33 +00:00
Sergey Biryukov
cf597dcf7c
Plugins: Make the message displayed when no plugins are installed more concise.
...
Props johnjamesjacoby, Presskopp.
Fixes #42336 .
Built from https://develop.svn.wordpress.org/trunk@47894
git-svn-id: http://core.svn.wordpress.org/trunk@47668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 10:51:13 +00:00
Sergey Biryukov
b247cafd91
Docs: Correct @since
version for available_permalink_structure_tags
filter.
...
Follow-up to [41182].
Props tiagohillebrandt, sabernhardt.
Fixes #42624 .
Built from https://develop.svn.wordpress.org/trunk@47893
git-svn-id: http://core.svn.wordpress.org/trunk@47667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 10:38:09 +00:00
Sergey Biryukov
72b5018aa3
Docs: Miscellaneous DocBlock corrections.
...
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@47892
git-svn-id: http://core.svn.wordpress.org/trunk@47666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-03 10:02:13 +00:00
Adam Silverstein
86b50870ec
Formatting: add a new 'safe_style_disallowed_chars' filter.
...
Enable developers to change the regex used in `safecss_filter_attr` to limit characters in the parsed CSS.
Props paulschreiber, swissspidy, rmccue, bartekcholewa, miinasikk.
Fixes #37134 .
Built from https://develop.svn.wordpress.org/trunk@47891
git-svn-id: http://core.svn.wordpress.org/trunk@47665 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-02 23:46:11 +00:00
Sergey Biryukov
569c006248
Comments: Rename Walker_Comment::comment_text()
to ::filter_comment_text()
for clarity.
...
Ensure the comment object is not null before checking its status.
Follow-up to [47887].
See #49956 .
Built from https://develop.svn.wordpress.org/trunk@47889
git-svn-id: http://core.svn.wordpress.org/trunk@47663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-02 21:45:10 +00:00
whyisjake
9f86174e08
Comments: Ensure that unmoderated comments won't be search indexed.
...
After a comment is submitted, only allow a brief window where the comment is live on the site.
Fixes #49956 .
Props: jonkolbert, ayeshrajans, Asif2BD, peterwilsoncc, imath, audrasjb, jonoaldersonwp, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@47887
git-svn-id: http://core.svn.wordpress.org/trunk@47661 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-02 20:12:07 +00:00
Sergey Biryukov
30b61fc9e8
Bundled Themes: Consistently check for WP_Error
before outputting get_the_tag_list()
.
...
Some themes already had these checks in place as a result of [41756], but not others.
Props sixhours, davidakennedy, SergeyBiryukov.
Fixes #39860 .
Built from https://develop.svn.wordpress.org/trunk@47886
git-svn-id: http://core.svn.wordpress.org/trunk@47660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-02 17:05:13 +00:00
Sergey Biryukov
3fd1fe298a
Docs: Correct @param
type for pre_redirect_guess_404_permalink
filter.
...
Improve filter documentation for consistency with other similar short-circuit filters in core.
Follow-up to [47878].
See #16557 .
Built from https://develop.svn.wordpress.org/trunk@47885
git-svn-id: http://core.svn.wordpress.org/trunk@47659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-02 16:23:11 +00:00
Dominik Schilling
ba92ed7615
I18N: Use wp.i18n
for translatable strings in wp-admin/js/updates.js
.
...
This removes the usage of `wp_localize_script()` for passing translations to the script and instead adds the translatable strings in the script directly through the use of `wp.i18n` and its utilities.
Props swissspidy, ocean90.
See #20491 .
Fixes #50235 .
Built from https://develop.svn.wordpress.org/trunk@47884
git-svn-id: http://core.svn.wordpress.org/trunk@47658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 21:41:09 +00:00
Andrew Ozz
0318a92948
Plugins and Themes Auto-Updates: update the state of the auto-update link on the themes screen after successfully saving the setting.
...
Props desrosj, pbiron, azaozz.
Fixes #50291 .
Built from https://develop.svn.wordpress.org/trunk@47883
git-svn-id: http://core.svn.wordpress.org/trunk@47657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 20:53:15 +00:00
Dominik Schilling
94be20e612
Build/Test Tools: Avoid an empty "title" heading if no title is set in _wp_die_handler_exit()
and _wp_die_handler_txt()
.
...
Fixes #50297 .
Built from https://develop.svn.wordpress.org/trunk@47882
git-svn-id: http://core.svn.wordpress.org/trunk@47656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 20:50:08 +00:00
Dominik Schilling
c5ac08ba45
Build/Test Tools: Add PHPUnit to Composer dev dependencies.
...
This helps setting up the correct version of PHPUnit to run WordPress core tests locally and for using it as source for code autocompletion in tests. Also introduces a new Composer script `test` to run the PHPUnit tests.
Props welcher, ayeshrajans, vinkla, johnbillion, Rarst, netweb, ocean90.
Fixes #46815 .
Built from https://develop.svn.wordpress.org/trunk@47881
git-svn-id: http://core.svn.wordpress.org/trunk@47655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 20:31:07 +00:00
Dominik Schilling
c7aab4121f
Build/Test Tools: Let WP_UnitTestCase_Base
extend the namespaced version of PHPUnit's test case class.
...
With the minimum PHP version requirement set to 5.6 we're now able to use namespaces by default. This replaces `PHPUnit_Framework_TestCase` with `PHPUnit\Framework\TestCase` for `WP_UnitTestCase_Base` to solve autocompletion issues with code editors when using more recent PHPUnit versions. `PHPUnit\Framework\TestCase` is available since PHPUnit 5.4 and now the minimum required PHPUnit version.
Fixes #50236 .
Built from https://develop.svn.wordpress.org/trunk@47880
git-svn-id: http://core.svn.wordpress.org/trunk@47654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 19:43:13 +00:00
whyisjake
69a866a1a9
Administration: Unify the date structure in list view and excerpt view.
...
Both views now show a full date string. Something like `Published 2020/05/27 at 10:25 pm`.
Fixes : #35391 .
Props: afercia, ocean90, TimothyBlynJacobs, audrasjb, SergeyBiryukov, joedolson.
Built from https://develop.svn.wordpress.org/trunk@47879
git-svn-id: http://core.svn.wordpress.org/trunk@47653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 19:15:08 +00:00
whyisjake
f201c1b217
Canonical: Add the ability to disable redirect_guess_404_permalink()
.
...
This also adds a few more filters to make adding redirects easier. Notably:
1. `do_redirect_guess_404_permalink`
2. `pre_redirect_guess_404_permalink`
3. `strict_redirect_guess_404_permalink`
Fixes : #16557 .
Props: msafi, nacin, simonwheatley, westi, mboynes, joostdevalk, Lex_Robinson, MikeSchinkel, haukep, paulschreiber, DrewAPicture, ravenswd, esemlabel, stevegibson12, martychc23, DrLightman, jivanpal, neonkowy, laternastudio, apedog, audrasjb, davidbaumwald, Confridin, donmhico, ryotsun.
Built from https://develop.svn.wordpress.org/trunk@47878
git-svn-id: http://core.svn.wordpress.org/trunk@47652 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 18:49:10 +00:00
Dominik Schilling
b65cf7f992
Build/Test Tools: Improve Travis config to pass config validation.
...
* Add missing `os` and `dist` with the current default values.
* Replace the alias `matrix` with `jobs`.
* Remove unsupported `on_start` for `notifications.slack`.
Fixes #50296 .
Built from https://develop.svn.wordpress.org/trunk@47877
git-svn-id: http://core.svn.wordpress.org/trunk@47651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 16:39:08 +00:00
Dominik Schilling
7152c73f6a
Editor: Fix code style for constructor arguments added in [47875].
...
Also revert unintended changes to `WP_Block_Type::__construct()` DocBlock.
See #48529 .
Built from https://develop.svn.wordpress.org/trunk@47876
git-svn-id: http://core.svn.wordpress.org/trunk@47650 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 16:27:15 +00:00
gziolo
c704057e0d
Add fields to WP_Block_Type
...
As part of #47620 and the RFC for block registeration. Server registered blocks are missing some fields. These changeset includes them.
Props spacedmonkey, aduth.
Fixes #48529 .
Built from https://develop.svn.wordpress.org/trunk@47875
git-svn-id: http://core.svn.wordpress.org/trunk@47649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 12:27:08 +00:00
Sergey Biryukov
1c176ffb1e
Docs: Correct and clarify an inline comment about the upload_url_path
and upload_path
options in wp-admin/options-media.php
.
...
Synchronize it with a similar comment in `wp-admin/options.php`.
See #49572 .
Built from https://develop.svn.wordpress.org/trunk@47874
git-svn-id: http://core.svn.wordpress.org/trunk@47648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-06-01 11:22:13 +00:00
Sergey Biryukov
cda84f2409
Build/Test Tools: Bump node-sass
and webpack-dev-server
versions as a result of npm audit
.
...
Props whyisjake.
See #49768 .
Built from https://develop.svn.wordpress.org/trunk@47873
git-svn-id: http://core.svn.wordpress.org/trunk@47647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-31 20:24:46 +00:00
Sergey Biryukov
f7da44c8d2
Upgrade/Install: Rename wp_in_maintenance_mode()
to wp_is_maintenance_mode()
, for consistency with wp_is_recovery_mode()
.
...
While the former name might be a bit more accurate, the latter matches the existing naming pattern.
Follow-up to [47623].
Fixes #49959 .
Built from https://develop.svn.wordpress.org/trunk@47871
git-svn-id: http://core.svn.wordpress.org/trunk@47646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-31 19:54:24 +00:00
Sergey Biryukov
5f47ca5b8b
Docs: Adjust the documentation for the new ID
alias in get_term_by()
for consistency with get_user_by()
.
...
Follow-up to [47865].
See #45163 .
Built from https://develop.svn.wordpress.org/trunk@47870
git-svn-id: http://core.svn.wordpress.org/trunk@47645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-31 19:53:04 +00:00
whyisjake
9859bf6204
Build/Test Tools: Revert some devDependency changes for 5.5.
...
After bumping some major updates, tests on Travis are failing.
See: https://travis-ci.com/WordPress/wordpress-develop/builds/168839259 ##49768.
Unprops: whyisjake.
Built from https://develop.svn.wordpress.org/trunk@47869
git-svn-id: http://core.svn.wordpress.org/trunk@47644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-31 19:51:42 +00:00
whyisjake
ef135efa6d
Build/Test Tools: Bump devDependencies for WordPress 5.5
...
There are several other changes that need to be made for the security audit, this is just the first pass.
Fixes #49768 .
Props SergeyBiryukov, whyisjake.
Built from https://develop.svn.wordpress.org/trunk@47867
git-svn-id: http://core.svn.wordpress.org/trunk@47643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-30 04:56:34 +00:00
whyisjake
e8fa5d6fc2
Code Standards: Clean up whitespace on the end of a file.
...
See: #45163 .
Props: whyisjake.
Built from https://develop.svn.wordpress.org/trunk@47866
git-svn-id: http://core.svn.wordpress.org/trunk@47642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-29 23:35:11 +00:00
whyisjake
7798f64340
Taxonomy: Extend get_term_by
to accept ID
as a term parameter.
...
Similar to `get_user_by`, both `ID` and `id` should be able to accepted.
Fixes #45163 .
Props emrikol, esoj.
Built from https://develop.svn.wordpress.org/trunk@47865
git-svn-id: http://core.svn.wordpress.org/trunk@47641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-05-29 22:43:09 +00:00