Compare commits

...

165 Commits

Author SHA1 Message Date
audrasjb
b9d15b9258 WordPress 5.5.13.
Built from https://develop.svn.wordpress.org/branches/5.5@56887


git-svn-id: http://core.svn.wordpress.org/branches/5.5@56398 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:33:47 +00:00
davidbaumwald
455aa62ec7 Grouped backports to the 5.5 branch.
- Comments: Prevent users who can not see a post from seeing comments on it.
- Shortcodes: Restrict media shortcode ajax to certain type.
- REST API: Ensure no-cache headers are sent when methods are overridden.
- REST API: Limit `search_columns` for users without `list_users`.
- Prevent unintended behavior when certain objects are unserialized.

Merges [56833], [56834], [56835], [56836], and [56838] to the 5.5 branch.
Props xknown, jorbin, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, antpb, rmccue.
Built from https://develop.svn.wordpress.org/branches/5.5@56880


git-svn-id: http://core.svn.wordpress.org/branches/5.5@56391 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-10-12 18:26:55 +00:00
audrasjb
91bc3134ff Grouped backports to the 5.5 branch.
- Media: Prevent CSRF setting attachment thumbnails.
- Embeds: Add protocol validation for WordPress Embed code.
- I18N: Introduce sanitization function for locale.
- Editor: Ensure block comments are of a valid form.

Merges [55760-55764] to the 5.5 branch.
Props dd32, isabel_brison, martinkrcho, matveb, ocean90, paulkevan, peterwilsoncc, timothyblynjacobs, xknown, youknowriad.


Built from https://develop.svn.wordpress.org/branches/5.5@55782


git-svn-id: http://core.svn.wordpress.org/branches/5.5@55294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-05-16 15:44:05 +00:00
Peter Wilson
4f0d2197b6 I18N: Add new strings to about.php for use with end-of-life updates.
This changeset adds two additional translation strings in the changelog file, for use when releasing the final version of WordPress on a particular branch.

Props peterwilsoncc, audrasjb, mukesh27.
Merges [55350] to the 5.5 branch.
Fixes #57216.

Built from https://develop.svn.wordpress.org/branches/5.5@55377


git-svn-id: http://core.svn.wordpress.org/branches/5.5@54910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-02-21 02:50:58 +00:00
desrosj
ce1e18ac33 WordPress 5.5.11.
Built from https://develop.svn.wordpress.org/branches/5.5@54622


git-svn-id: http://core.svn.wordpress.org/branches/5.5@54174 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 21:37:21 +00:00
audrasjb
3b946f8047 Grouped backports to the 5.5 branch.
- Editor: Bump @wordpress packages for the branch,
- Media: Refactor search by filename within the admin,
- REST API: Lockdown post parameter of the terms endpoint,
- Customize: Escape blogname option in underscores templates,
- Query: Validate relation in `WP_Date_Query`,
- Posts, Post types: Apply KSES to post-by-email content,
- General: Validate host on "Are you sure?" screen,
- Posts, Post types: Remove emails from post-by-email logs,
- Pings/trackbacks: Apply KSES to all trackbacks,
- Mail: Reset PHPMailer properties between use,
- Comments: Apply kses when editing comments,
- Widgets: Escape RSS error messages for display.

Merges [54521-54530] to the 5.5 branch.
Props audrasjb, costdev, cu121, dd32, davidbaumwald, ehtis, johnbillion, johnjamesjacoby, martinkrcho, matveb, oztaser, paulkevan, peterwilsoncc, ravipatel, SergeyBiryukov, talldanwp, timothyblynjacobs, tykoted, voldemortensen, vortfu, xknown.

Built from https://develop.svn.wordpress.org/branches/5.5@54556


git-svn-id: http://core.svn.wordpress.org/branches/5.5@54111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-17 17:59:59 +00:00
Peter Wilson
54eb24feb7 Security: Introduce strings to indicate support status.
Add strings for use in future maintenance/security releases to indicate the security support status of the version of WordPress.

Two strings are introduced:

* indicating the version of WordPress is not receiving security updates, and,
* indicating the version of WordPress will shortly stop receiving security updates.

This change does not make use of the strings, the purpose is to make them available to translators prior to dropping support of selected versions of WordPress.

Props costdev, chesio, robinwpdeveloper, desrosj, rudlinkon, mukesh27, sumitbagthariya16.
Merges [54322] to the 5.5 branch.
See #56532.


Built from https://develop.svn.wordpress.org/branches/5.5@54435


git-svn-id: http://core.svn.wordpress.org/branches/5.5@53994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-10-10 05:05:05 +00:00
desrosj
7692dd406b WordPress 5.5.10.
Built from https://develop.svn.wordpress.org/branches/5.5@53992


git-svn-id: http://core.svn.wordpress.org/branches/5.5@53551 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 17:30:10 +00:00
Sergey Biryukov
f2387898e2 Grouped backports to the 5.5 branch.
- Posts, Post Types: Escape output within `the_meta()`.
- General: Ensure bookmark query limits are numeric.
- Plugins: Escape output in error messages.
- Build/Test Tools: Allow the PHPCS plugin in Composer configuration.

Merges [52412,53958-53960] to the 5.5 branch.
Props tykoted, martinkrcho, xknown, dd32, peterwilsoncc, paulkevan, timothyblynjacobs.

Built from https://develop.svn.wordpress.org/branches/5.5@53968


git-svn-id: http://core.svn.wordpress.org/branches/5.5@53527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-08-30 15:34:58 +00:00
davidbaumwald
bc3f96de92 WordPress 5.5.9.
Built from https://develop.svn.wordpress.org/branches/5.5@52871


git-svn-id: http://core.svn.wordpress.org/branches/5.5@52460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 21:55:58 +00:00
audrasjb
c0fd5b8c8f External Librairies: Update jQuery.query to version 2.2.3.
This updates the "jquery-query" library from version 2.1.7 to 2.2.3.

Props jorbin, peterwilsoncc, xknown, audrasjb, jorgefilipecosta.
Merges [52844] to the 5.5 branch.

Built from https://develop.svn.wordpress.org/branches/5.5@52851


git-svn-id: http://core.svn.wordpress.org/branches/5.5@52440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-03-10 21:05:01 +00:00
desrosj
28b01cf262 WordPress 5.5.8.
Built from https://develop.svn.wordpress.org/branches/5.5@52490


git-svn-id: http://core.svn.wordpress.org/branches/5.5@52082 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:48:58 +00:00
desrosj
52734cdc4e Grouped backports to the 5.5 branch.
- Query: Improve sanitization within `WP_Tax_Query`.
- Query: Improve sanitization within `WP_Meta_Query`.
- Upgrade/Install: Avoid using `unserialize()` unnecessarily.
- Formatting: Correctly encode ASCII characters in post slugs.

Merges [52454-52457] to the 5.5 branch.
Props vortfu, dd32, ehtis, zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.
Built from https://develop.svn.wordpress.org/branches/5.5@52468


git-svn-id: http://core.svn.wordpress.org/branches/5.5@52060 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-01-06 18:10:57 +00:00
desrosj
9d38fc1ea9 WordPress 5.5.7.
Built from https://develop.svn.wordpress.org/branches/5.5@52116


git-svn-id: http://core.svn.wordpress.org/branches/5.5@51708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 17:08:56 +00:00
desrosj
e1c0530d22 HTTP: Remove the DST Root CA X3 certificate expired on September 30, 2021.
> The currently recommended certificate chain as presented to Let’s Encrypt ACME clients when new certificates are issued contains an intermediate certificate (ISRG Root X1) that is signed by an old DST Root CA X3 certificate that expires on 2021-09-30. In some cases the OpenSSL 1.0.2 version will regard the certificates issued by the Let’s Encrypt CA as having an expired trust chain.
> 
> Most up-to-date CA cert trusted bundles, as provided by operating systems, contain this soon-to-be-expired certificate. The current CA cert bundles also contain an ISRG Root X1 self-signed certificate. This means that clients verifying certificate chains can find the alternative non-expired path to the ISRG Root X1 self-signed certificate in their trust store.
> 
> Unfortunately this does not apply to OpenSSL 1.0.2 which always prefers the untrusted chain and if that chain contains a path that leads to an expired trusted root certificate (DST Root CA X3), it will be selected for the certificate verification and the expiration will be reported.

References:
* [https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/ Old Let’s Encrypt Root Certificate Expiration and OpenSSL 1.0.2]
* [https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ DST Root CA X3 Expiration (September 2021)]

Follow-up to [25224], [25426], [25569], [27307], [30491], [30765], [34283], [35919], [36570], [46094].

Props bradleyt, fierevere, SergeyBiryukov, peterwilsoncc.
Merges [51883] to the 5.5 branch.
Fixes #54207. See #50828.
Built from https://develop.svn.wordpress.org/branches/5.5@52099


git-svn-id: http://core.svn.wordpress.org/branches/5.5@51691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-11-10 02:12:56 +00:00
desrosj
4e03cbf8bf WordPress 5.5.6.
Built from https://develop.svn.wordpress.org/branches/5.5@51761


git-svn-id: http://core.svn.wordpress.org/branches/5.5@51368 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 21:32:56 +00:00
desrosj
daf9eff56a Grouped merges for 5.5.6.
- Update `lodash` to the latest version `4.17.21`.
- Disable some attributes for rich text.
- Use hashed/deterministic moduleIDs in webpack config.

Props ellatrix, peterwilsoncc, get_dave, mcsf, talldanwp, youknowriad, desrosj, nerrad, gziolo.
Merges [50940-50941,50984-50985,51426] to the 5.5 branch.
Built from https://develop.svn.wordpress.org/branches/5.5@51752


git-svn-id: http://core.svn.wordpress.org/branches/5.5@51360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 21:17:20 +00:00
Sergey Biryukov
da240f21e2 General: Only use _jsonp_wp_die_handler() for JSONP REST API requests.
Props mdawaffe, peterwilsoncc.
Merges [51740] to the 5.5 branch.
Built from https://develop.svn.wordpress.org/branches/5.5@51744


git-svn-id: http://core.svn.wordpress.org/branches/5.5@51352 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-09-08 17:25:56 +00:00
Peter Wilson
356a49af41 WordPress 5.5.5
Built from https://develop.svn.wordpress.org/branches/5.5@50871


git-svn-id: http://core.svn.wordpress.org/branches/5.5@50480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 23:13:54 +00:00
Peter Wilson
aae37f1790 External libraries: Improve attachment handling in PHPMailer
Props: audrasjb, ayeshrajans, desrosj, peterwilsoncc, xknown.
Partially merges [50799] to the 5.5 branch.


Built from https://develop.svn.wordpress.org/branches/5.5@50849


git-svn-id: http://core.svn.wordpress.org/branches/5.5@50458 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 22:26:56 +00:00
Peter Wilson
3a58019c39 Version bump for 5.5.4.
Built from https://develop.svn.wordpress.org/branches/5.5@50738


git-svn-id: http://core.svn.wordpress.org/branches/5.5@50347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 01:35:01 +00:00
Peter Wilson
3623a537fa Grouped merges for 5.5.4.
* REST API: Allow authors to read their own password protected posts.
* About page update

Merges [50717] to the 5.5 branch.

Built from https://develop.svn.wordpress.org/branches/5.5@50725


git-svn-id: http://core.svn.wordpress.org/branches/5.5@50334 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 01:07:00 +00:00
Peter Wilson
879e812239 Editor: Update of @wordpress npm packages for 5.5.4.
Built from https://develop.svn.wordpress.org/branches/5.5@50722


git-svn-id: http://core.svn.wordpress.org/branches/5.5@50331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-15 00:10:23 +00:00
desrosj
88e3d8ef14 Build/Test Tools: Prevent PHPUnit tests on push for forks/private mirrors.
The reorganization of the PHPUnit workflow in [50441] unintentionally caused the tests to be run for every `push` event, even for forks and private mirrors.

Previously, the second job required the first one to pass, and the conditional check on the first prevented both from running. Because the first job is no longer required for the second, both jobs must have the appropriate conditional check.

Merges [50670] to the 5.5 branch.
Fixes #52983.
Built from https://develop.svn.wordpress.org/branches/5.5@50673


git-svn-id: http://core.svn.wordpress.org/branches/5.5@50285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-04-06 15:29:04 +00:00
desrosj
64dc3f9159 Build/Test Tools: Backport GitHub Action and build improvements to the 5.5 branch.
This backports several build and test tool improvements to the 5.5 branch. Most notably, this includes:

- The changes required to allow each workflow to be triggered by the `workflow_dispatch` event so that tests can be run on a schedule [50590].
- The ability to run PHPUnit tests from `src` instead of `build` [50441-50443].
- Splitting single site and multisite tests into parallel jobs [50379].
- Split slow tests into separate, parallel jobs for PHP 5.6 [50444].
- Better branch and path scoping for GitHub Action workflows when running on `pull_request` [50432,50479].
- Several `devDependency` updates.

Merges [50267,50299,50379,50387,50413,50416,50432,50435-50436,50441-50444,50446,50473-50474,50476,50479,50485-50487,50545,50579,50590,50592,50598] to the 5.5 branch.
See #50401, #51734, #51801, #51802, #52548, #52608, #52612, #52623, #52624, #52625, #52645, #52653, #52658, #52660, #52667, #52786.
Built from https://develop.svn.wordpress.org/branches/5.5@50603


git-svn-id: http://core.svn.wordpress.org/branches/5.5@50216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-26 17:49:17 +00:00
desrosj
fa18a89a67 Build/Test Tools: Restore automated testing in the 5.5 branch.
This commit merges the workflow files required to run automated testing on GitHub Actions.

In addition, [49836] and [50285] have been included in order to keep the local Docker environment consistent across all branches.

Merges [49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298] to the 5.5 branch.
See #50401.
Built from https://develop.svn.wordpress.org/branches/5.5@50302


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-12 17:39:59 +00:00
desrosj
425d33ee65 Build/Test Tools: Fix tests after [50188].
This removes a test assertion defending against version ranges in the node value in package.json files. This is now supported.

Props peterwilsoncc.
Merges [50192] to the 5.5 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.5@50194


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 03:42:02 +00:00
desrosj
2d74427834 Build/Test Tools: Support NodeJS 14.x in the 5.5 branch.
This updates the 5.5 branch to support the latest LTS version of NodeJS (currently 14.x) in an effort to allow the same version of NodeJS to be used across all WordPress branches receiving security updates as a courtesy.

In addition to backporting the package updates that happened after branching 5.5, dependencies that were removed in future releases have also been updated to their latest versions.

Props desrosj, dd32, netweb, jorbin.
Merges [48705,49636,49933,49937,49939-49940,49983,49989-49990,50016-50017,50126,50176,50185] to the 5.5 branch.
See #52341.
Built from https://develop.svn.wordpress.org/branches/5.5@50188


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-02-05 03:06:34 +00:00
Sergey Biryukov
54362b988a Tests: Set up the plugin download in multisite plugin tests to come locally.
This brings consistency between single site and multisite in REST API plugin installation tests.

Previously, multisite tests were unnecessarily downloading the plugin from WordPress.org on each test run, causing external HTTP requests and leading to failures in case of a timeout.

Follow-up to [48242], [49491], [49913].

Merges [49951] to the 5.5 branch.
See #51669.
Built from https://develop.svn.wordpress.org/branches/5.5@50086


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49786 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-30 10:41:53 +00:00
Sergey Biryukov
317f7331fc Tests: Disable update checks while running REST API plugin installation tests.
This prevents external HTTP requests that are not required for the tests in question and may interfere with the results in case of a timeout.

Follow-up to [48242], [49491].

Merges [49913] to the 5.5 branch.
See #51669.
Built from https://develop.svn.wordpress.org/branches/5.5@50084


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49784 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-01-30 10:38:58 +00:00
desrosj
9c3b41b023 Build/Test Tools: Remove the TravisCI configuration file.
In [49162], GitHub Action workflow configuration files were introduced to run all of Core’s automated testing with the intent to fully transition after some time was allowed for testing.

After two full months of testing, the time to finish this transition has come.

We thank TravisCI for testing the codebase through nearly 20 major and many more minor releases.

Merges [49876] to the 5.5 branch.
See #52161. See #50401.
Built from https://develop.svn.wordpress.org/branches/5.5@49878


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49597 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-22 21:06:07 +00:00
desrosj
eb3e30b6e8 Build/Test Tools: Remove the Appveyor configuration file.
Appveyor was added to Core in [44594] to ensure that NPM and the WordPress build tools continue to work correctly on Windows systems as changes are made. Using an additional service for this was required at the time, TravisCI did not support testing on Windows.

[49162] introduced a GitHub Action workflow that performed the same testing. Since all automated testing is moving to GitHub Actions, using Appveyor is no longer necessary, and it’s preferable to have all automated testing in one location as much as possible.

Props ayeshrajans.
Merges [49779] to the 5.5 branch.
See #51968.
Built from https://develop.svn.wordpress.org/branches/5.5@49810


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-12-17 12:29:10 +00:00
Sergey Biryukov
30cfb5eed3 Security: Update the Security Policy for the 5.5 branch.
See [49645], [49646].
Props whyisjake.
Built from https://develop.svn.wordpress.org/branches/5.5@49647


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49385 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-17 23:07:05 +00:00
desrosj
2b186198ca Build/Test Tools: Fix Travis configuration error.
Follow up to [49500].

See #51705.
Built from https://develop.svn.wordpress.org/branches/5.5@49501


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49258 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-04 15:57:04 +00:00
desrosj
21df5a2520 Build/Test Tools: Remove the E2E test job from the 5.5 branch.
The E2E test job does not currently perform any meaningful tests, so continuing to run them is not necessary for older branches.

Props johnbillion.
See #51705.
Built from https://develop.svn.wordpress.org/branches/5.5@49500


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-04 15:54:06 +00:00
desrosj
433f7ec7a1 Build/Test Tools: Remove jobs that are allowed to fail for the 5.5 branch.
Because PHP 8 support will not be backported to the 5.5 branch, the test job in the Travis matrix will never pass, making it unnecessary to continue running.

See #51705.
Built from https://develop.svn.wordpress.org/branches/5.5@49497


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49256 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-11-04 15:02:07 +00:00
Sergey Biryukov
18b7e09efb Post WordPress 5.5.3 version bump. The 5.5 branch is now 5.5.4 alpha.
Built from https://develop.svn.wordpress.org/branches/5.5@49468


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49227 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-30 21:17:06 +00:00
Sergey Biryukov
3448d022f8 WordPress 5.5.3.
Props audrasjb.
Fixes #51684.
Built from https://develop.svn.wordpress.org/branches/5.5@49458


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-30 19:32:05 +00:00
whyisjake
fd75e76255 Upgrade/Install: During the install process, add additional checking for exising tables.
This commit brings the changes in [49452] to the 5.5 branch.

If reinstalling WordPress, there is a condition where tables would exist in the database. Ensures that when that is the case, the install process can carry along without issue.

Fixes #51676.

Props xknown, garubi, mukesh27, desrosj, johnbillion, metalandcoffee, davidbaumwald, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.5@49453


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-30 17:56:08 +00:00
Sergey Biryukov
1efd16777a Post WordPress 5.5.2 version bump. The 5.5 branch is now 5.5.3 alpha.
Built from https://develop.svn.wordpress.org/branches/5.5@49449


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49208 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 20:56:08 +00:00
desrosj
f9e0a7396c WordPress 5.5.2.
Props audrasjb.
Fixes #51649.
Built from https://develop.svn.wordpress.org/branches/5.5@49447


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 20:02:05 +00:00
noisysocks
67a606b0f4 Editor: Update packages
@wordpress/block-directory: 1.13.8 -> 1.13.9
@wordpress/block-editor: 4.3.8 -> 4.3.9
@wordpress/block-library: 2.22.8 -> 2.22.9
@wordpress/edit-post: 3.21.8 -> 3.21.9
@wordpress/edit-site: 1.11.8 -> 1.11.9
@wordpress/editor: 9.20.8 -> 9.20.9
@wordpress/format-library: 1.22.8 -> 1.22.9

See #51659.

Built from https://develop.svn.wordpress.org/branches/5.5@49446


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 20:00:29 +00:00
whyisjake
13bdf36937 XML-RPC: Improve error messages for unprivileged users.
Add specific permission checks to avoid ambiguous failure messages.

This brings the changes in [49380] to the 5.5 branch.

Props zieladam, peterwilsoncc, xknown, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.5@49389


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 18:28:08 +00:00
whyisjake
d80104976c Coding Standards: Use a strict comparison operator when comparing values.
Props batmoo, mukesh27.

Built from https://develop.svn.wordpress.org/branches/5.5@49381


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49140 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 17:46:06 +00:00
whyisjake
f2b1d503c0 Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page.
Props xknown, zieladam, peterwilsoncc, whyisjake

Built from https://develop.svn.wordpress.org/branches/5.5@49379


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 17:35:04 +00:00
whyisjake
270c69eacd Meta: Sanitize meta key before checking protection status.
Props zieladam, peterwilsoncc, xknown, whyisjake.


Built from https://develop.svn.wordpress.org/branches/5.5@49378


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49137 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 17:33:05 +00:00
whyisjake
951e583bb4 Upgrade/install: Improve logic check when determining installation status.
Improve handling of ambiguous return values to determine if a blog is installed.

Props zieladam, xknown.

Built from https://develop.svn.wordpress.org/branches/5.5@49377


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49136 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 17:26:03 +00:00
whyisjake
107e7856e6 XML-RPC: Return error message if attachment ID is incorrect.
Throw an error for incorrect attachment IDs when requesting a media object to ensure return signature is correct and doesn't include incorrectly typed values within the object.

Props zieladam, peterwilsoncc, whyisjake.
See #49905.

Built from https://develop.svn.wordpress.org/branches/5.5@49376


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 17:00:03 +00:00
whyisjake
a428042e49 Coding standards: Modify escaping functions to avoid potential false positives.
Props xknown, zieladam, peterwilsoncc.Y


Built from https://develop.svn.wordpress.org/branches/5.5@49375


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49134 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 16:58:05 +00:00
whyisjake
8518cbeea9 Embeds: Disable embeds on deactivated Multisite sites.
Props xknown, whyisjake, zieladam, peterwilsoncc.

Built from https://develop.svn.wordpress.org/branches/5.5@49374


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 16:54:05 +00:00
whyisjake
180e707b2e External Libraries: Disable deserialization in Requests_Utility_FilteredIterator
Props xknown, peterwilsoncc, desrosj, dd32, whyisjake.


Built from https://develop.svn.wordpress.org/branches/5.5@49373


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49132 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 16:38:08 +00:00
noisysocks
55e14b6d32 Editor: Update packages
@wordpress/block-directory: 1.13.7 -> 1.13.8
@wordpress/block-editor: 4.3.7 -> 4.3.8
@wordpress/block-library: 2.22.7 -> 2.22.8
@wordpress/blocks: 6.20.3 -> 6.20.4
@wordpress/components: 10.0.6 -> 10.0.7
@wordpress/core-data: 2.20.3 -> 2.20.4
@wordpress/edit-post: 3.21.7 -> 3.21.8
@wordpress/editor: 9.20.7 -> 9.20.8
@wordpress/format-library: 1.22.7 -> 1.22.8
@wordpress/icons: 2.4.0 -> 2.4.1
@wordpress/list-reusable-blocks: 1.21.6 -> 1.21.7
@wordpress/nux: 3.20.6 -> 3.20.7
@wordpress/plugins: 2.20.3 -> 2.20.4
@wordpress/server-side-render: 1.16.6 -> 1.16.7

Props talldanwp.
See #51659, #51053, #50949.

Built from https://develop.svn.wordpress.org/branches/5.5@49372


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49131 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-29 06:13:33 +00:00
desrosj
9e31b4e809 Build/Test Tools: Allow the desired version of PHPUnit to be passed to the local Docker environment.
This introduces the `LOCAL_PHPUNIT` environment variable, which allows the desired version of PHPUnit to be specified when running the PHP tests within the local Docker environment.

Because support for newer versions of PHPUnit is not backported, some versions of PHP need the ability to run multiple versions of PHPUnit for different branches. This adds the flexibility needed to use the Docker environment within those older branches to run the PHP tests.

Props johnbillion, SergeyBiryukov.
Merges [49362] to the 5.5 branch.
See #50042.
Built from https://develop.svn.wordpress.org/branches/5.5@49363


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-28 23:34:21 +00:00
whyisjake
fa2673ce4b Embeds: Remove Facebook and Instagram as an oEmbed Source
Facebook has depracated all non-authenticated endpoints for Facebook and Instagram.

This commit brings the changes from [49359] to the 5.5 branch.

See: https://developers.facebook.com/docs/plugins/oembed-legacy
See also: https://make.wordpress.org/core/2020/09/22/facebook-and-instagram-embeds-to-be-deprecated-october-24th/

With this change, endpoints are being removed. If a site is dependent on this feature, they need to pass either an app or client token. There are a few plugins that add this functionality.

Fixes #50861.
Props johnbillion, joyously, mkaz, dimadin, ayeshrajans, davisshaver, paaljoachim, Clorith, bridgetwillard, jb510, sippis, Clorith, TimothyBlynJacobs, desrosj, smub, audrasjb, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.5@49361


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-28 21:23:06 +00:00
Sergey Biryukov
321e099745 General: Ensure that filtered arguments in get_search_form() contain all required default values.
Props kellybleck, davidbaumwald, whyisjake, SergeyBiryukov.
Merges [49355] to the 5.5 branch.
Fixes #51645.
Built from https://develop.svn.wordpress.org/branches/5.5@49356


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-28 17:09:06 +00:00
desrosj
ecd6a4c549 Build/Test Tools: Specify a type when using wp config set.
This prevents an error if constants are not predefined when running the Docker install script while using older combinations of WordPress/PHP/WP-CLI.

Backports [49335] to the 5.5 branch.
See #48301.
Built from https://develop.svn.wordpress.org/branches/5.5@49340


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 19:03:06 +00:00
desrosj
3bdec70780 Build/Test Tools: Set the local development environment to a local environment type by default.
Props igorradovanov, TimothyBlynJacobs, johnbillion.
Merges [49121] to the 5.5 branch.
See #50903.
Built from https://develop.svn.wordpress.org/branches/5.5@49339


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 19:01:03 +00:00
Sergey Biryukov
8f1ac79d9f Posts, Post Types: Check if taxonomy is set for the tax_input parameter of wp_insert_post().
This avoids a PHP notice when creating a post with multiple taxonomies both having a default term.

Props yakimun, szaqal21, hareesh-pillai, audrasjb.
Merges [49328] to the 5.5 branch.
Fixes #51320.
Built from https://develop.svn.wordpress.org/branches/5.5@49332


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-27 17:56:05 +00:00
Sergey Biryukov
f062c1a2cc Build Tools: Update mergeinfo for [49313].
See #51624.
Built from https://develop.svn.wordpress.org/branches/5.5@49315


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49077 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 22:58:06 +00:00
Sergey Biryukov
bb32328f5e Build Tools: Fix running installing Composer dependencies using Composer 2.0.
This updates the `dealerdirect/phpcodesniffer-composer-installer` package to allow installing version `0.7.0` which supports Composer 2.0.

Props itowhid06, jrf.
Merges [49306] to the 5.5 branch.
See #51624.
Built from https://develop.svn.wordpress.org/branches/5.5@49313


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49075 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-26 22:47:06 +00:00
Sergey Biryukov
1d0dc9f672 Tests: Declare UTF-8 encoding for QUnit test suite.
This was done for trunk in [49101] as part of other changes, and is now backported to the 5.5 branch.

Follow-up to [49275].

Props iandunn, SergeyBiryukov.
Fixes #51130.
Built from https://develop.svn.wordpress.org/branches/5.5@49307


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-25 01:31:05 +00:00
Dion Hulse
82ed257403 Bump Akismet external to 4.1.7.
git-svn-id: http://core.svn.wordpress.org/branches/5.5@49044 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-23 04:42:44 +00:00
tellyworth
542c3d4bb1 Community Events: Display dates and times in the user's time zone.
Fixes #51130
Merges [49145], [49146], [49147], [49152], and [49201] to the 5.5 branch.
Props sippis, hlashbrooke, audrasjb, Rarst, iandunn

Built from https://develop.svn.wordpress.org/branches/5.5@49275


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49037 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-22 04:05:05 +00:00
Peter Wilson
59ca490c66 XML-RPC: Fix length validation of anonymous commenter's email address.
Fix the first step of validating an anonymous commenters in which the length is checked prior to running regular expressions.

Follow up to [47808].
Merges [49271] to the 5.5 branch.
Fixes #51595.


Built from https://develop.svn.wordpress.org/branches/5.5@49273


git-svn-id: http://core.svn.wordpress.org/branches/5.5@49035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-22 02:47:07 +00:00
Sergey Biryukov
f7533ee854 Comments: Hide the link to the initial parent comment in the reply heading when replying to another comment.
This ensures that the reply heading is updated correctly on single post URLs with the `?replytocom` query argument.

Follow-up to [47506], [48876], [48904].

Props mailnew2ster, wpamitkumar, audrasjb, desrosj, SergeyBiryukov.
Merges [49187] to the 5.5 branch.
Fixes #51175.
Built from https://develop.svn.wordpress.org/branches/5.5@49191


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-18 17:11:06 +00:00
Sergey Biryukov
5188ab0ce7 Upgrade/Install: Check if plugin or theme update results are available before applying the notification filters.
This avoids a PHP notice for an undefined index of either `plugin` or `theme` in the `auto_{plugin|theme}_update_send_email` filter hook.

Props afragen, audrasjb.
Merges [49166] to the 5.5 branch.
Fixes #51400.
Built from https://develop.svn.wordpress.org/branches/5.5@49167


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 23:31:07 +00:00
Sergey Biryukov
f2b876135c Bootstrap/Load: Revert [49161] from the 5.5 branch.
See #50913.
Built from https://develop.svn.wordpress.org/branches/5.5@49164


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48926 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 21:19:05 +00:00
Aaron Jorbin
4c768414d6 Bootstrap/Load: Don't assume WP_CONTENT_DIR is defined
When the mysql extention isn't loaded and a custom db dropin is not in place, we give folks a nice error. However, we can't assume that the WP_CONTENT_DIR constant is set yet since this runs before we define default constants.

This fixes a PHP8 error.

See: #50913.


Built from https://develop.svn.wordpress.org/branches/5.5@49161


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-15 17:07:06 +00:00
Sergey Biryukov
2434d8188d Comments: Check if a valid comment ID was passed when editing a comment.
This avoids a PHP notice after submitting the Edit Comment form.

Follow-up to [48050].

Props regan.khadgi.
Merges [48958] to the 5.5 branch.
Fixes #51263.
Built from https://develop.svn.wordpress.org/branches/5.5@48959


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48721 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-09-08 22:46:07 +00:00
Sergey Biryukov
a4b9563038 Media: In wp_ajax_image_editor(), check if the error property exists before accessing it.
This avoids a PHP notice when editing an image.

Follow-up to [48375].

Props Mista-Flo.
Merges [48946] to the 5.5 branch.
Fixes #51251.
Built from https://develop.svn.wordpress.org/branches/5.5@48956


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-09-07 13:07:03 +00:00
Sergey Biryukov
ff206bc029 Administration: Give the $error variable in wp-admin/admin-header.php a more descriptive name.
This avoids a conflict with the same global variable used elsewhere, e.g. in Theme Editor.

Follow-up to [48850].

Props vinayak.anivase.
Merges [48938] to the 5.5 branch.
Fixes #51219.
Built from https://develop.svn.wordpress.org/branches/5.5@48955


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-09-07 13:05:10 +00:00
desrosj
0fb385f897 Post WordPress 5.5.1 version bump. The 5.5 branch is now 5.5.2 alpha.
Built from https://develop.svn.wordpress.org/branches/5.5@48936


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48698 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-09-01 19:22:05 +00:00
desrosj
e56d08be94 WordPress 5.5.1.
Built from https://develop.svn.wordpress.org/branches/5.5@48934


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-09-01 18:52:03 +00:00
Sergey Biryukov
bb254465ec Help/About: Update the About page for 5.5.1.
Props audrasjb, desrosj, SergeyBiryukov.
Fixes #51202.
Built from https://develop.svn.wordpress.org/branches/5.5@48933


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-09-01 17:44:03 +00:00
Sergey Biryukov
0cf22af9bc Help/About: Fix typo and remove trailing spaces from some strings.
Props mukesh27, casiepa, davidbaumwald.
Merges [48809] to the 5.5 branch.
Fixes #51028.
Built from https://develop.svn.wordpress.org/branches/5.5@48932


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-09-01 17:24:08 +00:00
desrosj
e803596246 Post WordPress 5.5.1 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/5.5@48928


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 23:47:04 +00:00
desrosj
f06114fff2 WordPress 5.5.1 RC2.
Built from https://develop.svn.wordpress.org/branches/5.5@48927


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 23:29:04 +00:00
desrosj
26e1ea0fe0 Tests: Move the tests for get_the_modified_time() to a more appropriate place.
Add some new tests to better cover the functionality, for consistency with `get_the_date()` and `get_the_time()`.

Follow-up to [48911], [48912], [48918].

Props wittich.
Merges [48924] to the 5.5 branch.
Fixes #51184.
Built from https://develop.svn.wordpress.org/branches/5.5@48926


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 22:51:06 +00:00
desrosj
fdad915022 Script Loader: Add backward compatibility for JavaScript i18n globals and properties deprecated in WordPress 5.5.
The recommended approach for any plugins using these globals or properties is to switch to the newer `wp.i18n` functions.

In the meantime, this ensures that accessing any of these globals does not break the rest of the code on the page, and an appropriate warning message is logged to the JavaScript console.

Follow-up to: https://core.trac.wordpress.org/query?summary=~wp.i18n&milestone=5.5

Props omarreiss, peterwilsoncc, kbjohnson90, johnbillion, TimothyBlynJacobs, joostdevalk, ocean90, desrosj, SergeyBiryukov.
Merges [48923] to the 5.5 branch.
Fixes #51123.
Built from https://develop.svn.wordpress.org/branches/5.5@48925


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 22:44:13 +00:00
desrosj
649a2dbd38 Date/Time: In get_the_date() and related functions, pass the original, unmodified $format value to the filters.
Additionally, simplify the `$format` argument checks for consistency with similar checks in `get_the_modified_date()` and `get_the_modified_time()`.

Follow-up to [48912].

Props Rarst.
Merges [48918] to the 5.5 branch.
See #51184.
Built from https://develop.svn.wordpress.org/branches/5.5@48922


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 19:00:08 +00:00
desrosj
bb9c99c489 Date/Time: Make sure get_the_date() and related functions return correct time if the format was specified as false.
Technically, the `$format` argument should always be a string, but passing `false` used to work before [47808], so this restores backward compatibility.

The list of affected functions:

- `get_the_date()`
- `get_the_time()`
- `get_comment_date()`
- `get_comment_time()`

Props wittich, Rarst, akabarikalpesh, SergeyBiryukov.
Merges [48912] to the 5.5 branch.
Fixes #51184.
Built from https://develop.svn.wordpress.org/branches/5.5@48921


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 18:58:03 +00:00
desrosj
8fd734ae42 Tests: Bring some consistency to Date/Time tests:
- Move some tests from `post.php` to a more appropriate location in the `date` directory.
- Rename `date/postTime.php` to `date/getPostTime.php` to match the function name. 

Props Rarst.
Merges [48911] to the 5.5 branch.
See #51184.
Built from https://develop.svn.wordpress.org/branches/5.5@48920


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 18:55:04 +00:00
desrosj
22ceef8ed5 Themes: Normalize the installed theme path in Theme_Installer_Skin::do_overwrite() before comparing with the uploaded theme.
This ensures that the data for the currently installed theme is picked up properly when uploading a theme update on Windows.

Follow-up to [48390].

Props bobbingwide, wpamitkumar, mukesh27.
Merges [48913] to the 5.5 branch.
Fixes #51182.
Built from https://develop.svn.wordpress.org/branches/5.5@48919


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 18:31:09 +00:00
desrosj
f5a90352b3 Comments: Check if reply heading text node exists before accessing its property in comment-reply.js.
Follow-up to [47506], [48876].

Props johannadevos, mailnew2ster.
Merges [48904] to the 5.5 branch.
Fixes #38009.
Built from https://develop.svn.wordpress.org/branches/5.5@48917


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 18:14:04 +00:00
desrosj
26edd1d039 Docs: Clarify the usage of null for auto_update_{$type} filter.
The value is internally used to detect whether nothing has hooked into this filter.

Props audrasjb, pbiron, johnbillion, SergeyBiryukov.
Merges [48909] to the 5.5 branch.
Fixes #50848.
Built from https://develop.svn.wordpress.org/branches/5.5@48916


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 18:02:04 +00:00
desrosj
15ed5a9e75 Docs: Add a @since note to the display_post_states filter to clarify that it is now also applied in the Customizer context.
If any admin functions are used within the filter, their existence should be checked with `function_exists()` before being used.

Follow-up to [47763], [48620].

Props audrasjb, garrett-eclipse, Howdy_McGee, dlh, khag7, SergeyBiryukov.
Merges [48910] to the 5.5 branch.
Fixes #51081.
Built from https://develop.svn.wordpress.org/branches/5.5@48915


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 17:57:02 +00:00
desrosj
94b419b058 Tests: Reset the $wp_sitemap global after each test, so that sitemaps are re-initialized when the next test runs.
This ensures consistent results in query var tests, regardless of whether they are run in isolation or as part of a larger group of tests.

Props pbiron, peterwilsoncc.
Merges [48908] to the 5.5 branch.
Fixes #51154.
Built from https://develop.svn.wordpress.org/branches/5.5@48914


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-31 17:53:07 +00:00
desrosj
5d3eb85af8 Post WordPress 5.5.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/5.5@48902


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 23:24:04 +00:00
desrosj
280739e72c WordPress 5.5.1 RC1.
Built from https://develop.svn.wordpress.org/branches/5.5@48901


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 23:06:05 +00:00
Sergey Biryukov
a6f6950507 Upgrade/Install: Only display the auto-update links on the Network Admin > Themes screen for themes that support the feature.
Follow-up to [48669], [48688].

Props afragen, pbiron, audrasjb, desrosj, SergeyBiryukov.
Merges [48899] to the 5.5 branch.
Fixes #51129.
Built from https://develop.svn.wordpress.org/branches/5.5@48900


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 22:26:04 +00:00
Sergey Biryukov
825f0e01b4 Script Loader: Disable concatenation for scripts with translations to ensure they are printed in the right order.
Props herregroen, ocean90, desrosj, mikeyarce, bobbingwide, audrasjb, johnbillion.
Merges [48897] to the 5.5 branch.
Fixes #50999.
Built from https://develop.svn.wordpress.org/branches/5.5@48898


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 22:01:05 +00:00
Sergey Biryukov
a0096893c3 Bootstrap/Load: Remove the ability to alter the list of environment types in wp_get_environment_type().
The intention of `wp_get_environment_type()` is to provide a consistent means of identifying the environment type, not of identifying a specific environment.

Actual environments should fit within one of the existing types: `local`, `development`, `staging`, or `production`. That should cover the types that plugins and themes might be concerned about when toggling functionality. 

Props johnbillion, joostdevalk, TimothyBlynJacobs, jeremyfelt, batmoo, claytoncollie, Clorith, markjaquith, garrett-eclipse, GaryJ, elrae.
Merges [48894] and [48895] to the 5.5 branch.
Fixes #50992.
Built from https://develop.svn.wordpress.org/branches/5.5@48896


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 21:46:05 +00:00
Sergey Biryukov
de7200c257 Tests: Update wp_add_inline_script() unit tests to account for the jquery handle being an alias for jquery-core again.
Follow-up to [48323], [48324], [48890].

Props davidbaumwald, audrasjb.
Merges [48892] to the 5.5 branch.
See #50919.
Built from https://develop.svn.wordpress.org/branches/5.5@48893


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48655 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 21:08:04 +00:00
Sergey Biryukov
128ba6a38a Script Loader: Change the jquery handle back to an alias for jquery-core.
This ensures that `wp_localize_script( 'jquery', ... )` continues to work as expected, since `WP_Scripts::localize()` rewrites the `jquery` handle to `jquery-core` internally.

Follow-up to [48323].

Props mukesh27, rajeshsingh520, johnbillion, TimothyBlynJacobs, TobiasBg.
Merges [48890] to the 5.5 branch.
Fixes #50919.
Built from https://develop.svn.wordpress.org/branches/5.5@48891


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 20:36:07 +00:00
desrosj
9fceb56948 Upgrade/Install: Pass details about the specific plugin and theme updates attempted to filters.
This adds an additional parameter to the `auto_plugin_update_send_email` and `auto_theme_update_send_email` filters to provide the additional context of which updates were attempted and their outcome. This will help plugin and theme auto-update emails to be better tailored to a site owner's liking.

Props audrasjb, Paddy Landau, desrosj.
Merges [48888] to the 5.5 branch.
Fixes #50988.
Built from https://develop.svn.wordpress.org/branches/5.5@48889


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48651 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 19:34:05 +00:00
desrosj
8096a67b7c Build/Test Tools: Update the package lock file.
Follow up to [48884].

Merges [48886] to the 5.5 branch.
See #51151.
Built from https://develop.svn.wordpress.org/branches/5.5@48887


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 19:07:05 +00:00
jorgefilipecosta
5228943449 Editor: update packages.
The following package versions were changed:
@wordpress/block-directory: 1.13.6 -> 1.13.7
@wordpress/block-editor: 4.3.6 -> 4.3.7
@wordpress/block-library: 2.22.6 -> 2.22.7
@wordpress/components: 10.0.5 -> 10.0.6
@wordpress/edit-post: 3.21.6 -> 3.21.7
@wordpress/editor: 9.20.6 -> 9.20.7
@wordpress/format-library: 1.22.6 -> 1.22.7
@wordpress/list-reusable-blocks: 1.21.5 -> 1.21.6
@wordpress/nux: 3.20.5 -> 3.20.6
@wordpress/server-side-render: 1.16.5 -> 1.16.6
Includes PR WordPress/gutenberg#24828

Props nosolosw, desrosj, SergeyBiryukov, youknowriad.
Merges [48884] to the 5.5 branch.
Fixes: #51151.
Built from https://develop.svn.wordpress.org/branches/5.5@48885


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 18:00:38 +00:00
Sergey Biryukov
5b5de79ffd REST API: Fix multi-type schemas with integer fields.
In [48306] support for multi-typed schemas was improved to first detect the data type of the value before applying further validation. The `integer` data type was detected using the new `rest_is_integer` function. This function used logic, however, that assumed that the value had already passed an `is_numeric` check. This meant that if `integer` and `string` were both acceptable types, the value would always be considered an `integer` causing the later accurate type validation to fail.

This commit fixes the `rest_is_integer` logic to include an `is_numeric` check.

Props rtagliento, TimothyBlynJacobs.
Merges [48881] to the 5.5 branch.
Fixes #51146.
Built from https://develop.svn.wordpress.org/branches/5.5@48883


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 14:45:05 +00:00
Sergey Biryukov
522904bde6 Taxonomy: Make sure wp_terms_checklist() and Walker_Category_Checklist::start_el() properly handle an array of strings as selected_cats or popular_cats values.
Even with these values documented as an array of integers, they can technically also accept an array of strings, e.g. as form results.

Add a unit test.

Props brianhogg, TimothyBlynJacobs, SergeyBiryukov.
Merges [48880] to the 5.5 branch.
Fixes #51137.
Built from https://develop.svn.wordpress.org/branches/5.5@48882


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 03:08:03 +00:00
Sergey Biryukov
8e1d2765d0 Tests: Update one more test to account for lazy-loading being disabled for custom logos by default.
Follow-up to [48870], [48874].

Props desrosj.
Merges [48878] to the 5.5 branch.
See #50933.
Built from https://develop.svn.wordpress.org/branches/5.5@48879


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48641 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 02:05:04 +00:00
Sergey Biryukov
466316ef95 Comments: Correct the check for reply element existence in comment-reply.js.
`document.getElementById()` returns `null` if no matching element was found, so the previous comparison didn't work as expected.

Follow-up to [47506].

Props mailnew2ster, sarahricker.
Merges [48876] to the 5.5 branch.
Fixes #38009.
Built from https://develop.svn.wordpress.org/branches/5.5@48877


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 02:01:04 +00:00
Sergey Biryukov
9135fd39a6 Tests: Update unit tests to account for lazy-loading being disabled for custom logos by default.
Follow-up to [48870].

Merges [48874] to the 5.5 branch.
See #50933.
Built from https://develop.svn.wordpress.org/branches/5.5@48875


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48637 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 01:58:04 +00:00
Peter Wilson
b0038c85f1 Sitemaps: Prevent incorrect redirection of paged sitemap requests.
Update `redirect_canonical()` to account for custom pagination and URL format used by sitemaps in order to follow standard practices.

Introduce the function `get_sitemap_url()` to simplify getting the index and provider URLs as needed.

Props jonathanstegall, pbiron, GamerZ, salvoaranzulla, peterwilsoncc.
Merges [48872] to the 5.5 branch.
Fixes #50910.


Built from https://develop.svn.wordpress.org/branches/5.5@48873


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48635 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 01:37:03 +00:00
desrosj
7c2369f292 Media: Disable lazy-loading for custom logos by default.
Custom site logos are most commonly displayed above the fold, so lazy-loading is unnecessary.

Props demetris, khag7, johnbillion, rebasaurus, audrasjb.
Merges [48870] to the 5.5 branch.
Fixes #50933.
Built from https://develop.svn.wordpress.org/branches/5.5@48871


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-27 01:10:07 +00:00
Sergey Biryukov
97bbea6001 Upgrade/Install: Make the check for empty home option in __get_option() more resilient.
This addresses a regression in [47808], where the `home` check expected an empty string to use `siteurl` as a fallback, but `wpdb::get_var()` returns `null` if the option is empty.

Props fjarrett.
Merges [48868] to the 5.5 branch.
Fixes #51011.
Built from https://develop.svn.wordpress.org/branches/5.5@48869


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-26 17:07:09 +00:00
Sergey Biryukov
559fcbdfed Quick/Bulk Edit: Revert [48134] to address the bottom "Bulk actions" dropdown not functioning properly on Posts and Users list tables.
A better solution for the original issue will be explored in a future release.

Props audrasjb, garrett-eclipse, webzunft, Krstarica, chunkysteveo, SergeyBiryukov.
Merges [48866] to the 5.5 branch.
Fixes #50882, #50998. See #46872.
Built from https://develop.svn.wordpress.org/branches/5.5@48867


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-26 14:21:04 +00:00
Sergey Biryukov
0ef27cd212 Editor: Remove some hardcoded text color values from patterns that have body text with no specific background color.
This ensures that the patterns respect the theme's default color for body text and avoids contrast issues, particularly in dark themes.

Props nrqsnchz, mapk, fullofcaffeine.
Merges [48864] to the 5.5 branch.
Fixes #50892.
Built from https://develop.svn.wordpress.org/branches/5.5@48865


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48627 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-26 13:36:04 +00:00
Sergey Biryukov
202f167106 Administration: Remove non-color related styling from Modern color scheme.
Color schemes should only affect colors, to avoid diverging from a consistent and predictable layout, especially if core CSS rules subsequently change.

Follow-up to [48277], [48286], [48345].

Props Joen, johnbillion, afercia, johnjamesjacoby.
Merges [48862] to the 5.5 branch.
Fixes #51127. See #50504.
Built from https://develop.svn.wordpress.org/branches/5.5@48863


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-26 13:21:03 +00:00
Sergey Biryukov
b923eed063 Editor: Make some hardcoded strings in block patterns translatable.
Follow-up to [48726].

Props justinahinon, audrasjb, nabilmoqbel, tobifjellner, yoavf, ramiy.
Merges [48859] to the 5.5 branch.
Fixes #50845.
Built from https://develop.svn.wordpress.org/branches/5.5@48860


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-25 12:42:09 +00:00
Sergey Biryukov
c3e02f4262 Bootstrap/Load: Add local environment type to wp_get_environment_type().
This gives developers a better control over their existing development workflow and ensures that `local` is not the exact same as `development` if it does not need to be.

Props claytoncollie, johnbillion, jeremyfelt, kreppar, dushakov, TimothyBlynJacobs, Ipstenu, khag7, knutsp, Clorith, markjaquith, joostdevalk, SergeyBiryukov.
Merges [48856] to the 5.5 branch.
Fixes #51064.
Built from https://develop.svn.wordpress.org/branches/5.5@48857


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-24 22:34:03 +00:00
Sergey Biryukov
3f25fa66be Docs: Add documentation and a @since note about the loading attribute added to wp_get_attachment_image().
Follow-up to [48272].

Props audrasjb.
Merges [48852] and [48853] to the 5.5 branch.
Fixes #51122.
Built from https://develop.svn.wordpress.org/branches/5.5@48854


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48616 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-24 22:14:03 +00:00
Sergey Biryukov
be19de843c Administration: Don't print the .php-error class in the admin header for PHP notices in wp-config.php.
Any notices in that file happen before `WP_DEBUG` takes effect, and should not be displayed with the `error_reporting` level previously set in `wp-load.php`.

Adding the class when there is no notice displayed results in extra padding under the admin bar, which should be avoided.

Follow-up to [20102], [21025], [26620], [47745].

Props akissz, tw2113, laxman-prajapati, sabernhardt, johnbillion, SergeyBiryukov.
Merges [48850] to the 5.5 branch.
Fixes #51073.
Built from https://develop.svn.wordpress.org/branches/5.5@48851


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-24 10:50:05 +00:00
Sergey Biryukov
fa9d78cc8c REST API: In WP_REST_Block_Directory_Controller::get_items(), make sure the blocks data for a plugin is not empty before proceeding.
This avoids a PHP notice if the API returns a plugin with empty data for `blocks` key.

Props khag7, TwentyZeroTwo, justinahinon, TimothyBlynJacobs, dd32, SergeyBiryukov.
Merges [48842] to the 5.5 branch.
Fixes #51018.
Built from https://develop.svn.wordpress.org/branches/5.5@48849


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-24 10:35:07 +00:00
Sergey Biryukov
aed2402ea9 Docs: Update documentation for get_custom_logo() and the_custom_logo() to mention the unlink-homepage-logo theme feature.
Follow-up to [48039], [48283], [48749], [48757], [48758].

Props sabernhardt.
Merges [48832] to the 5.5 branch.
Fixes #51075.
Built from https://develop.svn.wordpress.org/branches/5.5@48833


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-20 10:43:05 +00:00
Sergey Biryukov
4604f4766d Docs: Add a @since note to register_rest_route() about the _doing_it_wrong() notice when the required permission_callback argument is not set.
Follow-up to [48526].

Props psykro.
Merges [48827] to the 5.5 branch.
Fixes #51060.
Built from https://develop.svn.wordpress.org/branches/5.5@48828


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-19 12:33:05 +00:00
Sergey Biryukov
5ddabef439 Plugins: Avoid a PHP notice if the update-supported key in plugin data is not set.
Props sanzeeb3.
Merges [48820] to the 5.5 branch.
Fixes #51052.
Built from https://develop.svn.wordpress.org/branches/5.5@48821


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-18 20:40:04 +00:00
Sergey Biryukov
ea3c57f303 Formatting: Make the check for empty text in wp_trim_excerpt() more resilient.
This addresses a regression in [47808], which caused excerpts to be generated from post content if an empty string is passed, but not for other values considered empty, e.g. `null` or `false`.

Props riaanlom, laxman-prajapati, SergeyBiryukov.
Merges [48817] to the 5.5 branch.
Fixes #51042.
Built from https://develop.svn.wordpress.org/branches/5.5@48819


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-18 19:37:06 +00:00
Sergey Biryukov
65a1d15089 Docs: Add a @since note to get_the_archive_title() about the title part being wrapped in a <span> element.
Follow-up to [48294].

Props justinahinon, audrasjb.
Merges [48814] to the 5.5 branch.
Fixes #51050.
Built from https://develop.svn.wordpress.org/branches/5.5@48815


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48577 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-18 12:07:05 +00:00
Sergey Biryukov
62a5dbff7b Help/About: Revert [48811] from the 5.5 branch for now, to avoid displaying untranslated strings on the About page.
This should be merged back when 5.5.1 is about to be released.

See #51028.
Built from https://develop.svn.wordpress.org/branches/5.5@48813


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-18 03:02:08 +00:00
Sergey Biryukov
b2e4cc384d Help/About: Fix typo and remove trailing spaces from some strings.
Props mukesh27, casiepa, davidbaumwald.
Merges [48809] to the 5.5 branch.
Fixes #51028.
Built from https://develop.svn.wordpress.org/branches/5.5@48811


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-17 10:59:06 +00:00
Sergey Biryukov
f6dfc217e7 Site Health: Ensure that the tests returned by WP_Site_Health::get_tests() always have the required array keys: direct and async.
This avoids PHP notices if these keys were accidentally removed using the `site_status_tests` filter.

Props khag7, Ov3rfly, desrosj, Clorith.
Merges [48808] to the 5.5 branch.
Fixes #50858.
Built from https://develop.svn.wordpress.org/branches/5.5@48810


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-17 02:23:06 +00:00
Sergey Biryukov
2867dadfa7 REST API: Add uniqueItems as a permitted endpoint argument JSON Schema keyword.
Support for the `uniqueItems` keyword was added in [48357], but wasn't included in the list of permitted keywords for `WP_REST_Controller::get_endpoint_args_for_item_schema()`. This prevented the keyword from being automatically supported if specified in a controller's item schema.

Props TimothyBlynJacobs.
Merges [48796] to the 5.5 branch.
Fixes #51021.
Built from https://develop.svn.wordpress.org/branches/5.5@48807


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48569 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-17 01:42:05 +00:00
Sergey Biryukov
260dd52af5 Site Health: Only display the warning about the post_max_size PHP value when it's lower than upload_max_filesize.
Previously, the warning was displayed even if the value was higher than `upload_max_filesize`, which made the report inaccurate, as these values don't necessarily have to match.

Props oakesjosh, jeroenrotty, desrosj, Clorith.
Merges [48800] and [48801] to the 5.5 branch.
Fixes #50945.
Built from https://develop.svn.wordpress.org/branches/5.5@48806


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48568 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-17 01:29:03 +00:00
Sergey Biryukov
f86e37faae Site Health: Add site environment type to the debug information.
Follow-up to [47919], [48188], [48372].

Props joostdevalk, Clorith.
Merges [48802] to the 5.5 branch.
Fixes #50887.
Built from https://develop.svn.wordpress.org/branches/5.5@48805


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48567 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-17 01:25:04 +00:00
Sergey Biryukov
3557ce0af2 Site Health: Recognize define( 'WP_AUTO_UPDATE_CORE', 'minor' ) as an acceptable value.
Previously, it was only incidentally recognized as valid due to a loose comparison with `true`.

With the strict comparison added to `WP_Site_Health_Auto_Updates::test_constants()`, this was no longer the case.

Follow-up to [47841].

Props sterndata, mukesh27, avixansa, desrosj, SergeyBiryukov.
Merges [48792] to the 5.5 branch.
Fixes #50912.
Built from https://develop.svn.wordpress.org/branches/5.5@48804


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-17 01:04:04 +00:00
Sergey Biryukov
38da35836a Filesystem API: Use correct variable when closing the file handle in WP_Filesystem_FTPext::get_contents().
Props gothick@gothick.org.uk.
Merges [48797] to the 5.5 branch.
Fixes #51029.
Built from https://develop.svn.wordpress.org/branches/5.5@48803


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-17 00:57:07 +00:00
Sergey Biryukov
6c78faf991 Post WordPress 5.5 version bump.
Built from https://develop.svn.wordpress.org/branches/5.5@48787


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-11 19:35:06 +00:00
whyisjake
e9cf4f9c48 WordPress 5.5
Built from https://develop.svn.wordpress.org/branches/5.5@48785


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-11 18:14:05 +00:00
desrosj
abd91fb7c9 Help/About: Final adjustments to the 5.5 About page.
- Final CDN asset URLs.
- Some minor color adjustments.

Props ryelle, marybaum, davidbaumwald, audrasjb, estelaris, afercia, cbringmann, andreamiddleton, desrosj, SergeyBiryukov, ocean90, nrqsnchz, spacedmonkey, whyisjake, man4toman.
Merges [48783] to the 5.5 branch.
Fixes #50416.
Built from https://develop.svn.wordpress.org/branches/5.5@48784


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-11 16:57:06 +00:00
whyisjake
c5dca80b90 Post WordPress 5.5 RC 3 version bump.
Built from https://develop.svn.wordpress.org/branches/5.5@48781


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-10 16:55:03 +00:00
whyisjake
9c1800d57b WordPress 5.5 RC 3.
Built from https://develop.svn.wordpress.org/branches/5.5@48780


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-10 16:33:04 +00:00
Sergey Biryukov
5028fdb02b Options, Meta APIs: Update the docs around default metadata values.
Add a missing @since value for 5.5 and potential default filter names.

Props johnbillion.
Reviewed by whyisjake, SergeyBiryukov.
Merges [48777] and [48778] to the 5.5 branch.
Fixes #50891.
Built from https://develop.svn.wordpress.org/branches/5.5@48779


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-10 15:53:05 +00:00
desrosj
f2656febbf Bundled Themes: Bump theme versions ahead of WordPress 5.5.
The following theme versions will be released in coordination with WordPress 5.5:
- Twenty Ten: 3.1
- Twenty Eleven: 3.5
- Twenty Twelve: 3.2
- Twenty Thirteen: 3.1
- Twenty Fourteen: 2.9
- Twenty Fifteen: 2.7
- Twenty Sixteen: 2.2
- Twenty Seventeen: 2.4
- Twenty Nineteen: 1.7
- Twenty Twenty: 1.5

Props whyisjake, desrosj.
Reviewed by whyisjake, SergeyBiryukov, desrosj.
Merges [48775] to the 5.5 branch.
Fixes #50889.
Built from https://develop.svn.wordpress.org/branches/5.5@48776


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-10 15:37:02 +00:00
Sergey Biryukov
fa8f759dc2 Editor: update packages.
Props ellatrix.
Reviewed by whyisjake, SergeyBiryukov.
Merges [48772] to the 5.5 branch.
Fixes #50888.
Built from https://develop.svn.wordpress.org/branches/5.5@48773


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-10 14:22:29 +00:00
Sergey Biryukov
d5c3cd0293 I18N: Fix typo in a screen reader text string on the About page.
Follow-up to [48729].

Props pedromendonca.
Reviewed by desrosj, SergeyBiryukov.
Merges [48770] to the 5.5 branch.
Fixes #50884.
Built from https://develop.svn.wordpress.org/branches/5.5@48771


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-10 13:25:05 +00:00
Sergey Biryukov
d5b78890ed I18N: Fix typo in a string in rest_validate_value_from_schema().
Props pedromendonca.
Reviewed by TimothyBlynJacobs, SergeyBiryukov.
Merges [48767] to the 5.5 branch.
Fixes #50879.
Built from https://develop.svn.wordpress.org/branches/5.5@48768


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48530 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-09 02:02:02 +00:00
Sergey Biryukov
8e47fe0608 Help/About: Update videos and their descriptions on the About page.
Follow-up to [48675], [48686], [48721], [48729], [48730], [48736].

Props ryelle, marybaum, estelaris, desrosj, joen, afercia.
Reviewed by jorbin, SergeyBiryukov.
Merges [48761] to the 5.5 branch.
See #50416.
Built from https://develop.svn.wordpress.org/branches/5.5@48763


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48525 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-08 21:02:06 +00:00
whyisjake
e7f689b9a8 Themes: Add unlink-homepage-logo to the create_initial_theme_features() registration for the custom-logo theme feature.
Follow-up to [48039], [48283], [48749], [48757], [48758].

This brings the changes to the 5.5 branch.

Props TimothyBlynJacobs, SergeyBiryukov, whyisjake.
Fixes #37011.

Built from https://develop.svn.wordpress.org/branches/5.5@48759


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-07 21:22:05 +00:00
whyisjake
931826a203 Docs: Correct usage of the dynamic auto_update_{$type} filter.
This ensures that the canonical name of the filter is used in Site Health debug data, as well as on plugin and theme screens, so the developer reference site remains correct.

This brings the changes from [48750] to the 5.5 branch.

Props johnbillion.
Fixes #50868, see [48750].

Built from https://develop.svn.wordpress.org/branches/5.5@48756


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-07 19:25:02 +00:00
whyisjake
2460e1b0c8 Accessibility: Themes: Only unlink custom logo on the home page if the theme declares support for that.
To accommodate for the change, the custom-logo theme feature now accepts the unlink-homepage-logo parameter.

If and when the logo is linked on the home page, the link has the aria-current attribute for better accessibility.

Follow-up to [48039], [48283], see [48749].

This brings the changes to the 5.5 branch.

Props sabernhardt, audrasjb, johnstonphilip, demetris, SergeyBiryukov.
Fixes #37011.

Built from https://develop.svn.wordpress.org/branches/5.5@48755


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-07 19:20:07 +00:00
Sergey Biryukov
52b59a5f07 Comments: Update comment cache in the upgrade routine for changing the comment_type DB field value in comments table.
This ensures that comment object cache is cleared after changing the comment type to `comment` instead of an empty string.

Add a unit test for `_wp_batch_update_comment_type()`.

Follow-up to [47597], [47626], [48225], [48227].

Props imath, westonruter.
Reviewed by desrosj, SergeyBiryukov.
Merges [48748] and [48751] to the 5.5 branch.
Fixes #49236.
Built from https://develop.svn.wordpress.org/branches/5.5@48752


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48514 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-07 16:35:08 +00:00
desrosj
719ef3461b Site Health: Consistently pass an object to the auto_update_{$type} filter in Site Health debug data.
Previously, some instances of the filter received an array from a plugin or theme update response, potentially triggering PHP notices.

Merges [48745] to the 5.5 branch.
Reviewed by desrosj, SergeyBiryukov.
Props bpayton, pbiron.
Fixes #50852.
Built from https://develop.svn.wordpress.org/branches/5.5@48747


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-07 13:51:02 +00:00
desrosj
081d50e68f Site Health: Check if session_status() exists before calling it.
Merges [48742] to the 5.5 branch.
Reviewed by desrosj, SergeyBiryukov.
Props bgermann.
Fixes #50862.
Built from https://develop.svn.wordpress.org/branches/5.5@48746


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-07 13:43:05 +00:00
desrosj
96a9d51e11 General: Add svn:mergeinfo missed in [48733].
Finishes merging [48729-48730] to the 5.5 branch.
See #50416.
Built from https://develop.svn.wordpress.org/branches/5.5@48740


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 19:46:04 +00:00
whyisjake
dc9e56955d WordPress 5.5 RC 2 post-release version bump.
Built from https://develop.svn.wordpress.org/branches/5.5@48739


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 19:18:04 +00:00
whyisjake
80f9c9b8ab WordPress 5.5 RC 2.
Built from https://develop.svn.wordpress.org/branches/5.5@48738


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48500 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 18:57:02 +00:00
Sergey Biryukov
8f16fd5be2 Help/About: Correct header spacing on shorter screens after removing the musician name.
Remove some unnecessary CSS.

Follow-up to [48730].

Props ryelle.
Reviewed by whyisjake, SergeyBiryukov.
Merges [48736] to the 5.5 branch.
See #50416.
Built from https://develop.svn.wordpress.org/branches/5.5@48737


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 18:13:05 +00:00
Sergey Biryukov
79e668950f Plugins: Move the "Successfully installed the plugin" string to the correct Plugin_Upgrader method.
The string refers to the installation, and belongs in the `::install_strings()` method, not in `::upgrade_strings()`.

Props sswebster, nateinaction.
Reviewed by whyisjake, SergeyBiryukov.
Merges [48734] to the 5.5 branch.
Fixes #50837.
Built from https://develop.svn.wordpress.org/branches/5.5@48735


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48497 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 18:04:05 +00:00
desrosj
b21d6c49ff Help/About: String updates and accessibility improvements to the 5.5 About page.
Merges [48729-48730] to the 5.5 branch.
Props audrasjb, SergeyBiryukov.
See #50416.
Built from https://develop.svn.wordpress.org/branches/5.5@48733


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 17:44:06 +00:00
whyisjake
d4dcfc37f6 Site Health: Display auto-update properly for plugins that don't support auto-updates.
Properly filter auto_update_plugin when displaying the table.

This brings the changes from [48731] to the 5.5 branch.

Fixes #50822.
Props Gwendydd, pbiron, audrasjb, SergeyBiryukov, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.5@48732


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 17:39:06 +00:00
Sergey Biryukov
4710457463 Editor: Update JS packages.
Props ellatrix.
Reviewed by youknowriad, SergeyBiryukov.
Merges [48725] to the 5.5 branch.
Fixes #50844.
Built from https://develop.svn.wordpress.org/branches/5.5@48728


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48490 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 17:06:24 +00:00
Sergey Biryukov
12d6a09ff5 Editor: Make some hardcoded strings in block patterns translatable.
Props ocean90.
Reviewed by youknowriad, SergeyBiryukov.
Merges [48726] to the 5.5 branch.
Fixes #50842.
Built from https://develop.svn.wordpress.org/branches/5.5@48727


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48489 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 17:04:05 +00:00
whyisjake
afbbb3baa5 Help/About: String update for 5.5 release.
We don't use hyphens for the [block editor](https://make.wordpress.org/core/handbook/best-practices/spelling/).

See #50416.
Props davidbaumwald, marybaum, desrosj.

Built from https://develop.svn.wordpress.org/branches/5.5@48723


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48485 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 15:59:10 +00:00
desrosj
067856838b Editor: update JS packages.
Merges [48719] to the 5.5 branch.
Fixes #50841.
Built from https://develop.svn.wordpress.org/branches/5.5@48720


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48482 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 14:04:32 +00:00
Andrea Fercia
bfc7b4f50b Accessibility: Administration: Address backward compatibility concerns for the sortable postboxes areas after [48340].
Merges [48717] to the 5.5 branch.
Fixes #49288 for 5.5.

Built from https://develop.svn.wordpress.org/branches/5.5@48718


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-04 13:30:06 +00:00
Sergey Biryukov
08a594aaae HTTP: Update the Root Certificate bundle.
Keep 1024-bit legacy root certificates re-added in [35919], except for those already expired, for compatibility with older OpenSSL versions.

Props barry, ayeshrajans, desrosj, whyisjake.
Reviewed by whyisjake, SergeyBiryukov.
Merges [48707] to the 5.5 branch.
See #50828.
Built from https://develop.svn.wordpress.org/branches/5.5@48708


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-08-01 14:13:03 +00:00
Aaron Jorbin
e4188db213 Build/Test Tools: Update grunt-patch-wordpress for 5.5
Trunk's update happened in [50829]

Seconded by whyisjake and SergeyBiryukov.
Fixes #50829.


Built from https://develop.svn.wordpress.org/branches/5.5@48706


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-31 19:22:23 +00:00
whyisjake
e3e4523695 Upgrade/Install: Ensure the proper count of plugins that have auto-update enabled.
As certain plugins may not support updates, this count needs to accurately reflect that in the navbar.

This brings the changes from [48703] to the WordPress 5.5 branch.

Fixes 50808.
Props knutsp, audrasjb, pbiron, dd32, apedog, afragen, chriscct7, garyc40, whyisjake, SergeyBiryukov.

Built from https://develop.svn.wordpress.org/branches/5.5@48704


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48466 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-31 17:24:03 +00:00
whyisjake
fc4dd704c2 Upgrade/Install: Allow for WordPress.org to remotely disable auto-updates for plugins/themes
As auto-updates are rolled out across WordPress.org, the API response can modulate the response, ensuring that a rolled out could be stalled or staggered if needed for security or performance reasons.

This brings the changes from [48701] to the 5.5 branch.

Fixes #50824.
Props dd32, whyisjake, SergeyBiryukov.

Built from https://develop.svn.wordpress.org/branches/5.5@48702


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-31 17:05:04 +00:00
whyisjake
fd27e2560b Upgrade/Install: Only show auto-update for themes that support the feature.
Similar to the changes for plugins in [48669], let's only show the UI for themes when updates are supported for that theme.

This brings the changes from [48688] to the 5.5 branch.

See #50280.
Props dd32.

Built from https://develop.svn.wordpress.org/branches/5.5@48698


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48460 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-30 22:04:05 +00:00
whyisjake
bb983b936c Upgrade/Install: Pass the plugin file path into the plugin_auto_update_debug_string filter.
Adds better tooling for when user specific plugins can be updated, but platform specific ones cannot.

This brings [48696] to the 5.5 branch.

Fixes #50821.

Props bpayton, pbiron, audrasjb, SergeyBiryukov, whyisjake.

Built from https://develop.svn.wordpress.org/branches/5.5@48697


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48459 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-30 21:52:07 +00:00
Sergey Biryukov
5ca7f64672 Help/About: Adjust two strings on the About page for better i18n.
Follow-up to [48675].

Props ocean90, audrasjb, kittmedia, nao.
Reviewed by desrosj, SergeyBiryukov.
Merges [48686] to the 5.5 branch.
See #50416.
Built from https://develop.svn.wordpress.org/branches/5.5@48691


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-30 12:15:04 +00:00
Sergey Biryukov
f6b9ae8a6f Themes: Pass correct variable to is_php_version_compatible() in wp_theme_update_row().
This applies to the Themes screen in Multisite network admin.

Follow-up to [48660].

Props pbiron, afragen.
Reviewed by peterwilsoncc, SergeyBiryukov.
Merges [48689] to the 5.5 branch.
Fixes #48507. See #48491.
Built from https://develop.svn.wordpress.org/branches/5.5@48690


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48452 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-30 11:46:05 +00:00
Sergey Biryukov
9e23c609e9 Upgrade/Install: Pass correct argument to clear_destination in Theme_Upgrader::install().
Follow-up to [48390].

Props afragen, sabernhardt.
Reviewed by desrosj, SergeyBiryukov.
Merges [48685] to the 5.5 branch.
Fixes #9757.
Built from https://develop.svn.wordpress.org/branches/5.5@48687


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-29 15:21:06 +00:00
Sergey Biryukov
807aa76d7e Branch 5.5
Built from https://develop.svn.wordpress.org/branches/5.5@48682


git-svn-id: http://core.svn.wordpress.org/branches/5.5@48444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-07-28 20:53:09 +00:00
450 changed files with 59241 additions and 56471 deletions

View File

@@ -61,35 +61,312 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="about__section has-subtle-background-color">
<div class="column">
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.5.13'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.13' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.5.12'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.12' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.5.11'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.11' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.5.10'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.10' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed one security issue.' ),
'5.5.9'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.9' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.5.8'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.7' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed one security issue.' ),
'5.5.8'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.7' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.5.6'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.6' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed one security issue.' ),
'5.5.5'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.5' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'5.5.4'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.4' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
1
),
'5.5.3',
number_format_i18n( 1 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.3' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: plural number of bugs. More than one security issue. */
_n(
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
'<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
14
),
'5.5.2',
number_format_i18n( 14 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.2' )
)
);
?>
</p>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
44
),
'5.5.1',
number_format_i18n( 44 )
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '5.5.1' )
)
);
?>
</p>
</div>
</div>
<hr />
<div class="about__section has-1-column">
<div class="column">
<h2><?php _e( 'Speed' ); ?></h2>
<p><strong><?php _e( 'Posts and pages feel faster, thanks to lazy-loaded images.' ); ?></strong></p>
<p><?php _e( 'Images give your story a lot of impact, but they can sometimes make your site seem slow.' ); ?></p>
<p><?php _e( 'In WordPress 5.5, images wait to load until theyre just about to scroll into view. The technical term is lazy loading.' ); ?></p>
<p><?php _e( 'In WordPress 5.5, images wait to load until theyre just about to scroll into view. The technical term is lazy loading.' ); ?></p>
<p><?php _e( 'On mobile, lazy loading can also keep browsers from loading files meant for other devices. That can save your readers money on data — and help preserve battery life.' ); ?></p>
</div>
<div class="column is-edge-to-edge" style="background-color:skyblue;">
</div>
</div>
<hr class="is-small" />
<div class="about__section has-2-columns is-wider-right">
<div class="column is-edge-to-edge" style="background-color:skyblue;">
</div>
<div class="about__section has-1-column">
<div class="column">
<h2><?php _e( 'Search' ); ?></h2>
<h2><?php _ex( 'Search', 'sitemap' ); ?></h2>
<p><strong><?php _e( 'Say hello to your new sitemap.' ); ?></strong></p>
<p><?php _e( 'WordPress sites work well with search engines. ' ); ?></p>
<p><?php _e( 'WordPress sites work well with search engines.' ); ?></p>
<p><?php _e( 'Now, by default, WordPress 5.5 includes an XML sitemap that helps search engines discover your most important pages from the very minute you go live.' ); ?></p>
<p><?php _e( 'So more people will find your site sooner, giving you more time to engage, retain and convert them to subscribers, customers or whatever fits your definition of success.' ); ?></p>
</div>
</div>
<hr class="is-small" />
<hr />
<div class="about__section has-2-columns is-wider-left">
<div class="about__section has-2-columns has-accent-background-color is-wider-right">
<div class="column">
<h2><?php _e( 'Security' ); ?></h2>
<p><strong><?php _e( 'Auto-updates for Plugins and Themes' ); ?></strong></p>
@@ -98,48 +375,67 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<p><strong><?php _e( 'Update by uploading ZIP files' ); ?></strong></p>
<p><?php _e( 'If updating plugins and themes manually is your thing, now thats easier too — just upload a ZIP file.' ); ?></p>
</div>
<div class="column is-edge-to-edge" style="background-color:skyblue;">
<div class="column about__image is-vertically-aligned-center">
<figure aria-labelledby="about-security" class="about__image">
<video controls poster="https://s.w.org/images/core/5.5/auto-updates-poster.png">
<source src="https://s.w.org/images/core/5.5/auto-updates.mp4" type="video/mp4" />
<source src="https://s.w.org/images/core/5.5/auto-updates.webm" type="video/webm" />
</video>
<figcaption id="about-security" class="screen-reader-text"><?php _e( 'Video: Installed plugin screen, which shows a new column, Automatic Updates. In this column are buttons that say "Enable auto-updates". When clicked, the auto-updates feature is turned on for that plugin, and the button switches to say "Disable auto-updates".' ); ?></figcaption>
</figure>
</div>
</div>
<hr />
<div class="about__section">
<div class="column is-edge-to-edge" style="height:200px;background-color:skyblue;">
</div>
<div class="about__section has-subtle-background-color">
<div class="column">
<h2><?php _e( 'Highlights from the block editor' ); ?></h2>
<p><?php _e( 'Once again, the latest WordPress release packs a long list of exciting new features for the block editor. For example:' ); ?></p>
</div>
</div>
<div class="about__section has-2-columns">
<div class="column">
<h3><?php _e( 'Inline image editing' ); ?></h3>
<p><?php _e( 'Crop, rotate, and zoom your photos right from the image block. If you spend a lot of time on images, this could save you hours!' ); ?></p>
<h3><?php _e( 'Block patterns' ); ?></h3>
<p><?php _e( 'New block patterns make it simple and fun to create complex, beautiful layouts, using combinations of text and media that you can mix and match to fit your story.' ); ?></p>
<p><?php _e( 'You will also find block patterns in a wide variety of plugins and themes, with more added all the time. Pick any of them from a single dropdown — just click and go!' ); ?></p>
<div class="about__section has-2-columns has-subtle-background-color">
<div class="column about__image is-vertically-aligned-center">
<figure aria-labelledby="about-block-pattern" class="about__image">
<video controls poster="https://s.w.org/images/core/5.5/block-patterns-poster.png">
<source src="https://s.w.org/images/core/5.5/block-patterns.mp4" type="video/mp4" />
<source src="https://s.w.org/images/core/5.5/block-patterns.webm" type="video/webm" />
</video>
<figcaption id="about-block-pattern" class="screen-reader-text"><?php _e( 'Video: In the editor, the block inserter shows two tabs, Blocks and Patterns. The Patterns tab is selected. There are different block layouts in this tab. After scrolling through options including buttons and columns, a pattern called "Large header with a heading" is chosen. This adds a cover block, which is customized with a photo and the name of the WordPress 5.5 jazz musician.' ); ?></figcaption>
</figure>
<hr />
<figure aria-labelledby="about-image-editor" class="about__image">
<video controls poster="https://s.w.org/images/core/5.5/inline-image-editing-poster.png">
<source src="https://s.w.org/images/core/5.5/inline-image-editing.mp4" type="video/mp4" />
<source src="https://s.w.org/images/core/5.5/inline-image-editing-1.webm" type="video/webm" />
</video>
<figcaption id="about-image-editor" class="screen-reader-text"><?php _e( 'Video: An image is added with an image block. In the block toolbar, an icon called "Crop" is selected, which changes the toolbar to show image resizing tools. First, zoom is used to zoom into the center of the image. Next, aspect ratio is clicked. This shows a dropdown of common aspect ratios. Square is chosen, and the image is moved within the new square outline. The crop is completed by clicking "Apply."' ); ?></figcaption>
</figure>
</div>
<div class="column">
<h3><?php _e( 'Block patterns' ); ?></h3>
<p><?php _e( 'New block patterns make it simple and fun to create complex, beautiful layouts, using combinations of text and media that you can mix and match to fit your story.' ); ?></p>
<p><?php _e( 'You will also find block patterns in a wide variety of plugins and themes, with more added all the time. Pick any of them from a single place — just click and go!' ); ?></p>
<h3><?php _e( 'Inline image editing' ); ?></h3>
<p><?php _e( 'Crop, rotate, and zoom your photos right from the image block. If you spend a lot of time on images, this could save you hours!' ); ?></p>
<h3><?php _e( 'The New Block Directory' ); ?></h3>
<p><?php _e( 'Now its easier than ever to find the block you need. The new block directory is built right into the block editor, so you can install new block types to your site without ever leaving the editor.' ); ?></p>
<h3><?php _e( 'And so much more.' ); ?></h3>
<p><?php _e( 'The highlights above are a tiny fraction of the new block-editor features youve just installed. Open the block editor and enjoy!' ); ?></p>
<p><?php _e( 'The highlights above are a tiny fraction of the new block editor features youve just installed. Open the block editor and enjoy!' ); ?></p>
</div>
</div>
<hr />
<div class="about__section has-2-columns">
<div class="about__section has-1-column">
<div class="column">
<h2><?php _e( 'Accessibility' ); ?></h2>
<p><?php _e( 'Every release adds improvements to the accessible publishing experience, and that remains true for WordPress 5.5. ' ); ?></p>
<p><?php _e( 'Every release adds improvements to the accessible publishing experience, and that remains true for WordPress 5.5.' ); ?></p>
<p><?php _e( 'Now you can copy links in media screens and modal dialogs with a button, instead of trying to highlight a line of text.' ); ?></p>
<p><?php _e( 'You can also move meta boxes with the keyboard, and edit images in WordPress with your assistive device, as it can read you the instructions in the image editor.' ); ?></p>
</div>
<div class="column is-edge-to-edge" style="background-color:skyblue;">
</div>
</div>
<hr />
@@ -155,7 +451,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
</div>
<div class="column">
<h3><?php _e( 'Dashicons' ); ?></h3>
<p><?php _e( 'The Dashicons library has received its final update in 5.5. It adds 39 block-editor icons along with 26 others.' ); ?></p>
<p><?php _e( 'The Dashicons library has received its final update in 5.5. It adds 39 block editor icons along with 26 others.' ); ?></p>
</div>
</div>
@@ -211,7 +507,25 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
);
?>
</li>
<li><?php _e( 'New filters let custom post types associated with the category taxonomy have a default term beyond “Uncategorized.”' ); ?></li>
<li><?php _e( 'Custom post types associated with the category taxonomy can now opt-in to supporting the default term.' ); ?></li>
<li>
<?php
printf(
/* translators: %s: 'register_taxonomy' function name. */
__( 'Default terms can now be specified for custom taxonomies in %s.' ),
'<code>register_taxonomy()</code>'
);
?>
</li>
<li>
<?php
printf(
/* translators: %s: 'register_meta' function name. */
__( 'The REST API now officially supports specifying default metadata values through %s.' ),
'<code>register_meta()</code>'
);
?>
</li>
<li><?php _e( 'You will find updated versions of these bundled libraries: SimplePie, Twemoji, Masonry, imagesLoaded, getID3, Moment.js, and clipboard.js.' ); ?></li>
</ul>
</div>
@@ -219,12 +533,6 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<hr class="is-small" />
<div class="about__section">
</div>
<hr class="is-small" />
<div class="about__section">
<div class="column">
<h3><?php _e( 'Check the Field Guide for more!' ); ?></h3>
@@ -292,3 +600,15 @@ _n_noop(
/* translators: %s: Documentation URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' );
/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) is no longer supported, you will not receive any security updates for your website. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );
/* translators: 1: WordPress version number, 2: Link to update WordPress */
__( 'Important! Your version of WordPress (%1$s) will stop receiving security updates in the near future. To keep your site secure, please <a href="%2$s">update to the latest version of WordPress</a>.' );
/* translators: %s: The major version of WordPress for this branch. */
__( 'This is the final release of WordPress %s' );
/* translators: The localized WordPress download URL. */
__( 'https://wordpress.org/download/' );

View File

@@ -82,12 +82,12 @@ $admin_body_class = preg_replace( '/[^a-z0-9_-]+/i', '-', $hook_suffix );
?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(document).ready(func);else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
pagenow = '<?php echo $current_screen->id; ?>',
typenow = '<?php echo $current_screen->post_type; ?>',
adminpage = '<?php echo $admin_body_class; ?>',
thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
pagenow = '<?php echo esc_js( $current_screen->id ); ?>',
typenow = '<?php echo esc_js( $current_screen->post_type ); ?>',
adminpage = '<?php echo esc_js( $admin_body_class ); ?>',
thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>',
decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>',
isRtl = <?php echo (int) is_rtl(); ?>;
</script>
<?php
@@ -198,11 +198,19 @@ if ( $current_screen->is_block_editor() ) {
}
}
$error_get_last = error_get_last();
// Print a CSS class to make PHP errors visible.
if ( error_get_last() && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) ) {
if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' )
// Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect,
// and should not be displayed with the `error_reporting` level previously set in wp-load.php.
&& ( E_NOTICE !== $error_get_last['type'] || 'wp-config.php' !== wp_basename( $error_get_last['file'] ) )
) {
$admin_body_class .= ' php-error';
}
unset( $error_get_last );
?>
</head>
<?php

View File

@@ -36,14 +36,18 @@ if ( isset( $_GET['dt'] ) ) {
}
}
$comment_id = absint( $_GET['c'] );
$comment = get_comment( $comment_id );
if ( isset( $_REQUEST['c'] ) ) {
$comment_id = absint( $_REQUEST['c'] );
$comment = get_comment( $comment_id );
// Prevent actions on a comment associated with a trashed post.
if ( 'trash' === get_post_status( $comment->comment_post_ID ) ) {
wp_die(
__( 'You can&#8217;t edit this comment because the associated post is in the Trash. Please restore the post first, then try again.' )
);
// Prevent actions on a comment associated with a trashed post.
if ( $comment && 'trash' === get_post_status( $comment->comment_post_ID ) ) {
wp_die(
__( 'You can&#8217;t edit this comment because the associated post is in the Trash. Please restore the post first, then try again.' )
);
}
} else {
$comment = null;
}
switch ( $action ) {

View File

@@ -74,10 +74,6 @@ $credits = wp_credits();
<?php endif; ?>
</div>
<div class="about__image aligncenter">
<img src="data:image/svg+xml;charset=utf8,%3Csvg width='1000' height='300' viewbox='0 0 1000 300' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23F3F4F5' d='M0 0h1000v300H0z'/%3E%3Cpath style='mix-blend-mode:multiply' d='M39.6 140.22l931.1 3.36.8 76.5-929.5 6.6-2.4-86.46z' fill='%23216DD2'/%3E%3Cpath style='mix-blend-mode:multiply' d='M963.7 275.14s-.9-59.58-1-64.14c-.1-4.2-932.3 1.74-932.3 1.74L29 268.48v8.4' fill='%237FCDE6'/%3E%3Cpath style='mix-blend-mode:multiply' d='M958 73.32L47.8 70.26l1.2 78.66 907.3 4.26 1.7-79.86z' fill='%23072CF0'/%3E%3Cpath style='mix-blend-mode:multiply' d='M34 91.32l910.4-2.16L939.2 21 33.3 23.82l.7 67.5z' fill='%230188D9'/%3E%3C/svg%3E" alt="" />
</div>
</div>
<?php

View File

@@ -21,7 +21,7 @@
.about__container {
/* Section backgrounds */
--background: #f3f4f5;
--background: #fff;
--subtle-background: #f2edd4;
/* Main text color */
--text: #322d2b;
@@ -29,10 +29,10 @@
/* Accent colors: used in header, on special classes. */
--accent-1: #ebcd3d; /* Accent background */
--accent-2: #bd7331;
--accent-3: #bc5131;
--accent-3: #b04329;
/* Navigation colors. */
--nav-background: var( --subtle-background );
--nav-border: var( --accent-1 );
--nav-background: var(--subtle-background);
--nav-border: var(--accent-1);
--nav-color: var(--accent-3);
--nav-current: var(--accent-3);
}
@@ -99,7 +99,7 @@
}
.about__section {
background: #f3f4f5;
background: #fff;
background: var(--background);
clear: both;
}
@@ -109,13 +109,12 @@
background-color: var(--accent-1);
}
.about__container .has-transparent-background-color {
background-color: transparent;
}
.about__container .has-accent-color {
color: #bc5131;
color: #b04329;
color: var(--accent-3);
}
@@ -183,6 +182,12 @@
margin-top: 1rem;
}
.about__section.has-1-column {
margin-right: auto;
margin-left: auto;
max-width: 36em;
}
.about__section.has-2-columns,
.about__section.has-3-columns,
.about__section.has-4-columns {
@@ -290,6 +295,8 @@
}
@media screen and (max-width: 782px) {
.about__section.has-2-columns.is-wider-right,
.about__section.has-2-columns.is-wider-left,
.about__section.has-3-columns,
.about__section.has-4-columns {
display: block;
@@ -314,7 +321,6 @@
.about__section.has-2-columns .column:nth-of-type(n) {
padding-top: 16px;
padding-bottom: 16px;
width: 100%;
}
.about__section.has-2-columns .is-edge-to-edge {
@@ -354,7 +360,7 @@
}
.about__section a {
color: #bc5131;
color: #b04329;
color: var(--accent-3);
text-decoration: underline;
}
@@ -384,16 +390,12 @@
.about__container img {
margin: 0;
max-width: 100%;
vertical-align: middle;
}
.about__container .about__image {
display: -ms-grid;
display: grid;
align-items: center;
justify-content: center;
height: 100%;
overflow: hidden;
margin: 0;
}
.about__container .about__image img {
@@ -402,6 +404,15 @@
height: auto;
}
.about__container .about__image .wp-video {
margin-right: auto;
margin-left: auto;
}
.about__container .about__image + h3 {
margin-top: 1.5em;
}
.about__container hr {
margin: 0;
height: 32px;
@@ -438,7 +449,7 @@
/* 1.3 - Header */
.about__header {
padding-top: 10vh;
padding-top: 8em;
margin-bottom: 32px;
background-color: #ebcd3d;
background-color: var(--accent-1);
@@ -448,10 +459,13 @@
.about__header-title {
display: flex;
align-items: flex-start;
align-items: center;
justify-content: center;
height: 20vh;
max-height: 16em;
padding: 32px;
margin-bottom: 4em;
text-align: center;
padding: 10vh 32px 15vh;
}
.about__header-title p {
@@ -473,7 +487,7 @@
padding: 16px 48px;
font-size: 1.5em;
line-height: 1.4;
background: #bc5131;
background: #b04329;
background: var(--accent-3);
color: #f2edd4;
color: var(--text-light);
@@ -484,10 +498,11 @@
}
.about__header-navigation {
clear: both;
padding-top: 0;
background: #f2edd4;
background: var(--nav-background);
color: #bc5131;
color: #b04329;
color: var(--nav-color);
border-bottom: 3px solid #ebcd3d;
border-bottom: 3px solid var(--nav-border);
@@ -516,7 +531,7 @@
.about__header-navigation .nav-tab-active {
margin-bottom: -3px;
border-width: 0 0 6px;
border-color: #bc5131;
border-color: #b04329;
border-color: var(--nav-current);
}
@@ -526,7 +541,7 @@
background-color: var(--text);
color: #f2edd4;
color: var(--text-light);
border-color: #bc5131;
border-color: #b04329;
border-color: var(--nav-current);
}

File diff suppressed because one or more lines are too long

View File

@@ -20,7 +20,7 @@
.about__container {
/* Section backgrounds */
--background: #f3f4f5;
--background: #fff;
--subtle-background: #f2edd4;
/* Main text color */
--text: #322d2b;
@@ -28,10 +28,10 @@
/* Accent colors: used in header, on special classes. */
--accent-1: #ebcd3d; /* Accent background */
--accent-2: #bd7331;
--accent-3: #bc5131;
--accent-3: #b04329;
/* Navigation colors. */
--nav-background: var( --subtle-background );
--nav-border: var( --accent-1 );
--nav-background: var(--subtle-background);
--nav-border: var(--accent-1);
--nav-color: var(--accent-3);
--nav-current: var(--accent-3);
}
@@ -98,7 +98,7 @@
}
.about__section {
background: #f3f4f5;
background: #fff;
background: var(--background);
clear: both;
}
@@ -108,13 +108,12 @@
background-color: var(--accent-1);
}
.about__container .has-transparent-background-color {
background-color: transparent;
}
.about__container .has-accent-color {
color: #bc5131;
color: #b04329;
color: var(--accent-3);
}
@@ -182,6 +181,12 @@
margin-top: 1rem;
}
.about__section.has-1-column {
margin-left: auto;
margin-right: auto;
max-width: 36em;
}
.about__section.has-2-columns,
.about__section.has-3-columns,
.about__section.has-4-columns {
@@ -289,6 +294,8 @@
}
@media screen and (max-width: 782px) {
.about__section.has-2-columns.is-wider-right,
.about__section.has-2-columns.is-wider-left,
.about__section.has-3-columns,
.about__section.has-4-columns {
display: block;
@@ -313,7 +320,6 @@
.about__section.has-2-columns .column:nth-of-type(n) {
padding-top: 16px;
padding-bottom: 16px;
width: 100%;
}
.about__section.has-2-columns .is-edge-to-edge {
@@ -353,7 +359,7 @@
}
.about__section a {
color: #bc5131;
color: #b04329;
color: var(--accent-3);
text-decoration: underline;
}
@@ -383,16 +389,12 @@
.about__container img {
margin: 0;
max-width: 100%;
vertical-align: middle;
}
.about__container .about__image {
display: -ms-grid;
display: grid;
align-items: center;
justify-content: center;
height: 100%;
overflow: hidden;
margin: 0;
}
.about__container .about__image img {
@@ -401,6 +403,15 @@
height: auto;
}
.about__container .about__image .wp-video {
margin-left: auto;
margin-right: auto;
}
.about__container .about__image + h3 {
margin-top: 1.5em;
}
.about__container hr {
margin: 0;
height: 32px;
@@ -437,7 +448,7 @@
/* 1.3 - Header */
.about__header {
padding-top: 10vh;
padding-top: 8em;
margin-bottom: 32px;
background-color: #ebcd3d;
background-color: var(--accent-1);
@@ -447,10 +458,13 @@
.about__header-title {
display: flex;
align-items: flex-start;
align-items: center;
justify-content: center;
height: 20vh;
max-height: 16em;
padding: 32px;
margin-bottom: 4em;
text-align: center;
padding: 10vh 32px 15vh;
}
.about__header-title p {
@@ -472,7 +486,7 @@
padding: 16px 48px;
font-size: 1.5em;
line-height: 1.4;
background: #bc5131;
background: #b04329;
background: var(--accent-3);
color: #f2edd4;
color: var(--text-light);
@@ -483,10 +497,11 @@
}
.about__header-navigation {
clear: both;
padding-top: 0;
background: #f2edd4;
background: var(--nav-background);
color: #bc5131;
color: #b04329;
color: var(--nav-color);
border-bottom: 3px solid #ebcd3d;
border-bottom: 3px solid var(--nav-border);
@@ -515,7 +530,7 @@
.about__header-navigation .nav-tab-active {
margin-bottom: -3px;
border-width: 0 0 6px;
border-color: #bc5131;
border-color: #b04329;
border-color: var(--nav-current);
}
@@ -525,7 +540,7 @@
background-color: var(--text);
color: #f2edd4;
color: var(--text-light);
border-color: #bc5131;
border-color: #b04329;
border-color: var(--nav-current);
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #096484;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e1a948;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #096484;
border-color: #096484;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #064054;
color: #064054;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #021c25;
box-shadow: 0 0 0 1px #0c88b4;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #e1a948;
border-color: #e1a948;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #e3af55;
border-color: #dfa33b;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e1a948;
}
.wp-core-ui .button-primary:active {
background: #dd9f32;
border-color: #dd9f32;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #e1a948;
color: #fff;
border-color: #bd831f;
box-shadow: inset 0 2px 5px -3px #241906;
}
.wp-core-ui .button-group > .button.active {
border-color: #e1a948;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #52accc;
}
.wp-core-ui .wp-ui-text-primary {
color: #52accc;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #096484;
}
.wp-core-ui .wp-ui-text-highlight {
color: #096484;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #e1a948;
}
.wp-core-ui .wp-ui-text-notification {
color: #e1a948;
}
.wp-core-ui .wp-ui-text-icon {
color: #e5f8ff;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #e2ecf1;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #096484;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #096484;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e1a948;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #096484;
border-color: #096484;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #064054;
color: #064054;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #021c25;
box-shadow: 0 0 0 1px #0c88b4;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #e1a948;
border-color: #e1a948;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #e3af55;
border-color: #dfa33b;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e1a948;
}
.wp-core-ui .button-primary:active {
background: #dd9f32;
border-color: #dd9f32;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #e1a948;
color: #fff;
border-color: #bd831f;
box-shadow: inset 0 2px 5px -3px #241906;
}
.wp-core-ui .button-group > .button.active {
border-color: #e1a948;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #52accc;
}
.wp-core-ui .wp-ui-text-primary {
color: #52accc;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #096484;
}
.wp-core-ui .wp-ui-text-highlight {
color: #096484;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #e1a948;
}
.wp-core-ui .wp-ui-text-notification {
color: #e1a948;
}
.wp-core-ui .wp-ui-text-icon {
color: #e5f8ff;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #e2ecf1;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #096484;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #59524c;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #c7a589;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,71 +115,57 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #c7a589;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button-primary {
background: #c7a589;
border-color: #c7a589;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #ccad93;
border-color: #c29d7f;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
}
.wp-core-ui .button-primary:active {
background: #bf9878;
border-color: #bf9878;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #c7a589;
color: #fff;
border-color: #ae7d55;
box-shadow: inset 0 2px 5px -3px #37271a;
}
.wp-core-ui .button-group > .button.active {
border-color: #c7a589;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #59524c;
}
.wp-core-ui .wp-ui-text-primary {
color: #59524c;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #c7a589;
}
.wp-core-ui .wp-ui-text-highlight {
color: #c7a589;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #9ea476;
}
.wp-core-ui .wp-ui-text-notification {
color: #9ea476;
}
.wp-core-ui .wp-ui-text-icon {
color: #f3f2f1;
}
@@ -264,7 +244,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #cdcbc9;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -283,7 +262,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -699,4 +677,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #c7a589;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #59524c;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #c7a589;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,71 +115,57 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #c7a589;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button-primary {
background: #c7a589;
border-color: #c7a589;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #ccad93;
border-color: #c29d7f;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #c7a589;
}
.wp-core-ui .button-primary:active {
background: #bf9878;
border-color: #bf9878;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #c7a589;
color: #fff;
border-color: #ae7d55;
box-shadow: inset 0 2px 5px -3px #37271a;
}
.wp-core-ui .button-group > .button.active {
border-color: #c7a589;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #59524c;
}
.wp-core-ui .wp-ui-text-primary {
color: #59524c;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #c7a589;
}
.wp-core-ui .wp-ui-text-highlight {
color: #c7a589;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #9ea476;
}
.wp-core-ui .wp-ui-text-notification {
color: #9ea476;
}
.wp-core-ui .wp-ui-text-icon {
color: #f3f2f1;
}
@@ -264,7 +244,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #cdcbc9;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -283,7 +262,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -699,4 +677,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #c7a589;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #523f6d;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #a3b745;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #a3b745;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #a3b745;
border-color: #a3b745;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #829237;
color: #829237;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #616d29;
box-shadow: 0 0 0 1px #b6c669;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #a3b745;
border-color: #a3b745;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #a9bd4f;
border-color: #99ac41;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
}
.wp-core-ui .button-primary:active {
background: #93a43e;
border-color: #93a43e;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #a3b745;
color: #fff;
border-color: #727f30;
box-shadow: inset 0 2px 5px -3px black;
}
.wp-core-ui .button-group > .button.active {
border-color: #a3b745;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #523f6d;
}
.wp-core-ui .wp-ui-text-primary {
color: #523f6d;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #a3b745;
}
.wp-core-ui .wp-ui-text-highlight {
color: #a3b745;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #d46f15;
}
.wp-core-ui .wp-ui-text-notification {
color: #d46f15;
}
.wp-core-ui .wp-ui-text-icon {
color: #ece6f6;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #cbc5d3;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #a3b745;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #523f6d;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #a3b745;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #a3b745;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #a3b745;
border-color: #a3b745;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #829237;
color: #829237;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #616d29;
box-shadow: 0 0 0 1px #b6c669;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #a3b745;
border-color: #a3b745;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #a9bd4f;
border-color: #99ac41;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #a3b745;
}
.wp-core-ui .button-primary:active {
background: #93a43e;
border-color: #93a43e;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #a3b745;
color: #fff;
border-color: #727f30;
box-shadow: inset 0 2px 5px -3px black;
}
.wp-core-ui .button-group > .button.active {
border-color: #a3b745;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #523f6d;
}
.wp-core-ui .wp-ui-text-primary {
color: #523f6d;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #a3b745;
}
.wp-core-ui .wp-ui-text-highlight {
color: #a3b745;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #d46f15;
}
.wp-core-ui .wp-ui-text-notification {
color: #d46f15;
}
.wp-core-ui .wp-ui-text-icon {
color: #ece6f6;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #cbc5d3;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #a3b745;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #04a4cc;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #04a4cc;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #04a4cc;
border-color: #04a4cc;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #037c9a;
color: #037c9a;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #025468;
box-shadow: 0 0 0 1px #09cafa;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #04a4cc;
border-color: #04a4cc;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #04b0db;
border-color: #0498bd;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
}
.wp-core-ui .button-primary:active {
background: #0490b3;
border-color: #0490b3;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #04a4cc;
color: #fff;
border-color: #036881;
box-shadow: inset 0 2px 5px -3px black;
}
.wp-core-ui .button-group > .button.active {
border-color: #04a4cc;
}
.wp-core-ui .wp-ui-primary {
color: #333;
background-color: #e5e5e5;
}
.wp-core-ui .wp-ui-text-primary {
color: #e5e5e5;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #888;
}
.wp-core-ui .wp-ui-text-highlight {
color: #888;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #d64e07;
}
.wp-core-ui .wp-ui-text-notification {
color: #d64e07;
}
.wp-core-ui .wp-ui-text-icon {
color: #999;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #686868;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #333;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -754,4 +728,4 @@ div#wp-responsive-toggle a:before {
.theme-section.current,
.theme-filter.current {
border-bottom-color: #04a4cc;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #04a4cc;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #04a4cc;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #04a4cc;
border-color: #04a4cc;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #037c9a;
color: #037c9a;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #025468;
box-shadow: 0 0 0 1px #09cafa;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #04a4cc;
border-color: #04a4cc;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #04b0db;
border-color: #0498bd;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #04a4cc;
}
.wp-core-ui .button-primary:active {
background: #0490b3;
border-color: #0490b3;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #04a4cc;
color: #fff;
border-color: #036881;
box-shadow: inset 0 2px 5px -3px black;
}
.wp-core-ui .button-group > .button.active {
border-color: #04a4cc;
}
.wp-core-ui .wp-ui-primary {
color: #333;
background-color: #e5e5e5;
}
.wp-core-ui .wp-ui-text-primary {
color: #e5e5e5;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #888;
}
.wp-core-ui .wp-ui-text-highlight {
color: #888;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #d64e07;
}
.wp-core-ui .wp-ui-text-notification {
color: #d64e07;
}
.wp-core-ui .wp-ui-text-icon {
color: #999;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #686868;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #333;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -754,4 +728,4 @@ div#wp-responsive-toggle a:before {
.theme-section.current,
.theme-filter.current {
border-bottom-color: #04a4cc;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #e14d43;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e14d43;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #e14d43;
border-color: #e14d43;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #d02c21;
color: #d02c21;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #a4231a;
box-shadow: 0 0 0 1px #e8776f;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #e14d43;
border-color: #e14d43;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #e35950;
border-color: #df4136;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
}
.wp-core-ui .button-primary:active {
background: #dd382d;
border-color: #dd382d;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #e14d43;
color: #fff;
border-color: #ba281e;
box-shadow: inset 0 2px 5px -3px #200705;
}
.wp-core-ui .button-group > .button.active {
border-color: #e14d43;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #363b3f;
}
.wp-core-ui .wp-ui-text-primary {
color: #363b3f;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #e14d43;
}
.wp-core-ui .wp-ui-text-highlight {
color: #e14d43;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #69a8bb;
}
.wp-core-ui .wp-ui-text-notification {
color: #69a8bb;
}
.wp-core-ui .wp-ui-text-icon {
color: #f1f2f3;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #c3c4c5;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #e14d43;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #e14d43;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #e14d43;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #e14d43;
border-color: #e14d43;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #d02c21;
color: #d02c21;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #a4231a;
box-shadow: 0 0 0 1px #e8776f;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #e14d43;
border-color: #e14d43;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #e35950;
border-color: #df4136;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #e14d43;
}
.wp-core-ui .button-primary:active {
background: #dd382d;
border-color: #dd382d;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #e14d43;
color: #fff;
border-color: #ba281e;
box-shadow: inset 0 2px 5px -3px #200705;
}
.wp-core-ui .button-group > .button.active {
border-color: #e14d43;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #363b3f;
}
.wp-core-ui .wp-ui-text-primary {
color: #363b3f;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #e14d43;
}
.wp-core-ui .wp-ui-text-highlight {
color: #e14d43;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #69a8bb;
}
.wp-core-ui .wp-ui-text-notification {
color: #69a8bb;
}
.wp-core-ui .wp-ui-text-icon {
color: #f1f2f3;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #c3c4c5;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #e14d43;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #3858e9;
}
a:hover, a:active, a:focus {
color: #183ad6;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #3858e9;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #183ad6;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #183ad6;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #3858e9;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #3858e9;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #3858e9;
border-color: #3858e9;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #183ad6;
color: #183ad6;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #132ea8;
box-shadow: 0 0 0 1px #667fee;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #3858e9;
border-color: #3858e9;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #4664eb;
border-color: #2a4ce7;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #3858e9;
}
.wp-core-ui .button-primary:active {
background: #2145e6;
border-color: #2145e6;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #3858e9;
color: #fff;
border-color: #1534bf;
box-shadow: inset 0 2px 5px -3px #03081f;
}
.wp-core-ui .button-group > .button.active {
border-color: #3858e9;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #1e1e1e;
}
.wp-core-ui .wp-ui-text-primary {
color: #1e1e1e;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #3858e9;
}
.wp-core-ui .wp-ui-text-highlight {
color: #3858e9;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #3858e9;
}
.wp-core-ui .wp-ui-text-notification {
color: #3858e9;
}
.wp-core-ui .wp-ui-text-icon {
color: #f3f1f1;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #bcbcbc;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,8 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #3858e9;
}
#adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
padding-bottom: 12px;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #3858e9;
}
a:hover, a:active, a:focus {
color: #183ad6;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #3858e9;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #183ad6;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #183ad6;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #3858e9;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #3858e9;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #3858e9;
border-color: #3858e9;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #183ad6;
color: #183ad6;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #132ea8;
box-shadow: 0 0 0 1px #667fee;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #3858e9;
border-color: #3858e9;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #4664eb;
border-color: #2a4ce7;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #3858e9;
}
.wp-core-ui .button-primary:active {
background: #2145e6;
border-color: #2145e6;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #3858e9;
color: #fff;
border-color: #1534bf;
box-shadow: inset 0 2px 5px -3px #03081f;
}
.wp-core-ui .button-group > .button.active {
border-color: #3858e9;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #1e1e1e;
}
.wp-core-ui .wp-ui-text-primary {
color: #1e1e1e;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #3858e9;
}
.wp-core-ui .wp-ui-text-highlight {
color: #3858e9;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #3858e9;
}
.wp-core-ui .wp-ui-text-notification {
color: #3858e9;
}
.wp-core-ui .wp-ui-text-icon {
color: #f3f1f1;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #bcbcbc;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,8 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #3858e9;
}
#adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
padding-bottom: 12px;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -6,9 +6,4 @@ $notification-color: $highlight-color;
$link: $highlight-color;
$link-focus: darken($highlight-color, 10%);
@import "../_admin.scss";
#adminmenu .wp-submenu, #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu .wp-has-current-submenu.opensub .wp-submenu, .folded #adminmenu .wp-has-current-submenu .wp-submenu, #adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
padding-bottom: 12px;
}

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #738e96;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #9ebaa0;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,71 +115,57 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #9ebaa0;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button-primary {
background: #9ebaa0;
border-color: #9ebaa0;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #a7c0a9;
border-color: #95b497;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
}
.wp-core-ui .button-primary:active {
background: #8faf91;
border-color: #8faf91;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #9ebaa0;
color: #fff;
border-color: #719a74;
box-shadow: inset 0 2px 5px -3px #253426;
}
.wp-core-ui .button-group > .button.active {
border-color: #9ebaa0;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #738e96;
}
.wp-core-ui .wp-ui-text-primary {
color: #738e96;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #9ebaa0;
}
.wp-core-ui .wp-ui-text-highlight {
color: #9ebaa0;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #aa9d88;
}
.wp-core-ui .wp-ui-text-notification {
color: #aa9d88;
}
.wp-core-ui .wp-ui-text-icon {
color: #f2fcff;
}
@@ -264,7 +244,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #d5dde0;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -283,7 +262,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -699,4 +677,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #9ebaa0;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #738e96;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #9ebaa0;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,71 +115,57 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #9ebaa0;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button-primary {
background: #9ebaa0;
border-color: #9ebaa0;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #a7c0a9;
border-color: #95b497;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #9ebaa0;
}
.wp-core-ui .button-primary:active {
background: #8faf91;
border-color: #8faf91;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #9ebaa0;
color: #fff;
border-color: #719a74;
box-shadow: inset 0 2px 5px -3px #253426;
}
.wp-core-ui .button-group > .button.active {
border-color: #9ebaa0;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #738e96;
}
.wp-core-ui .wp-ui-text-primary {
color: #738e96;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #9ebaa0;
}
.wp-core-ui .wp-ui-text-highlight {
color: #9ebaa0;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #aa9d88;
}
.wp-core-ui .wp-ui-text-notification {
color: #aa9d88;
}
.wp-core-ui .wp-ui-text-icon {
color: #f2fcff;
}
@@ -264,7 +244,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #d5dde0;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -283,7 +262,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -699,4 +677,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #9ebaa0;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #dd823b;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #dd823b;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #dd823b;
border-color: #dd823b;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #c36922;
color: #c36922;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #98511a;
box-shadow: 0 0 0 1px #e59e66;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #dd823b;
border-color: #dd823b;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #df8a48;
border-color: #db7a2e;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
}
.wp-core-ui .button-primary:active {
background: #d97426;
border-color: #d97426;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #dd823b;
color: #fff;
border-color: #ad5d1e;
box-shadow: inset 0 2px 5px -3px #150b04;
}
.wp-core-ui .button-group > .button.active {
border-color: #dd823b;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #cf4944;
}
.wp-core-ui .wp-ui-text-primary {
color: #cf4944;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #dd823b;
}
.wp-core-ui .wp-ui-text-highlight {
color: #dd823b;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #ccaf0b;
}
.wp-core-ui .wp-ui-text-notification {
color: #ccaf0b;
}
.wp-core-ui .wp-ui-text-icon {
color: #f3f1f1;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #f1c8c7;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #dd823b;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -11,7 +11,6 @@ body {
a {
color: #0073aa;
}
a:hover, a:active, a:focus {
color: #0096dd;
}
@@ -27,7 +26,6 @@ span.wp-media-buttons-icon:before {
.wp-core-ui .button-link {
color: #0073aa;
}
.wp-core-ui .button-link:hover, .wp-core-ui .button-link:active, .wp-core-ui .button-link:focus {
color: #0096dd;
}
@@ -59,28 +57,28 @@ input[type=radio]:checked::before {
background: #7e8993;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
.wp-core-ui input[type=reset]:hover,
.wp-core-ui input[type=reset]:active {
color: #0096dd;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=color]:focus,
input[type=date]:focus,
input[type=datetime]:focus,
input[type=datetime-local]:focus,
input[type=email]:focus,
input[type=month]:focus,
input[type=number]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=time]:focus,
input[type=url]:focus,
input[type=week]:focus,
input[type=checkbox]:focus,
input[type=radio]:focus,
select:focus,
textarea:focus {
border-color: #dd823b;
@@ -92,7 +90,6 @@ textarea:focus {
border-color: #7e8993;
color: #32373c;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button.focus,
@@ -100,20 +97,17 @@ textarea:focus {
border-color: #717c87;
color: #262a2e;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus {
border-color: #7e8993;
color: #262a2e;
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button:active {
border-color: #7e8993;
color: #262a2e;
box-shadow: none;
}
.wp-core-ui .button.active,
.wp-core-ui .button.active:focus,
.wp-core-ui .button.active:hover {
@@ -121,24 +115,20 @@ textarea:focus {
color: #262a2e;
box-shadow: inset 0 2px 5px -3px #dd823b;
}
.wp-core-ui .button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
.wp-core-ui .button,
.wp-core-ui .button-secondary {
color: #dd823b;
border-color: #dd823b;
}
.wp-core-ui .button.hover,
.wp-core-ui .button:hover,
.wp-core-ui .button-secondary:hover {
border-color: #c36922;
color: #c36922;
}
.wp-core-ui .button.focus,
.wp-core-ui .button:focus,
.wp-core-ui .button-secondary:focus {
@@ -146,71 +136,57 @@ textarea:focus {
color: #98511a;
box-shadow: 0 0 0 1px #e59e66;
}
.wp-core-ui .button-primary:hover {
color: #fff;
}
.wp-core-ui .button-primary {
background: #dd823b;
border-color: #dd823b;
color: #fff;
}
.wp-core-ui .button-primary:hover, .wp-core-ui .button-primary:focus {
background: #df8a48;
border-color: #db7a2e;
color: #fff;
}
.wp-core-ui .button-primary:focus {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #dd823b;
}
.wp-core-ui .button-primary:active {
background: #d97426;
border-color: #d97426;
color: #fff;
}
.wp-core-ui .button-primary.active, .wp-core-ui .button-primary.active:focus, .wp-core-ui .button-primary.active:hover {
background: #dd823b;
color: #fff;
border-color: #ad5d1e;
box-shadow: inset 0 2px 5px -3px #150b04;
}
.wp-core-ui .button-group > .button.active {
border-color: #dd823b;
}
.wp-core-ui .wp-ui-primary {
color: #fff;
background-color: #cf4944;
}
.wp-core-ui .wp-ui-text-primary {
color: #cf4944;
}
.wp-core-ui .wp-ui-highlight {
color: #fff;
background-color: #dd823b;
}
.wp-core-ui .wp-ui-text-highlight {
color: #dd823b;
}
.wp-core-ui .wp-ui-notification {
color: #fff;
background-color: #ccaf0b;
}
.wp-core-ui .wp-ui-text-notification {
color: #ccaf0b;
}
.wp-core-ui .wp-ui-text-icon {
color: #f3f1f1;
}
@@ -301,7 +277,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: #f1c8c7;
}
#adminmenu .wp-submenu a:focus, #adminmenu .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
@@ -320,7 +295,6 @@ textarea:focus {
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: #fff;
}
#adminmenu .wp-submenu li.current a:hover, #adminmenu .wp-submenu li.current a:focus,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:hover,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
@@ -736,4 +710,4 @@ div#wp-responsive-toggle a:before {
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: #dd823b;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -30,6 +30,46 @@
overflow: visible;
}
/* inner 2 column liquid layout */
.inner-sidebar {
float: left;
clear: left;
display: none;
width: 281px;
position: relative;
}
.columns-2 .inner-sidebar {
margin-left: auto;
width: 286px;
display: block;
}
.inner-sidebar #side-sortables,
.columns-2 .inner-sidebar #side-sortables {
min-height: 300px;
width: 280px;
padding: 0;
}
.has-right-sidebar .inner-sidebar {
display: block;
}
.has-right-sidebar #post-body {
float: right;
clear: right;
width: 100%;
margin-left: -2000px;
}
.has-right-sidebar #post-body-content {
margin-left: 300px;
float: none;
width: auto;
}
/* 2 columns main area */
#col-left {
@@ -1946,9 +1986,9 @@ html.wp-toolbar {
padding-top: 10px;
}
.metabox-holder .postbox-container .empty-container {
outline: 3px dashed #b4b9be;
height: 250px;
.metabox-holder .postbox-container .meta-box-sortables {
/* The jQuery UI Sortables need some initial height to work properly. */
min-height: 1px;
position: relative;
}
@@ -2481,7 +2521,7 @@ div.star-holder .star-rating {
}
.rtl .star-rating .star-half {
transform: rotateY(180deg);
transform: rotateY(-180deg);
}
.star-rating .star-empty:before {

File diff suppressed because one or more lines are too long

View File

@@ -29,6 +29,46 @@
overflow: visible;
}
/* inner 2 column liquid layout */
.inner-sidebar {
float: right;
clear: right;
display: none;
width: 281px;
position: relative;
}
.columns-2 .inner-sidebar {
margin-right: auto;
width: 286px;
display: block;
}
.inner-sidebar #side-sortables,
.columns-2 .inner-sidebar #side-sortables {
min-height: 300px;
width: 280px;
padding: 0;
}
.has-right-sidebar .inner-sidebar {
display: block;
}
.has-right-sidebar #post-body {
float: left;
clear: left;
width: 100%;
margin-right: -2000px;
}
.has-right-sidebar #post-body-content {
margin-right: 300px;
float: none;
width: auto;
}
/* 2 columns main area */
#col-left {
@@ -1945,9 +1985,9 @@ html.wp-toolbar {
padding-top: 10px;
}
.metabox-holder .postbox-container .empty-container {
outline: 3px dashed #b4b9be;
height: 250px;
.metabox-holder .postbox-container .meta-box-sortables {
/* The jQuery UI Sortables need some initial height to work properly. */
min-height: 1px;
position: relative;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -55,6 +55,11 @@
margin: 0 8px 20px;
}
#dashboard-widgets .postbox-container .empty-container {
outline: 3px dashed #b4b9be;
height: 250px;
}
/* Only highlight drop zones when dragging and only in the 2 columns layout. */
.is-dragging-metaboxes #dashboard-widgets .meta-box-sortables {
outline: 3px dashed #606a73;

File diff suppressed because one or more lines are too long

View File

@@ -54,6 +54,11 @@
margin: 0 8px 20px;
}
#dashboard-widgets .postbox-container .empty-container {
outline: 3px dashed #b4b9be;
height: 250px;
}
/* Only highlight drop zones when dragging and only in the 2 columns layout. */
.is-dragging-metaboxes #dashboard-widgets .meta-box-sortables {
outline: 3px dashed #606a73;

File diff suppressed because one or more lines are too long

View File

@@ -149,25 +149,8 @@ body.post-new-php .submitbox .submitdelete {
/* Post Screen */
/* Only target the sortables in the post screen excluding the ones in the Dashboard. */
#post-body .meta-box-sortables {
/* Required min-height to make the jQuery UI Sortable drop zone work. */
min-height: 1px;
}
/* Resets height and outline inherited from common.css. */
#post-body.columns-1 #side-sortables.empty-container,
#post-body #normal-sortables.empty-container,
#post-body #advanced-sortables.empty-container {
/* Sortables need some initial height to work correctly. */
height: 1px;
outline: none;
}
/* Only highlight drop zones when dragging and only in the 2 columns layout. */
.is-dragging-metaboxes #post-body.columns-2 #side-sortables,
.is-dragging-metaboxes #post-body #normal-sortables,
.is-dragging-metaboxes #post-body #advanced-sortables {
.is-dragging-metaboxes .metabox-holder .postbox-container .meta-box-sortables {
outline: 3px dashed #606a73;
/* Prevent margin on the child from collapsing with margin on the parent. */
display: flow-root;
@@ -1543,7 +1526,6 @@ table.links-table {
#poststuff #postbox-container-1 .empty-container,
#poststuff #postbox-container-1 #side-sortables:empty {
outline: none;
height: 0;
min-height: 0;
}
@@ -1553,6 +1535,15 @@ table.links-table {
width: auto;
}
/* Increase min-height while dragging for the #side-sortables and any potential sortables area with custom ID. */
.is-dragging-metaboxes #poststuff #postbox-container-1 .empty-container,
.is-dragging-metaboxes #poststuff #postbox-container-1 #side-sortables:empty,
.is-dragging-metaboxes #poststuff #post-body.columns-2 #side-sortables,
.is-dragging-metaboxes #poststuff #post-body.columns-2 .meta-box-sortables {
height: auto;
min-height: 60px;
}
/* hide the radio buttons for column prefs */
.screen-layout,
.columns-prefs {

File diff suppressed because one or more lines are too long

View File

@@ -148,25 +148,8 @@ body.post-new-php .submitbox .submitdelete {
/* Post Screen */
/* Only target the sortables in the post screen excluding the ones in the Dashboard. */
#post-body .meta-box-sortables {
/* Required min-height to make the jQuery UI Sortable drop zone work. */
min-height: 1px;
}
/* Resets height and outline inherited from common.css. */
#post-body.columns-1 #side-sortables.empty-container,
#post-body #normal-sortables.empty-container,
#post-body #advanced-sortables.empty-container {
/* Sortables need some initial height to work correctly. */
height: 1px;
outline: none;
}
/* Only highlight drop zones when dragging and only in the 2 columns layout. */
.is-dragging-metaboxes #post-body.columns-2 #side-sortables,
.is-dragging-metaboxes #post-body #normal-sortables,
.is-dragging-metaboxes #post-body #advanced-sortables {
.is-dragging-metaboxes .metabox-holder .postbox-container .meta-box-sortables {
outline: 3px dashed #606a73;
/* Prevent margin on the child from collapsing with margin on the parent. */
display: flow-root;
@@ -1542,7 +1525,6 @@ table.links-table {
#poststuff #postbox-container-1 .empty-container,
#poststuff #postbox-container-1 #side-sortables:empty {
outline: none;
height: 0;
min-height: 0;
}
@@ -1552,6 +1534,15 @@ table.links-table {
width: auto;
}
/* Increase min-height while dragging for the #side-sortables and any potential sortables area with custom ID. */
.is-dragging-metaboxes #poststuff #postbox-container-1 .empty-container,
.is-dragging-metaboxes #poststuff #postbox-container-1 #side-sortables:empty,
.is-dragging-metaboxes #poststuff #post-body.columns-2 #side-sortables,
.is-dragging-metaboxes #poststuff #post-body.columns-2 .meta-box-sortables {
height: auto;
min-height: 60px;
}
/* hide the radio buttons for column prefs */
.screen-layout,
.columns-prefs {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -2604,10 +2604,11 @@ function wp_ajax_image_editor() {
include_once ABSPATH . 'wp-admin/includes/image-edit.php';
$msg = false;
switch ( $_POST['do'] ) {
case 'save':
$msg = wp_save_image( $attachment_id );
if ( $msg->error ) {
if ( ! empty( $msg->error ) ) {
wp_send_json_error( $msg );
}
@@ -2625,7 +2626,7 @@ function wp_ajax_image_editor() {
wp_image_editor( $attachment_id, $msg );
$html = ob_get_clean();
if ( $msg->error ) {
if ( ! empty( $msg->error ) ) {
wp_send_json_error(
array(
'message' => $msg,
@@ -2722,6 +2723,10 @@ function wp_ajax_set_attachment_thumbnail() {
wp_send_json_error();
}
if ( false === check_ajax_referer( 'set-attachment-thumbnail', '_ajax_nonce', false ) ) {
wp_send_json_error();
}
$post_ids = array();
// For each URL, try to find its corresponding post ID.
foreach ( $_POST['urls'] as $url ) {
@@ -2974,7 +2979,7 @@ function wp_ajax_query_attachments() {
// Filter query clauses to include filenames.
if ( isset( $query['s'] ) ) {
add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
}
/**
@@ -3761,13 +3766,29 @@ function wp_ajax_parse_media_shortcode() {
$shortcode = wp_unslash( $_POST['shortcode'] );
// Only process previews for media related shortcodes:
$found_shortcodes = get_shortcode_tags_in_content( $shortcode );
$media_shortcodes = array(
'audio',
'embed',
'playlist',
'video',
'gallery',
);
$other_shortcodes = array_diff( $found_shortcodes, $media_shortcodes );
if ( ! empty( $other_shortcodes ) ) {
wp_send_json_error();
}
if ( ! empty( $_POST['post_ID'] ) ) {
$post = get_post( (int) $_POST['post_ID'] );
}
// The embed shortcode requires a post.
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
if ( 'embed' === $shortcode ) {
if ( in_array( 'embed', $found_shortcodes, true ) ) {
wp_send_json_error();
}
} else {

View File

@@ -581,6 +581,8 @@ class Custom_Background {
* @deprecated 3.5.0
*/
public function wp_set_background_image() {
check_ajax_referer( 'custom-background' );
if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $_POST['attachment_id'] ) ) {
exit;
}

View File

@@ -343,7 +343,7 @@ class Custom_Image_Header {
?>
<script type="text/javascript">
(function($){
var default_color = '<?php echo $default_color; ?>',
var default_color = '<?php echo esc_js( $default_color ); ?>',
header_text_fields;
function pickColor(color) {

View File

@@ -64,9 +64,6 @@ class Plugin_Upgrader extends WP_Upgrader {
$this->strings['process_failed'] = __( 'Plugin update failed.' );
$this->strings['process_success'] = __( 'Plugin updated successfully.' );
$this->strings['process_bulk_success'] = __( 'Plugins updated successfully.' );
/* translators: 1: Plugin name, 2: Plugin version. */
$this->strings['process_success_specific'] = __( 'Successfully installed the plugin <strong>%1$s %2$s</strong>.' );
}
/**
@@ -85,6 +82,8 @@ class Plugin_Upgrader extends WP_Upgrader {
$this->strings['no_files'] = __( 'The plugin contains no files.' );
$this->strings['process_failed'] = __( 'Plugin installation failed.' );
$this->strings['process_success'] = __( 'Plugin installed successfully.' );
/* translators: 1: Plugin name, 2: Plugin version. */
$this->strings['process_success_specific'] = __( 'Successfully installed the plugin <strong>%1$s %2$s</strong>.' );
if ( ! empty( $this->skin->overwrite ) ) {
if ( 'update-plugin' === $this->skin->overwrite ) {
@@ -127,6 +126,7 @@ class Plugin_Upgrader extends WP_Upgrader {
$this->install_strings();
add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
if ( $parsed_args['clear_update_cache'] ) {
// Clear cache so wp_update_plugins() knows about the new plugin.
add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 );

View File

@@ -206,7 +206,9 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$all_themes = wp_get_themes( array( 'errors' => null ) );
foreach ( $all_themes as $theme ) {
if ( rtrim( $theme->get_stylesheet_directory(), '/' ) !== $folder ) {
$stylesheet_dir = wp_normalize_path( $theme->get_stylesheet_directory() );
if ( rtrim( $stylesheet_dir, '/' ) !== $folder ) {
continue;
}

View File

@@ -163,7 +163,7 @@ class Theme_Upgrader extends WP_Upgrader {
// Override them.
$this->skin->api = $api;
$this->strings['process_success_specific'] = $this->strings['parent_theme_install_success']; //, $api->name, $api->version );
$this->strings['process_success_specific'] = $this->strings['parent_theme_install_success'];
$this->skin->feedback( 'parent_theme_prepare_install', $api->name, $api->version );
@@ -239,6 +239,7 @@ class Theme_Upgrader extends WP_Upgrader {
add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
add_filter( 'upgrader_post_install', array( $this, 'check_parent_theme_filter' ), 10, 3 );
if ( $parsed_args['clear_update_cache'] ) {
// Clear cache so wp_update_themes() knows about the new theme.
add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 );
@@ -248,7 +249,7 @@ class Theme_Upgrader extends WP_Upgrader {
array(
'package' => $package,
'destination' => get_theme_root(),
'clear_destination' => $args['overwrite_package'],
'clear_destination' => $parsed_args['overwrite_package'],
'clear_working' => true,
'hook_extra' => array(
'type' => 'theme',

View File

@@ -81,11 +81,11 @@ class Walker_Category_Checklist extends Walker {
$name = 'tax_input[' . $taxonomy . ']';
}
$args['popular_cats'] = empty( $args['popular_cats'] ) ? array() : $args['popular_cats'];
$args['popular_cats'] = ! empty( $args['popular_cats'] ) ? array_map( 'intval', $args['popular_cats'] ) : array();
$class = in_array( $category->term_id, $args['popular_cats'], true ) ? ' class="popular-category"' : '';
$args['selected_cats'] = empty( $args['selected_cats'] ) ? array() : $args['selected_cats'];
$args['selected_cats'] = ! empty( $args['selected_cats'] ) ? array_map( 'intval', $args['selected_cats'] ) : array();
if ( ! empty( $args['list_only'] ) ) {
$aria_checked = 'false';

View File

@@ -170,11 +170,21 @@ class WP_Automatic_Updater {
$update = ! empty( $item->autoupdate );
}
// If the `disable_autoupdate` flag is set, override any user-choice, but allow filters.
if ( ! empty( $item->disable_autoupdate ) ) {
$update = $item->disable_autoupdate;
}
/**
* Filters whether to automatically update core, a plugin, a theme, or a language.
*
* The dynamic portion of the hook name, `$type`, refers to the type of update
* being checked. Can be 'core', 'theme', 'plugin', or 'translation'.
* being checked. Potential hook names include:
*
* - `auto_update_core`
* - `auto_update_plugin`
* - `auto_update_theme`
* - `auto_update_translation`
*
* Generally speaking, plugins, themes, and major core versions are not updated
* by default, while translations and minor and development versions for core
@@ -185,9 +195,11 @@ class WP_Automatic_Updater {
* adjust core updates.
*
* @since 3.7.0
* @since 5.5.0 The `$update` parameter accepts the value of null.
*
* @param bool $update Whether to update.
* @param object $item The update offer.
* @param bool|null $update Whether to update. The value of null is internally used
* to detect whether nothing has hooked into this filter.
* @param object $item The update offer.
*/
$update = apply_filters( "auto_update_{$type}", $update, $item );
@@ -869,46 +881,54 @@ class WP_Automatic_Updater {
*
* @since 5.5.0
*
* @param array $update_results The result of updates tasks.
* @param array $update_results The results of update tasks.
*/
protected function after_plugin_theme_update( $update_results ) {
$successful_updates = array();
$failed_updates = array();
/**
* Filters whether to send an email following an automatic background plugin update.
*
* @since 5.5.0
*
* @param bool $enabled True if plugins notifications are enabled, false otherwise.
*/
$notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true );
if ( ! empty( $update_results['plugin'] ) ) {
/**
* Filters whether to send an email following an automatic background plugin update.
*
* @since 5.5.0
* @since 5.5.1 Added the `$update_results` parameter.
*
* @param bool $enabled True if plugin update notifications are enabled, false otherwise.
* @param array $update_results The results of plugins update tasks.
*/
$notifications_enabled = apply_filters( 'auto_plugin_update_send_email', true, $update_results['plugin'] );
if ( ! empty( $update_results['plugin'] ) && $notifications_enabled ) {
foreach ( $update_results['plugin'] as $update_result ) {
if ( true === $update_result->result ) {
$successful_updates['plugin'][] = $update_result;
} else {
$failed_updates['plugin'][] = $update_result;
if ( $notifications_enabled ) {
foreach ( $update_results['plugin'] as $update_result ) {
if ( true === $update_result->result ) {
$successful_updates['plugin'][] = $update_result;
} else {
$failed_updates['plugin'][] = $update_result;
}
}
}
}
/**
* Filters whether to send an email following an automatic background theme update.
*
* @since 5.5.0
*
* @param bool $enabled True if notifications are enabled, false otherwise.
*/
$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true );
if ( ! empty( $update_results['theme'] ) ) {
/**
* Filters whether to send an email following an automatic background theme update.
*
* @since 5.5.0
* @since 5.5.1 Added the `$update_results` parameter.
*
* @param bool $enabled True if theme update notifications are enabled, false otherwise.
* @param array $update_results The results of theme update tasks.
*/
$notifications_enabled = apply_filters( 'auto_theme_update_send_email', true, $update_results['theme'] );
if ( ! empty( $update_results['theme'] ) && $notifications_enabled ) {
foreach ( $update_results['theme'] as $update_result ) {
if ( true === $update_result->result ) {
$successful_updates['theme'][] = $update_result;
} else {
$failed_updates['theme'][] = $update_result;
if ( $notifications_enabled ) {
foreach ( $update_results['theme'] as $update_result ) {
if ( true === $update_result->result ) {
$successful_updates['theme'][] = $update_result;
} else {
$failed_updates['theme'][] = $update_result;
}
}
}
}

View File

@@ -614,6 +614,19 @@ class WP_Comments_List_Table extends WP_List_Table {
}
$this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );
$edit_post_cap = $post ? 'edit_post' : 'edit_posts';
if (
current_user_can( $edit_post_cap, $comment->comment_post_ID ) ||
(
empty( $post->post_password ) &&
current_user_can( 'read_post', $comment->comment_post_ID )
)
) {
// The user has access to the post
} else {
return false;
}
echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
$this->single_row_columns( $comment );
echo "</tr>\n";

View File

@@ -77,6 +77,8 @@ class WP_Community_Events {
* mitigates possible privacy concerns.
*
* @since 4.8.0
* @since 5.5.2 Response no longer contains formatted date field. They're added
* in `wp.communityEvents.populateDynamicEventFields()` now.
*
* @param string $location_search Optional. City name to help determine the location.
* e.g., "Seattle". Default empty string.
@@ -158,10 +160,13 @@ class WP_Community_Events {
$response_body['location']['description'] = $this->user_location['description'];
}
/*
* Store the raw response, because events will expire before the cache does.
* The response will need to be processed every page load.
*/
$this->cache_events( $response_body, $expiration );
$response_body = $this->trim_events( $response_body );
$response_body = $this->format_event_data_time( $response_body );
$response_body['events'] = $this->trim_events( $response_body['events'] );
return $response_body;
}
@@ -340,15 +345,20 @@ class WP_Community_Events {
* Gets cached events.
*
* @since 4.8.0
* @since 5.5.2 Response no longer contains formatted date field. They're added
* in `wp.communityEvents.populateDynamicEventFields()` now.
*
* @return array|false An array containing `location` and `events` items
* on success, false on failure.
*/
public function get_cached_events() {
$cached_response = get_site_transient( $this->get_events_transient_key( $this->user_location ) );
$cached_response = $this->trim_events( $cached_response );
return $this->format_event_data_time( $cached_response );
if ( isset( $cached_response['events'] ) ) {
$cached_response['events'] = $this->trim_events( $cached_response['events'] );
}
return $cached_response;
}
/**
@@ -360,11 +370,18 @@ class WP_Community_Events {
* of the user who triggered the cache refresh, rather than their own.
*
* @since 4.8.0
* @deprecated 5.6.0 No longer used in core.
*
* @param array $response_body The response which contains the events.
* @return array The response with dates and times formatted.
*/
protected function format_event_data_time( $response_body ) {
_deprecated_function(
__METHOD__,
'5.5.2',
'This is no longer used by core, and only kept for backward compatibility.'
);
if ( isset( $response_body['events'] ) ) {
foreach ( $response_body['events'] as $key => $event ) {
$timestamp = strtotime( $event['date'] );
@@ -435,44 +452,44 @@ class WP_Community_Events {
*
* @since 4.8.0
* @since 4.9.7 Stick a WordCamp to the final list.
* @since 5.5.2 Accepts and returns only the events, rather than an entire HTTP response.
*
* @param array $response_body The response body which contains the events.
* @param array $events The events that will be prepared.
* @return array The response body with events trimmed.
*/
protected function trim_events( $response_body ) {
if ( isset( $response_body['events'] ) ) {
$wordcamps = array();
$today = current_time( 'Y-m-d' );
protected function trim_events( array $events ) {
$future_events = array();
foreach ( $response_body['events'] as $key => $event ) {
/*
* Skip WordCamps, because they might be multi-day events.
* Save a copy so they can be pinned later.
*/
if ( 'wordcamp' === $event['type'] ) {
$wordcamps[] = $event;
continue;
}
foreach ( $events as $event ) {
/*
* The API's `date` and `end_date` fields are in the _event's_ local timezone, but UTC is needed so
* it can be converted to the _user's_ local time.
*/
$end_time = (int) $event['end_unix_timestamp'];
// We don't get accurate time with timezone from API, so we only take the date part (Y-m-d).
$event_date = substr( $event['date'], 0, 10 );
if ( $today > $event_date ) {
unset( $response_body['events'][ $key ] );
}
}
$response_body['events'] = array_slice( $response_body['events'], 0, 3 );
$trimmed_event_types = wp_list_pluck( $response_body['events'], 'type' );
// Make sure the soonest upcoming WordCamp is pinned in the list.
if ( ! in_array( 'wordcamp', $trimmed_event_types, true ) && $wordcamps ) {
array_pop( $response_body['events'] );
array_push( $response_body['events'], $wordcamps[0] );
if ( time() < $end_time ) {
array_push( $future_events, $event );
}
}
return $response_body;
$future_wordcamps = array_filter(
$future_events,
function( $wordcamp ) {
return 'wordcamp' === $wordcamp['type'];
}
);
$future_wordcamps = array_values( $future_wordcamps ); // Remove gaps in indices.
$trimmed_events = array_slice( $future_events, 0, 3 );
$trimmed_event_types = wp_list_pluck( $trimmed_events, 'type' );
// Make sure the soonest upcoming WordCamp is pinned in the list.
if ( $future_wordcamps && ! in_array( 'wordcamp', $trimmed_event_types, true ) ) {
array_pop( $trimmed_events );
array_push( $trimmed_events, $future_wordcamps[0] );
}
return $trimmed_events;
}
/**

View File

@@ -39,10 +39,11 @@ class WP_Debug_Data {
$upload_dir = wp_upload_dir();
$permalink_structure = get_option( 'permalink_structure' );
$is_ssl = is_ssl();
$is_multisite = is_multisite();
$users_can_register = get_option( 'users_can_register' );
$blog_public = get_option( 'blog_public' );
$default_comment_status = get_option( 'default_comment_status' );
$is_multisite = is_multisite();
$environment_type = wp_get_environment_type();
$core_version = get_bloginfo( 'version' );
$core_updates = get_core_updates();
$core_update_needed = '';
@@ -99,6 +100,11 @@ class WP_Debug_Data {
'value' => $is_ssl ? __( 'Yes' ) : __( 'No' ),
'debug' => $is_ssl,
),
'multisite' => array(
'label' => __( 'Is this a multisite?' ),
'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
'debug' => $is_multisite,
),
'user_registration' => array(
'label' => __( 'Can anyone register on this site?' ),
'value' => $users_can_register ? __( 'Yes' ) : __( 'No' ),
@@ -114,10 +120,10 @@ class WP_Debug_Data {
'value' => 'open' === $default_comment_status ? _x( 'Open', 'comment status' ) : _x( 'Closed', 'comment status' ),
'debug' => $default_comment_status,
),
'multisite' => array(
'label' => __( 'Is this a multisite?' ),
'value' => $is_multisite ? __( 'Yes' ) : __( 'No' ),
'debug' => $is_multisite,
'environment_type' => array(
'label' => __( 'Environment type' ),
'value' => $environment_type,
'debug' => $environment_type,
),
),
);
@@ -531,10 +537,10 @@ class WP_Debug_Data {
);
} else {
// Get the PHP ini directive values.
$post_max_size = ini_get( 'post_max_size' );
$upload_max_size = ini_get( 'upload_max_filesize' );
$max_file_uploads = ini_get( 'max_file_uploads' );
$effective = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_size ) );
$post_max_size = ini_get( 'post_max_size' );
$upload_max_filesize = ini_get( 'upload_max_filesize' );
$max_file_uploads = ini_get( 'max_file_uploads' );
$effective = min( wp_convert_hr_to_bytes( $post_max_size ), wp_convert_hr_to_bytes( $upload_max_filesize ) );
// Add info in Media section.
$info['wp-media']['fields']['file_uploads'] = array(
@@ -548,7 +554,7 @@ class WP_Debug_Data {
);
$info['wp-media']['fields']['upload_max_filesize'] = array(
'label' => __( 'Max size of an uploaded file' ),
'value' => $upload_max_size,
'value' => $upload_max_filesize,
);
$info['wp-media']['fields']['max_effective_size'] = array(
'label' => __( 'Max effective file size' ),
@@ -711,15 +717,15 @@ class WP_Debug_Data {
);
}
$info['wp-server']['fields']['max_input_time'] = array(
$info['wp-server']['fields']['max_input_time'] = array(
'label' => __( 'Max input time' ),
'value' => ini_get( 'max_input_time' ),
);
$info['wp-server']['fields']['upload_max_size'] = array(
$info['wp-server']['fields']['upload_max_filesize'] = array(
'label' => __( 'Upload max filesize' ),
'value' => ini_get( 'upload_max_filesize' ),
);
$info['wp-server']['fields']['php_post_max_size'] = array(
$info['wp-server']['fields']['php_post_max_size'] = array(
'label' => __( 'PHP post max size' ),
'value' => ini_get( 'post_max_size' ),
);
@@ -905,7 +911,9 @@ class WP_Debug_Data {
// List all available plugins.
$plugins = get_plugins();
$plugin_updates = get_plugin_updates();
$auto_updates = array();
$transient = get_site_transient( 'update_plugins' );
$auto_updates = array();
$auto_updates_enabled = wp_is_auto_update_enabled_for_type( 'plugin' );
@@ -947,28 +955,56 @@ class WP_Debug_Data {
}
if ( $auto_updates_enabled ) {
if ( in_array( $plugin_path, $auto_updates, true ) ) {
$auto_updates_string = __( 'Auto-updates enabled' );
$enabled = true;
if ( isset( $transient->response[ $plugin_path ] ) ) {
$item = $transient->response[ $plugin_path ];
} elseif ( isset( $transient->no_update[ $plugin_path ] ) ) {
$item = $transient->no_update[ $plugin_path ];
} else {
$item = array(
'id' => $plugin_path,
'slug' => '',
'plugin' => $plugin_path,
'new_version' => '',
'url' => '',
'package' => '',
'icons' => array(),
'banners' => array(),
'banners_rtl' => array(),
'tested' => '',
'requires_php' => '',
'compatibility' => new stdClass(),
);
$item = array_merge( $item, array_intersect_key( $plugin, $item ) );
}
/**
* Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
*
* @since 5.5.0
*
* @param string $auto_updates_string The string output for the auto-updates column.
* @param array $plugin An array of plugin data.
* @param bool $enabled Whether auto-updates are enabled for this item.
*/
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin, $enabled );
$type = 'plugin';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item );
if ( ! is_null( $auto_update_forced ) ) {
$enabled = $auto_update_forced;
} else {
$enabled = in_array( $plugin_path, $auto_updates, true );
}
if ( $enabled ) {
$auto_updates_string = __( 'Auto-updates enabled' );
} else {
$auto_updates_string = __( 'Auto-updates disabled' );
$enabled = false;
/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin, $enabled );
}
/**
* Filters the text string of the auto-updates setting for each plugin in the Site Health debug data.
*
* @since 5.5.0
*
* @param string $auto_updates_string The string output for the auto-updates column.
* @param string $plugin_path The path to the plugin file.
* @param array $plugin An array of plugin data.
* @param bool $enabled Whether auto-updates are enabled for this item.
*/
$auto_updates_string = apply_filters( 'plugin_auto_update_debug_string', $auto_updates_string, $plugin_path, $plugin, $enabled );
$plugin_version_string .= ' | ' . $auto_updates_string;
$plugin_version_string_debug .= ', ' . $auto_updates_string;
}
@@ -992,6 +1028,7 @@ class WP_Debug_Data {
$active_theme = wp_get_theme();
$theme_updates = get_theme_updates();
$transient = get_site_transient( 'update_themes' );
$active_theme_version = $active_theme->version;
$active_theme_version_debug = $active_theme_version;
@@ -1069,28 +1106,40 @@ class WP_Debug_Data {
);
if ( $auto_updates_enabled ) {
if ( in_array( $active_theme->stylesheet, $auto_updates, true ) ) {
$auto_updates_string = __( 'Enabled' );
$enabled = true;
if ( isset( $transient->response[ $active_theme->stylesheet ] ) ) {
$item = $transient->response[ $active_theme->stylesheet ];
} elseif ( isset( $transient->no_update[ $active_theme->stylesheet ] ) ) {
$item = $transient->no_update[ $active_theme->stylesheet ];
} else {
$item = array(
'theme' => $active_theme->stylesheet,
'new_version' => $active_theme->version,
'url' => '',
'package' => '',
'requires' => '',
'requires_php' => '',
);
}
/**
* Filters the text string of the auto-updates setting for each theme in the Site Health debug data.
*
* @since 5.5.0
*
* @param string $auto_updates_string The string output for the auto-updates column.
* @param WP_Theme $theme An object of theme data.
* @param bool $enabled Whether auto-updates are enabled for this item.
*/
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled );
$type = 'theme';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item );
if ( ! is_null( $auto_update_forced ) ) {
$enabled = $auto_update_forced;
} else {
$enabled = in_array( $active_theme->stylesheet, $auto_updates, true );
}
if ( $enabled ) {
$auto_updates_string = __( 'Enabled' );
} else {
$auto_updates_string = __( 'Disabled' );
$enabled = false;
/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled );
}
/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $active_theme, $enabled );
$info['wp-active-theme']['fields']['auto_update'] = array(
'label' => __( 'Auto-updates' ),
'value' => $auto_updates_string,
@@ -1143,13 +1192,42 @@ class WP_Debug_Data {
'value' => get_template_directory(),
),
);
if ( $auto_updates_enabled ) {
if ( in_array( $parent_theme->stylesheet, $auto_updates, true ) ) {
if ( isset( $transient->response[ $parent_theme->stylesheet ] ) ) {
$item = $transient->response[ $parent_theme->stylesheet ];
} elseif ( isset( $transient->no_update[ $parent_theme->stylesheet ] ) ) {
$item = $transient->no_update[ $parent_theme->stylesheet ];
} else {
$item = array(
'theme' => $parent_theme->stylesheet,
'new_version' => $parent_theme->version,
'url' => '',
'package' => '',
'requires' => '',
'requires_php' => '',
);
}
$type = 'theme';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item );
if ( ! is_null( $auto_update_forced ) ) {
$enabled = $auto_update_forced;
} else {
$enabled = in_array( $parent_theme->stylesheet, $auto_updates, true );
}
if ( $enabled ) {
$parent_theme_auto_update_string = __( 'Enabled' );
} else {
$parent_theme_auto_update_string = __( 'Disabled' );
}
/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
$parent_theme_auto_update_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $parent_theme, $enabled );
$info['wp-parent-theme']['fields']['auto_update'] = array(
'label' => __( 'Auto-update' ),
'value' => $parent_theme_auto_update_string,
@@ -1206,20 +1284,48 @@ class WP_Debug_Data {
}
if ( $auto_updates_enabled ) {
if ( in_array( $theme_slug, $auto_updates, true ) ) {
$auto_updates_string = __( 'Auto-updates enabled' );
$enabled = true;
if ( isset( $transient->response[ $theme_slug ] ) ) {
$item = $transient->response[ $theme_slug ];
} elseif ( isset( $transient->no_update[ $theme_slug ] ) ) {
$item = $transient->no_update[ $theme_slug ];
} else {
$item = array(
'theme' => $theme_slug,
'new_version' => $theme->version,
'url' => '',
'package' => '',
'requires' => '',
'requires_php' => '',
);
}
/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled );
$type = 'theme';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item );
if ( ! is_null( $auto_update_forced ) ) {
$enabled = $auto_update_forced;
} else {
$enabled = in_array( $theme_slug, $auto_updates, true );
}
if ( $enabled ) {
$auto_updates_string = __( 'Auto-updates enabled' );
} else {
$auto_updates_string = __( 'Auto-updates disabled' );
$enabled = false;
/** This filter is documented in wp-admin/includes/class-wp-debug-data.php */
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled );
}
/**
* Filters the text string of the auto-updates setting for each theme in the Site Health debug data.
*
* @since 5.5.0
*
* @param string $auto_updates_string The string output for the auto-updates column.
* @param WP_Theme $theme An object of theme data.
* @param bool $enabled Whether auto-updates are enabled for this item.
*/
$auto_updates_string = apply_filters( 'theme_auto_update_debug_string', $auto_updates_string, $theme, $enabled );
$theme_version_string .= ' | ' . $auto_updates_string;
$theme_version_string_debug .= ',' . $auto_updates_string;
}

View File

@@ -156,7 +156,7 @@ class WP_Filesystem_FTPext extends WP_Filesystem_Base {
$contents .= fread( $temphandle, 8 * KB_IN_BYTES );
}
fclose( $temphangle );
fclose( $temphandle );
unlink( $tempfile );
return $contents;

View File

@@ -477,7 +477,7 @@ class WP_List_Table {
echo "</select>\n";
submit_button( __( 'Apply' ), 'action', "doaction$two", false, array( 'id' => "doaction$two" ) );
submit_button( __( 'Apply' ), 'action', '', false, array( 'id' => "doaction$two" ) );
echo "\n";
}
@@ -493,14 +493,14 @@ class WP_List_Table {
return false;
}
if ( isset( $_REQUEST['doaction2'] ) && isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
return $_REQUEST['action2'];
}
if ( isset( $_REQUEST['action'] ) && -1 != $_REQUEST['action'] ) {
return $_REQUEST['action'];
}
if ( isset( $_REQUEST['action2'] ) && -1 != $_REQUEST['action2'] ) {
return $_REQUEST['action2'];
}
return false;
}
@@ -698,6 +698,20 @@ class WP_List_Table {
$pending_comments_number
);
$post_object = get_post( $post_id );
$edit_post_cap = $post_object ? 'edit_post' : 'edit_posts';
if (
current_user_can( $edit_post_cap, $post_id ) ||
(
empty( $post_object->post_password ) &&
current_user_can( 'read_post', $post_id )
)
) {
// The user has access to the post and thus can see comments
} else {
return false;
}
if ( ! $approved_comments && ! $pending_comments ) {
// No comments at all.
printf(

View File

@@ -151,11 +151,54 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
$filter = $theme->is_allowed( $allowed_where, $this->site_id ) ? 'enabled' : 'disabled';
$themes[ $filter ][ $key ] = $themes['all'][ $key ];
$theme_data = array(
'update_supported' => isset( $theme->update_supported ) ? $theme->update_supported : true,
);
// Extra info if known. array_merge() ensures $theme_data has precedence if keys collide.
if ( isset( $current->response[ $key ] ) ) {
$theme_data = array_merge( (array) $current->response[ $key ], $theme_data );
} elseif ( isset( $current->no_update[ $key ] ) ) {
$theme_data = array_merge( (array) $current->no_update[ $key ], $theme_data );
} else {
$theme_data['update_supported'] = false;
}
$theme->update_supported = $theme_data['update_supported'];
/*
* Create the expected payload for the auto_update_theme filter, this is the same data
* as contained within $updates or $no_updates but used when the Theme is not known.
*/
$filter_payload = array(
'theme' => $key,
'new_version' => '',
'url' => '',
'package' => '',
'requires' => '',
'requires_php' => '',
);
$filter_payload = array_merge( $filter_payload, array_intersect_key( $theme_data, $filter_payload ) );
$type = 'theme';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $filter_payload );
if ( ! is_null( $auto_update_forced ) ) {
$theme->auto_update_forced = $auto_update_forced;
}
if ( $this->show_autoupdates ) {
if ( in_array( $key, $auto_updates, true ) ) {
$themes['auto-update-enabled'][ $key ] = $themes['all'][ $key ];
$enabled = in_array( $key, $auto_updates, true ) && $theme->update_supported;
if ( isset( $theme->auto_update_forced ) ) {
$enabled = (bool) $theme->auto_update_forced;
}
if ( $enabled ) {
$themes['auto-update-enabled'][ $key ] = $theme;
} else {
$themes['auto-update-disabled'][ $key ] = $themes['all'][ $key ];
$themes['auto-update-disabled'][ $key ] = $theme;
}
}
}
@@ -728,7 +771,20 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
$stylesheet = $theme->get_stylesheet();
if ( in_array( $stylesheet, $auto_updates, true ) ) {
if ( isset( $theme->auto_update_forced ) ) {
if ( $theme->auto_update_forced ) {
// Forced on.
$text = __( 'Auto-updates enabled' );
} else {
$text = __( 'Auto-updates disabled' );
}
$action = 'unavailable';
$time_class = ' hidden';
} elseif ( empty( $theme->update_supported ) ) {
$text = '';
$action = 'unavailable';
$time_class = ' hidden';
} elseif ( in_array( $stylesheet, $auto_updates, true ) ) {
$text = __( 'Disable auto-updates' );
$action = 'disable';
$time_class = '';
@@ -747,17 +803,21 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
$url = add_query_arg( $query_args, 'themes.php' );
$html[] = sprintf(
'<a href="%s" class="toggle-auto-update aria-button-if-js" data-wp-action="%s">',
wp_nonce_url( $url, 'updates' ),
$action
);
if ( 'unavailable' === $action ) {
$html[] = '<span class="label">' . $text . '</span>';
} else {
$html[] = sprintf(
'<a href="%s" class="toggle-auto-update aria-button-if-js" data-wp-action="%s">',
wp_nonce_url( $url, 'updates' ),
$action
);
$html[] = '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
$html[] = '<span class="label">' . $text . '</span>';
$html[] = '</a>';
$html[] = '<span class="dashicons dashicons-update spin hidden" aria-hidden="true"></span>';
$html[] = '<span class="label">' . $text . '</span>';
$html[] = '</a>';
}
$available_updates = get_site_transient( 'update_themes' );
if ( isset( $available_updates->response[ $stylesheet ] ) ) {
$html[] = sprintf(
'<div class="auto-update-time%s">%s</div>',

View File

@@ -231,8 +231,10 @@ class WP_Plugins_List_Table extends WP_List_Table {
);
$filter_payload = (object) array_merge( $filter_payload, array_intersect_key( $plugin_data, $filter_payload ) );
/** This action is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( 'auto_update_plugin', null, $filter_payload );
$type = 'plugin';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( "auto_update_{$type}", null, $filter_payload );
if ( ! is_null( $auto_update_forced ) ) {
$plugin_data['auto-update-forced'] = $auto_update_forced;
}
@@ -279,10 +281,15 @@ class WP_Plugins_List_Table extends WP_List_Table {
}
if ( $this->show_autoupdates ) {
if ( in_array( $plugin_file, $auto_updates, true ) ) {
$plugins['auto-update-enabled'][ $plugin_file ] = $plugins['all'][ $plugin_file ];
$enabled = in_array( $plugin_file, $auto_updates, true ) && $plugin_data['update-supported'];
if ( isset( $plugin_data['auto-update-forced'] ) ) {
$enabled = (bool) $plugin_data['auto-update-forced'];
}
if ( $enabled ) {
$plugins['auto-update-enabled'][ $plugin_file ] = $plugin_data;
} else {
$plugins['auto-update-disabled'][ $plugin_file ] = $plugins['all'][ $plugin_file ];
$plugins['auto-update-disabled'][ $plugin_file ] = $plugin_data;
}
}
}
@@ -1087,14 +1094,14 @@ class WP_Plugins_List_Table extends WP_List_Table {
if ( isset( $plugin_data['auto-update-forced'] ) ) {
if ( $plugin_data['auto-update-forced'] ) {
// Forced on
// Forced on.
$text = __( 'Auto-updates enabled' );
} else {
$text = __( 'Auto-updates disabled' );
}
$action = 'unavailable';
$time_class = ' hidden';
} elseif ( ! $plugin_data['update-supported'] ) {
} elseif ( empty( $plugin_data['update-supported'] ) ) {
$text = '';
$action = 'unavailable';
$time_class = ' hidden';

View File

@@ -27,7 +27,7 @@ class WP_Site_Health_Auto_Updates {
*/
public function run_tests() {
$tests = array(
$this->test_constants( 'WP_AUTO_UPDATE_CORE', true ),
$this->test_constants( 'WP_AUTO_UPDATE_CORE', array( true, 'minor' ) ),
$this->test_wp_version_check_attached(),
$this->test_filters_automatic_updater_disabled(),
$this->test_wp_automatic_updates_disabled(),
@@ -60,13 +60,17 @@ class WP_Site_Health_Auto_Updates {
* Test if auto-updates related constants are set correctly.
*
* @since 5.2.0
* @since 5.5.1 The `$value` parameter can accept an array.
*
* @param string $constant The name of the constant to check.
* @param bool $value The value that the constant should be, if set.
* @param string $constant The name of the constant to check.
* @param bool|string|array $value The value that the constant should be, if set,
* or an array of acceptable values.
* @return array The test results.
*/
public function test_constants( $constant, $value ) {
if ( defined( $constant ) && constant( $constant ) !== $value ) {
$acceptable_values = (array) $value;
if ( defined( $constant ) && ! in_array( constant( $constant ), $acceptable_values, true ) ) {
return array(
'description' => sprintf(
/* translators: %s: Name of the constant used. */

View File

@@ -1115,7 +1115,7 @@ class WP_Site_Health {
'test' => 'php_sessions',
);
if ( PHP_SESSION_ACTIVE === session_status() ) {
if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) {
$result['status'] = 'critical';
$result['label'] = __( 'An active PHP session was detected' );
@@ -2046,13 +2046,13 @@ class WP_Site_Health {
return $result;
}
$post_max_size = ini_get( 'post_max_size' );
$upload_max_size = ini_get( 'upload_max_filesize' );
$post_max_size = ini_get( 'post_max_size' );
$upload_max_filesize = ini_get( 'upload_max_filesize' );
if ( wp_convert_hr_to_bytes( $post_max_size ) !== wp_convert_hr_to_bytes( $upload_max_size ) ) {
if ( wp_convert_hr_to_bytes( $post_max_size ) < wp_convert_hr_to_bytes( $upload_max_filesize ) ) {
$result['label'] = sprintf(
/* translators: 1: post_max_size, 2: upload_max_filesize */
__( 'Mismatched "%1$s" and "%2$s" values.' ),
__( 'The "%1$s" value is smaller than "%2$s".' ),
'post_max_size',
'upload_max_filesize'
);
@@ -2061,7 +2061,7 @@ class WP_Site_Health {
'<p>%s</p>',
sprintf(
/* translators: 1: post_max_size, 2: upload_max_filesize */
__( 'The settings for %1$s and %2$s are not the same, this could cause some problems when trying to upload files.' ),
__( 'The setting for %1$s is smaller than %2$s, this could cause some problems when trying to upload files.' ),
'<code>post_max_size</code>',
'<code>upload_max_filesize</code>'
)
@@ -2207,6 +2207,15 @@ class WP_Site_Health {
*/
$tests = apply_filters( 'site_status_tests', $tests );
// Ensure that the filtered tests contain the required array keys.
$tests = array_merge(
array(
'direct' => array(),
'async' => array(),
),
$tests
);
return $tests;
}
@@ -2372,10 +2381,14 @@ class WP_Site_Health {
'requires_php' => '5.6.20',
);
$type = 'plugin';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$test_plugins_enabled = apply_filters( 'auto_update_plugin', true, $mock_plugin );
$test_plugins_enabled = apply_filters( "auto_update_{$type}", true, $mock_plugin );
$type = 'theme';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$test_themes_enabled = apply_filters( 'auto_update_theme', true, $mock_theme );
$test_themes_enabled = apply_filters( "auto_update_{$type}", true, $mock_theme );
$ui_enabled_for_plugins = wp_is_auto_update_enabled_for_type( 'plugin' );
$ui_enabled_for_themes = wp_is_auto_update_enabled_for_type( 'theme' );
$plugin_filter_present = has_filter( 'auto_update_plugin' );

View File

@@ -1042,7 +1042,17 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
echo '<ul id="the-comment-list" data-wp-lists="list:comment">';
foreach ( $comments as $comment ) {
_wp_dashboard_recent_comments_row( $comment );
$comment_post = get_post( $comment->comment_post_ID );
if (
current_user_can( 'edit_post', $comment->comment_post_ID ) ||
(
empty( $comment_post->post_password ) &&
current_user_can( 'read_post', $comment->comment_post_ID )
)
) {
_wp_dashboard_recent_comments_row( $comment );
}
}
echo '</ul>';
@@ -1379,9 +1389,11 @@ function wp_print_community_events_templates() {
</div>
<div class="event-date-time">
<span class="event-date">{{ event.formatted_date }}</span>
<span class="event-date">{{ event.user_formatted_date }}</span>
<# if ( 'meetup' === event.type ) { #>
<span class="event-time">{{ event.formatted_time }}</span>
<span class="event-time">
{{ event.user_formatted_time }} {{ event.timeZoneAbbreviation }}
</span>
<# } #>
</div>
</li>

View File

@@ -555,7 +555,7 @@ function wp_edit_theme_plugin_file( $args ) {
$url = admin_url();
}
if ( PHP_SESSION_ACTIVE === session_status() ) {
if ( function_exists( 'session_status' ) && PHP_SESSION_ACTIVE === session_status() ) {
// Close any active session to prevent HTTP requests from timing out
// when attempting to connect back to the site.
session_write_close();

View File

@@ -530,7 +530,7 @@ function wp_iframe( $content_func, ...$args ) {
?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup',
isRtl = <?php echo (int) is_rtl(); ?>;
</script>
<?php

View File

@@ -842,7 +842,7 @@ function can_edit_network( $network_id ) {
function _thickbox_path_admin_subfolder() {
?>
<script type="text/javascript">
var tb_pathToImage = "<?php echo includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ); ?>";
var tb_pathToImage = "<?php echo esc_js( includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ) ); ?>";
</script>
<?php
}

View File

@@ -1266,7 +1266,7 @@ function wp_edit_attachments_query_vars( $q = false ) {
// Filter query clauses to include filenames.
if ( isset( $q['s'] ) ) {
add_filter( 'posts_clauses', '_filter_query_attachment_filenames' );
add_filter( 'wp_allow_query_attachment_by_filename', '__return_true' );
}
return $q;

View File

@@ -120,7 +120,7 @@ function wp_terms_checklist( $post_id = 0, $args = array() ) {
$args['list_only'] = ! empty( $parsed_args['list_only'] );
if ( is_array( $parsed_args['selected_cats'] ) ) {
$args['selected_cats'] = $parsed_args['selected_cats'];
$args['selected_cats'] = array_map( 'intval', $parsed_args['selected_cats'] );
} elseif ( $post_id ) {
$args['selected_cats'] = wp_get_object_terms( $post_id, $taxonomy, array_merge( $args, array( 'fields' => 'ids' ) ) );
} else {
@@ -128,7 +128,7 @@ function wp_terms_checklist( $post_id = 0, $args = array() ) {
}
if ( is_array( $parsed_args['popular_cats'] ) ) {
$args['popular_cats'] = $parsed_args['popular_cats'];
$args['popular_cats'] = array_map( 'intval', $parsed_args['popular_cats'] );
} else {
$args['popular_cats'] = get_terms(
array(
@@ -2018,12 +2018,12 @@ function iframe_header( $title = '', $deprecated = false ) {
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();}
var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>',
pagenow = '<?php echo $current_screen->id; ?>',
typenow = '<?php echo $current_screen->post_type; ?>',
adminpage = '<?php echo $admin_body_class; ?>',
thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>',
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
pagenow = '<?php echo esc_js( $current_screen->id ); ?>',
typenow = '<?php echo esc_js( $current_screen->post_type ); ?>',
adminpage = '<?php echo esc_js( $admin_body_class ); ?>',
thousandsSeparator = '<?php echo esc_js( $wp_locale->number_format['thousands_sep'] ); ?>',
decimalPoint = '<?php echo esc_js( $wp_locale->number_format['decimal_point'] ); ?>',
isRtl = <?php echo (int) is_rtl(); ?>;
</script>
<?php
@@ -2214,6 +2214,9 @@ function get_post_states( $post ) {
*
* @since 2.8.0
* @since 3.6.0 Added the `$post` parameter.
* @since 5.5.0 Also applied in the Customizer context. If any admin functions
* are used within the filter, their existence should be checked
* with `function_exists()` before being used.
*
* @param string[] $post_states An array of post display states.
* @param WP_Post $post The current post object.

View File

@@ -647,12 +647,16 @@ function wp_prepare_themes_for_js( $themes = null ) {
}
}
$updates = array();
$updates = array();
$no_updates = array();
if ( current_user_can( 'update_themes' ) ) {
$updates_transient = get_site_transient( 'update_themes' );
if ( isset( $updates_transient->response ) ) {
$updates = $updates_transient->response;
}
if ( isset( $updates_transient->no_update ) ) {
$no_updates = $updates_transient->no_update;
}
}
WP_Theme::sort_by_name( $themes );
@@ -690,6 +694,32 @@ function wp_prepare_themes_for_js( $themes = null ) {
$auto_update = in_array( $slug, $auto_updates, true );
$auto_update_action = $auto_update ? 'disable-auto-update' : 'enable-auto-update';
if ( isset( $updates[ $slug ] ) ) {
$auto_update_supported = true;
$auto_update_filter_payload = (object) $updates[ $slug ];
} elseif ( isset( $no_updates[ $slug ] ) ) {
$auto_update_supported = true;
$auto_update_filter_payload = (object) $no_updates[ $slug ];
} else {
$auto_update_supported = false;
/*
* Create the expected payload for the auto_update_theme filter, this is the same data
* as contained within $updates or $no_updates but used when the Theme is not known.
*/
$auto_update_filter_payload = (object) array(
'theme' => $slug,
'new_version' => $theme->get( 'Version' ),
'url' => '',
'package' => '',
'requires' => $theme->get( 'RequiresWP' ),
'requires_php' => $theme->get( 'RequiresPHP' ),
);
}
$type = 'theme';
/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
$auto_update_forced = apply_filters( "auto_update_{$type}", null, $auto_update_filter_payload );
$prepared_themes[ $slug ] = array(
'id' => $slug,
'name' => $theme->display( 'Name' ),
@@ -710,7 +740,11 @@ function wp_prepare_themes_for_js( $themes = null ) {
'hasUpdate' => isset( $updates[ $slug ] ),
'hasPackage' => isset( $updates[ $slug ] ) && ! empty( $updates[ $slug ]['package'] ),
'update' => get_theme_update_available( $theme ),
'autoupdate' => $auto_update,
'autoupdate' => array(
'enabled' => $auto_update || $auto_update_forced,
'supported' => $auto_update_supported,
'forced' => $auto_update_forced,
),
'actions' => array(
'activate' => current_user_can( 'switch_themes' ) ? wp_nonce_url( admin_url( 'themes.php?action=activate&amp;stylesheet=' . $encoded_slug ), 'switch-theme_' . $slug ) : null,
'customize' => $customize_action,

View File

@@ -646,7 +646,7 @@ function wp_theme_update_row( $theme_key, $theme ) {
$requires_php = isset( $response['requires_php'] ) ? $response['requires_php'] : null;
$compatible_wp = is_wp_version_compatible( $requires_wp );
$compatible_php = is_php_version_compatible( $compatible_php );
$compatible_php = is_php_version_compatible( $requires_php );
printf(
'<tr class="plugin-update-tr%s" id="%s" data-slug="%s">' .

View File

@@ -1620,8 +1620,8 @@ function upgrade_280() {
$start = 0;
while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
foreach ( $rows as $row ) {
$value = $row->option_value;
if ( ! @unserialize( $value ) ) {
$value = maybe_unserialize( $row->option_value );
if ( $value === $row->option_value ) {
$value = stripslashes( $value );
}
if ( $value !== $row->option_value ) {
@@ -2174,9 +2174,6 @@ function upgrade_550() {
global $wp_current_db_version;
if ( $wp_current_db_version < 48121 ) {
update_option( 'finished_updating_comment_type', 0 );
wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
$comment_previously_approved = get_option( 'comment_whitelist', '' );
update_option( 'comment_previously_approved', $comment_previously_approved );
delete_option( 'comment_whitelist' );
@@ -2198,6 +2195,11 @@ function upgrade_550() {
delete_option( 'blacklist_keys' );
delete_option( 'blocklist_keys' );
}
if ( $wp_current_db_version < 48748 ) {
update_option( 'finished_updating_comment_type', 0 );
wp_schedule_single_event( time() + ( 1 * MINUTE_IN_SECONDS ), 'wp_update_comment_type_batch' );
}
}
/**
@@ -2565,7 +2567,7 @@ function __get_option( $setting ) { // phpcs:ignore WordPress.NamingConventions.
$option = $wpdb->get_var( $wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = %s", $setting ) );
if ( 'home' === $setting && '' === $option ) {
if ( 'home' === $setting && ! $option ) {
return __get_option( 'siteurl' );
}

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(e){e(document).ready(function(){e(".accordion-container").on("click keydown",".accordion-section-title",function(n){"keydown"===n.type&&13!==n.which||(n.preventDefault(),function(n){var e=n.closest(".accordion-section"),o=e.find("[aria-expanded]").first(),a=e.closest(".accordion-container"),i=a.find(".open"),t=i.find("[aria-expanded]").first(),s=e.find(".accordion-section-content");if(e.hasClass("cannot-expand"))return;a.addClass("opening"),e.hasClass("open")?(e.toggleClass("open"),s.toggle(!0).slideToggle(150)):(t.attr("aria-expanded","false"),i.removeClass("open"),i.find(".accordion-section-content").show().slideUp(150),s.toggle(!1).slideToggle(150),e.toggleClass("open"));setTimeout(function(){a.removeClass("opening")},150),o&&o.attr("aria-expanded",String("false"===o.attr("aria-expanded")))}(e(this)))})})}(jQuery);
!function(s){s(document).ready(function(){s(".accordion-container").on("click keydown",".accordion-section-title",function(e){var n,o,a,i,t;"keydown"===e.type&&13!==e.which||(e.preventDefault(),n=s(this),o=n.closest(".accordion-section"),a=o.find("[aria-expanded]").first(),i=o.closest(".accordion-container"),t=i.find(".open"),e=t.find("[aria-expanded]").first(),n=o.find(".accordion-section-content"),o.hasClass("cannot-expand")||(i.addClass("opening"),o.hasClass("open")?(o.toggleClass("open"),n.toggle(!0).slideToggle(150)):(e.attr("aria-expanded","false"),t.removeClass("open"),t.find(".accordion-section-content").show().slideUp(150),n.toggle(!1).slideToggle(150),o.toggleClass("open")),setTimeout(function(){i.removeClass("opening")},150),a&&a.attr("aria-expanded",String("false"===a.attr("aria-expanded")))))})})}(jQuery);

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
void 0===window.wp&&(window.wp={}),void 0===window.wp.codeEditor&&(window.wp.codeEditor={}),function(l,d){"use strict";d.codeEditor.defaultSettings={codemirror:{},csslint:{},htmlhint:{},jshint:{},onTabNext:function(){},onTabPrevious:function(){},onChangeLintingErrors:function(){},onUpdateErrorNotice:function(){}},d.codeEditor.initialize=function(t,n){var e,a,o,i;return e=l("string"==typeof t?"#"+t:t),(o=l.extend({},d.codeEditor.defaultSettings,n)).codemirror=l.extend({},o.codemirror),function(r,s){var a=[],d=[];function c(){s.onUpdateErrorNotice&&!_.isEqual(a,d)&&(s.onUpdateErrorNotice(a,r),d=a)}function u(){var i,t=r.getOption("lint");return!!t&&(!0===t?t={}:_.isObject(t)&&(t=l.extend({},t)),t.options||(t.options={}),"javascript"===s.codemirror.mode&&s.jshint&&l.extend(t.options,s.jshint),"css"===s.codemirror.mode&&s.csslint&&l.extend(t.options,s.csslint),"htmlmixed"===s.codemirror.mode&&s.htmlhint&&(t.options.rules=l.extend({},s.htmlhint),s.jshint&&(t.options.rules.jshint=s.jshint),s.csslint&&(t.options.rules.csslint=s.csslint)),t.onUpdateLinting=(i=t.onUpdateLinting,function(t,n,e){var o=_.filter(t,function(t){return"error"===t.severity});i&&i.apply(t,n,e),_.isEqual(o,a)||(a=o,s.onChangeLintingErrors&&s.onChangeLintingErrors(o,t,n,e),(!r.state.focused||0===a.length||0<d.length)&&c())}),t)}r.setOption("lint",u()),r.on("optionChange",function(t,n){var e,o,i="CodeMirror-lint-markers";"lint"===n&&(o=r.getOption("gutters")||[],!0===(e=r.getOption("lint"))?(_.contains(o,i)||r.setOption("gutters",[i].concat(o)),r.setOption("lint",u())):e||r.setOption("gutters",_.without(o,i)),r.getOption("lint")?r.performLint():(a=[],c()))}),r.on("blur",c),r.on("startCompletion",function(){r.off("blur",c)}),r.on("endCompletion",function(){r.on("blur",c),_.delay(function(){r.state.focused||c()},500)}),l(document.body).on("mousedown",function(t){!r.state.focused||l.contains(r.display.wrapper,t.target)||l(t.target).hasClass("CodeMirror-hint")||c()})}(a=d.CodeMirror.fromTextArea(e[0],o.codemirror),o),i={settings:o,codemirror:a},a.showHint&&a.on("keyup",function(t,n){var e,o,i,r,s=/^[a-zA-Z]$/.test(n.key);a.state.completionActive&&s||"string"!==(r=a.getTokenAt(a.getCursor())).type&&"comment"!==r.type&&(i=d.CodeMirror.innerMode(a.getMode(),r.state).mode.name,o=a.doc.getLine(a.doc.getCursor().line).substr(0,a.doc.getCursor().ch),"html"===i||"xml"===i?e="<"===n.key||"/"===n.key&&"tag"===r.type||s&&"tag"===r.type||s&&"attribute"===r.type||"="===r.string&&r.state.htmlState&&r.state.htmlState.tagName:"css"===i?e=s||":"===n.key||" "===n.key&&/:\s+$/.test(o):"javascript"===i?e=s||"."===n.key:"clike"===i&&"php"===a.options.mode&&(e="keyword"===r.type||"variable"===r.type),e&&a.showHint({completeSingle:!1}))}),function(e,o){var i=l(e.getTextArea());e.on("blur",function(){i.data("next-tab-blurs",!1)}),e.on("keydown",function(t,n){27!==n.keyCode?9===n.keyCode&&i.data("next-tab-blurs")&&(n.shiftKey?o.onTabPrevious(e,n):o.onTabNext(e,n),i.data("next-tab-blurs",!1),n.preventDefault()):i.data("next-tab-blurs",!0)})}(a,n),i}}(window.jQuery,window.wp);
void 0===window.wp&&(window.wp={}),void 0===window.wp.codeEditor&&(window.wp.codeEditor={}),function(u,d){"use strict";function s(r,s){var a=[],d=[];function c(){s.onUpdateErrorNotice&&!_.isEqual(a,d)&&(s.onUpdateErrorNotice(a,r),d=a)}function i(){var i,t=r.getOption("lint");return!!t&&(!0===t?t={}:_.isObject(t)&&(t=u.extend({},t)),t.options||(t.options={}),"javascript"===s.codemirror.mode&&s.jshint&&u.extend(t.options,s.jshint),"css"===s.codemirror.mode&&s.csslint&&u.extend(t.options,s.csslint),"htmlmixed"===s.codemirror.mode&&s.htmlhint&&(t.options.rules=u.extend({},s.htmlhint),s.jshint&&(t.options.rules.jshint=s.jshint),s.csslint&&(t.options.rules.csslint=s.csslint)),t.onUpdateLinting=(i=t.onUpdateLinting,function(t,e,n){var o=_.filter(t,function(t){return"error"===t.severity});i&&i.apply(t,e,n),_.isEqual(o,a)||(a=o,s.onChangeLintingErrors&&s.onChangeLintingErrors(o,t,e,n),(!r.state.focused||0===a.length||0<d.length)&&c())}),t)}r.setOption("lint",i()),r.on("optionChange",function(t,e){var n,o="CodeMirror-lint-markers";"lint"===e&&(n=r.getOption("gutters")||[],!0===(e=r.getOption("lint"))?(_.contains(n,o)||r.setOption("gutters",[o].concat(n)),r.setOption("lint",i())):e||r.setOption("gutters",_.without(n,o)),r.getOption("lint")?r.performLint():(a=[],c()))}),r.on("blur",c),r.on("startCompletion",function(){r.off("blur",c)}),r.on("endCompletion",function(){r.on("blur",c),_.delay(function(){r.state.focused||c()},500)}),u(document.body).on("mousedown",function(t){!r.state.focused||u.contains(r.display.wrapper,t.target)||u(t.target).hasClass("CodeMirror-hint")||c()})}d.codeEditor.defaultSettings={codemirror:{},csslint:{},htmlhint:{},jshint:{},onTabNext:function(){},onTabPrevious:function(){},onChangeLintingErrors:function(){},onUpdateErrorNotice:function(){}},d.codeEditor.initialize=function(t,e){var a,n,o,i,r=u("string"==typeof t?"#"+t:t),t=u.extend({},d.codeEditor.defaultSettings,e);return t.codemirror=u.extend({},t.codemirror),s(a=d.CodeMirror.fromTextArea(r[0],t.codemirror),t),t={settings:t,codemirror:a},a.showHint&&a.on("keyup",function(t,e){var n,o,i,r,s=/^[a-zA-Z]$/.test(e.key);a.state.completionActive&&s||"string"!==(r=a.getTokenAt(a.getCursor())).type&&"comment"!==r.type&&(i=d.CodeMirror.innerMode(a.getMode(),r.state).mode.name,o=a.doc.getLine(a.doc.getCursor().line).substr(0,a.doc.getCursor().ch),"html"===i||"xml"===i?n="<"===e.key||"/"===e.key&&"tag"===r.type||s&&"tag"===r.type||s&&"attribute"===r.type||"="===r.string&&r.state.htmlState&&r.state.htmlState.tagName:"css"===i?n=s||":"===e.key||" "===e.key&&/:\s+$/.test(o):"javascript"===i?n=s||"."===e.key:"clike"===i&&"php"===a.options.mode&&(n="keyword"===r.type||"variable"===r.type),n&&a.showHint({completeSingle:!1}))}),o=e,i=u((n=a).getTextArea()),n.on("blur",function(){i.data("next-tab-blurs",!1)}),n.on("keydown",function(t,e){27!==e.keyCode?9===e.keyCode&&i.data("next-tab-blurs")&&(e.shiftKey?o.onTabPrevious(n,e):o.onTabNext(n,e),i.data("next-tab-blurs",!1),e.preventDefault()):i.data("next-tab-blurs",!0)}),t}}(window.jQuery,window.wp);

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(i,t){var e,a=wp.i18n.__;e={options:{defaultColor:!1,change:!1,clear:!1,hide:!0,palettes:!0,width:255,mode:"hsv",type:"full",slider:"horizontal"},_createHueOnly:function(){var e,o=this,t=o.element;t.hide(),e="hsl("+t.val()+", 100, 50)",t.iris({mode:"hsl",type:"hue",hide:!1,color:e,change:function(e,t){i.isFunction(o.options.change)&&o.options.change.call(this,e,t)},width:o.options.width,slider:o.options.slider})},_create:function(){if(i.support.iris){var o=this,e=o.element;if(i.extend(o.options,e.data()),"hue"===o.options.type)return o._createHueOnly();o.close=i.proxy(o.close,o),o.initialValue=e.val(),e.addClass("wp-color-picker"),e.parent("label").length||(e.wrap("<label></label>"),o.wrappingLabelText=i('<span class="screen-reader-text"></span>').insertBefore(e).text(a("Color value"))),o.wrappingLabel=e.parent(),o.wrappingLabel.wrap('<div class="wp-picker-container" />'),o.wrap=o.wrappingLabel.parent(),o.toggler=i('<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>').insertBefore(o.wrappingLabel).css({backgroundColor:o.initialValue}),o.toggler.find(".wp-color-result-text").text(a("Select Color")),o.pickerContainer=i('<div class="wp-picker-holder" />').insertAfter(o.wrappingLabel),o.button=i('<input type="button" class="button button-small" />'),o.options.defaultColor?o.button.addClass("wp-picker-default").val(a("Default")).attr("aria-label",a("Select default color")):o.button.addClass("wp-picker-clear").val(a("Clear")).attr("aria-label",a("Clear color")),o.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(o.button),o.inputWrapper=e.closest(".wp-picker-input-wrap"),e.iris({target:o.pickerContainer,hide:o.options.hide,width:o.options.width,mode:o.options.mode,palettes:o.options.palettes,change:function(e,t){o.toggler.css({backgroundColor:t.color.toString()}),i.isFunction(o.options.change)&&o.options.change.call(this,e,t)}}),e.val(o.initialValue),o._addListeners(),o.options.hide||o.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on("click.wpcolorpicker",function(e){e.stopPropagation()}),o.toggler.click(function(){o.toggler.hasClass("wp-picker-open")?o.close():o.open()}),o.element.change(function(e){var t=i(this).val();""!==t&&"#"!==t||(o.toggler.css("backgroundColor",""),i.isFunction(o.options.clear)&&o.options.clear.call(this,e))}),o.button.click(function(e){var t=i(this);t.hasClass("wp-picker-clear")?(o.element.val(""),o.toggler.css("backgroundColor",""),i.isFunction(o.options.clear)&&o.options.clear.call(this,e)):t.hasClass("wp-picker-default")&&o.element.val(o.options.defaultColor).change()})},open:function(){this.element.iris("toggle"),this.inputWrapper.removeClass("hidden"),this.wrap.addClass("wp-picker-active"),this.toggler.addClass("wp-picker-open").attr("aria-expanded","true"),i("body").trigger("click.wpcolorpicker").on("click.wpcolorpicker",this.close)},close:function(){this.element.iris("toggle"),this.inputWrapper.addClass("hidden"),this.wrap.removeClass("wp-picker-active"),this.toggler.removeClass("wp-picker-open").attr("aria-expanded","false"),i("body").off("click.wpcolorpicker",this.close)},color:function(e){if(e===t)return this.element.iris("option","color");this.element.iris("option","color",e)},defaultColor:function(e){if(e===t)return this.options.defaultColor;this.options.defaultColor=e}},i.widget("wp.wpColorPicker",e)}(jQuery);
!function(i,t){var a=wp.i18n.__,e={options:{defaultColor:!1,change:!1,clear:!1,hide:!0,palettes:!0,width:255,mode:"hsv",type:"full",slider:"horizontal"},_createHueOnly:function(){var e,o=this,t=o.element;t.hide(),e="hsl("+t.val()+", 100, 50)",t.iris({mode:"hsl",type:"hue",hide:!1,color:e,change:function(e,t){i.isFunction(o.options.change)&&o.options.change.call(this,e,t)},width:o.options.width,slider:o.options.slider})},_create:function(){if(i.support.iris){var o=this,e=o.element;if(i.extend(o.options,e.data()),"hue"===o.options.type)return o._createHueOnly();o.close=i.proxy(o.close,o),o.initialValue=e.val(),e.addClass("wp-color-picker"),e.parent("label").length||(e.wrap("<label></label>"),o.wrappingLabelText=i('<span class="screen-reader-text"></span>').insertBefore(e).text(a("Color value"))),o.wrappingLabel=e.parent(),o.wrappingLabel.wrap('<div class="wp-picker-container" />'),o.wrap=o.wrappingLabel.parent(),o.toggler=i('<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>').insertBefore(o.wrappingLabel).css({backgroundColor:o.initialValue}),o.toggler.find(".wp-color-result-text").text(a("Select Color")),o.pickerContainer=i('<div class="wp-picker-holder" />').insertAfter(o.wrappingLabel),o.button=i('<input type="button" class="button button-small" />'),o.options.defaultColor?o.button.addClass("wp-picker-default").val(a("Default")).attr("aria-label",a("Select default color")):o.button.addClass("wp-picker-clear").val(a("Clear")).attr("aria-label",a("Clear color")),o.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(o.button),o.inputWrapper=e.closest(".wp-picker-input-wrap"),e.iris({target:o.pickerContainer,hide:o.options.hide,width:o.options.width,mode:o.options.mode,palettes:o.options.palettes,change:function(e,t){o.toggler.css({backgroundColor:t.color.toString()}),i.isFunction(o.options.change)&&o.options.change.call(this,e,t)}}),e.val(o.initialValue),o._addListeners(),o.options.hide||o.toggler.click()}},_addListeners:function(){var o=this;o.wrap.on("click.wpcolorpicker",function(e){e.stopPropagation()}),o.toggler.click(function(){o.toggler.hasClass("wp-picker-open")?o.close():o.open()}),o.element.change(function(e){var t=i(this).val();""!==t&&"#"!==t||(o.toggler.css("backgroundColor",""),i.isFunction(o.options.clear)&&o.options.clear.call(this,e))}),o.button.click(function(e){var t=i(this);t.hasClass("wp-picker-clear")?(o.element.val(""),o.toggler.css("backgroundColor",""),i.isFunction(o.options.clear)&&o.options.clear.call(this,e)):t.hasClass("wp-picker-default")&&o.element.val(o.options.defaultColor).change()})},open:function(){this.element.iris("toggle"),this.inputWrapper.removeClass("hidden"),this.wrap.addClass("wp-picker-active"),this.toggler.addClass("wp-picker-open").attr("aria-expanded","true"),i("body").trigger("click.wpcolorpicker").on("click.wpcolorpicker",this.close)},close:function(){this.element.iris("toggle"),this.inputWrapper.addClass("hidden"),this.wrap.removeClass("wp-picker-active"),this.toggler.removeClass("wp-picker-open").attr("aria-expanded","false"),i("body").off("click.wpcolorpicker",this.close)},color:function(e){if(e===t)return this.element.iris("option","color");this.element.iris("option","color",e)},defaultColor:function(e){if(e===t)return this.options.defaultColor;this.options.defaultColor=e}};i.widget("wp.wpColorPicker",e)}(jQuery);

View File

@@ -16,7 +16,340 @@
var $document = $( document ),
$window = $( window ),
$body = $( document.body ),
__ = wp.i18n.__;
__ = wp.i18n.__,
sprintf = wp.i18n.sprintf;
/**
* Throws an error for a deprecated property.
*
* @since 5.5.1
*
* @param {string} propName The property that was used.
* @param {string} version The version of WordPress that deprecated the property.
* @param {string} replacement The property that should have been used.
*/
function deprecatedProperty( propName, version, replacement ) {
var message;
if ( 'undefined' !== typeof replacement ) {
message = sprintf(
/* translators: 1: Deprecated property name, 2: Version number, 3: Alternative property name. */
__( '%1$s is deprecated since version %2$s! Use %3$s instead.' ),
propName,
version,
replacement
);
} else {
message = sprintf(
/* translators: 1: Deprecated property name, 2: Version number. */
__( '%1$s is deprecated since version %2$s with no alternative available.' ),
propName,
version
);
}
window.console.warn( message );
}
/**
* Deprecate all properties on an object.
*
* @since 5.5.1
*
* @param {string} name The name of the object, i.e. commonL10n.
* @param {object} l10nObject The object to deprecate the properties on.
*
* @return {object} The object with all its properties deprecated.
*/
function deprecateL10nObject( name, l10nObject ) {
var deprecatedObject = {};
Object.keys( l10nObject ).forEach( function( key ) {
var prop = l10nObject[ key ];
var propName = name + '.' + key;
if ( 'object' === typeof prop ) {
Object.defineProperty( deprecatedObject, key, { get: function() {
deprecatedProperty( propName, '5.5.0', prop.alternative );
return prop.func();
} } );
} else {
Object.defineProperty( deprecatedObject, key, { get: function() {
deprecatedProperty( propName, '5.5.0', 'wp.i18n' );
return prop;
} } );
}
} );
return deprecatedObject;
}
window.wp.deprecateL10nObject = deprecateL10nObject;
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.6.0
* @deprecated 5.5.0
*/
window.commonL10n = window.commonL10n || {
warnDelete: '',
dismiss: '',
collapseMenu: '',
expandMenu: ''
};
window.commonL10n = deprecateL10nObject( 'commonL10n', window.commonL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 3.3.0
* @deprecated 5.5.0
*/
window.wpPointerL10n = window.wpPointerL10n || {
dismiss: ''
};
window.wpPointerL10n = deprecateL10nObject( 'wpPointerL10n', window.wpPointerL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 4.3.0
* @deprecated 5.5.0
*/
window.userProfileL10n = window.userProfileL10n || {
warn: '',
warnWeak: '',
show: '',
hide: '',
cancel: '',
ariaShow: '',
ariaHide: ''
};
window.userProfileL10n = deprecateL10nObject( 'userProfileL10n', window.userProfileL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 4.9.6
* @deprecated 5.5.0
*/
window.privacyToolsL10n = window.privacyToolsL10n || {
noDataFound: '',
foundAndRemoved: '',
noneRemoved: '',
someNotRemoved: '',
removalError: '',
emailSent: '',
noExportFile: '',
exportError: ''
};
window.privacyToolsL10n = deprecateL10nObject( 'privacyToolsL10n', window.privacyToolsL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 3.6.0
* @deprecated 5.5.0
*/
window.authcheckL10n = {
beforeunload: ''
};
window.authcheckL10n = window.authcheckL10n || deprecateL10nObject( 'authcheckL10n', window.authcheckL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.8.0
* @deprecated 5.5.0
*/
window.tagsl10n = {
noPerm: '',
broken: ''
};
window.tagsl10n = window.tagsl10n || deprecateL10nObject( 'tagsl10n', window.tagsl10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.5.0
* @deprecated 5.5.0
*/
window.adminCommentsL10n = window.adminCommentsL10n || {
hotkeys_highlight_first: {
alternative: 'window.adminCommentsSettings.hotkeys_highlight_first',
func: function() { return window.adminCommentsSettings.hotkeys_highlight_first; }
},
hotkeys_highlight_last: {
alternative: 'window.adminCommentsSettings.hotkeys_highlight_last',
func: function() { return window.adminCommentsSettings.hotkeys_highlight_last; }
},
replyApprove: '',
reply: '',
warnQuickEdit: '',
warnCommentChanges: '',
docTitleComments: '',
docTitleCommentsCount: ''
};
window.adminCommentsL10n = deprecateL10nObject( 'adminCommentsL10n', window.adminCommentsL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.5.0
* @deprecated 5.5.0
*/
window.tagsSuggestL10n = window.tagsSuggestL10n || {
tagDelimiter: '',
removeTerm: '',
termSelected: '',
termAdded: '',
termRemoved: ''
};
window.tagsSuggestL10n = deprecateL10nObject( 'tagsSuggestL10n', window.tagsSuggestL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 3.5.0
* @deprecated 5.5.0
*/
window.wpColorPickerL10n = window.wpColorPickerL10n || {
clear: '',
clearAriaLabel: '',
defaultString: '',
defaultAriaLabel: '',
pick: '',
defaultLabel: ''
};
window.wpColorPickerL10n = deprecateL10nObject( 'wpColorPickerL10n', window.wpColorPickerL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.7.0
* @deprecated 5.5.0
*/
window.attachMediaBoxL10n = window.attachMediaBoxL10n || {
error: ''
};
window.attachMediaBoxL10n = deprecateL10nObject( 'attachMediaBoxL10n', window.attachMediaBoxL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.5.0
* @deprecated 5.5.0
*/
window.postL10n = window.postL10n || {
ok: '',
cancel: '',
publishOn: '',
publishOnFuture: '',
publishOnPast: '',
dateFormat: '',
showcomm: '',
endcomm: '',
publish: '',
schedule: '',
update: '',
savePending: '',
saveDraft: '',
'private': '',
'public': '',
publicSticky: '',
password: '',
privatelyPublished: '',
published: '',
saveAlert: '',
savingText: '',
permalinkSaved: ''
};
window.postL10n = deprecateL10nObject( 'postL10n', window.postL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.7.0
* @deprecated 5.5.0
*/
window.inlineEditL10n = window.inlineEditL10n || {
error: '',
ntdeltitle: '',
notitle: '',
comma: '',
saved: ''
};
window.inlineEditL10n = deprecateL10nObject( 'inlineEditL10n', window.inlineEditL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.7.0
* @deprecated 5.5.0
*/
window.plugininstallL10n = window.plugininstallL10n || {
plugin_information: '',
plugin_modal_label: '',
ays: ''
};
window.plugininstallL10n = deprecateL10nObject( 'plugininstallL10n', window.plugininstallL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 3.0.0
* @deprecated 5.5.0
*/
window.navMenuL10n = window.navMenuL10n || {
noResultsFound: '',
warnDeleteMenu: '',
saveAlert: '',
untitled: ''
};
window.navMenuL10n = deprecateL10nObject( 'navMenuL10n', window.navMenuL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.5.0
* @deprecated 5.5.0
*/
window.commentL10n = window.commentL10n || {
submittedOn: '',
dateFormat: ''
};
window.commentL10n = deprecateL10nObject( 'commentL10n', window.commentL10n );
/**
* Removed in 5.5.0, needed for back-compatibility.
*
* @since 2.9.0
* @deprecated 5.5.0
*/
window.setPostThumbnailL10n = window.setPostThumbnailL10n || {
setThumbnail: '',
saving: '',
error: '',
done: ''
};
window.setPostThumbnailL10n = deprecateL10nObject( 'setPostThumbnailL10n', window.setPostThumbnailL10n );
/**
* Removed in 3.3.0, needed for back-compatibility.

File diff suppressed because one or more lines are too long

View File

@@ -126,11 +126,13 @@
frame.on( 'select', function() {
// Grab the selected attachment.
var attachment = frame.state().get('selection').first();
var nonceValue = $( '#_wpnonce' ).val() || '';
// Run an Ajax request to set the background image.
$.post( ajaxurl, {
action: 'set-background-image',
attachment_id: attachment.id,
_ajax_nonce: nonceValue,
size: 'full'
}).done( function() {
// When the request completes, reload the window.

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
!function(e){e(document).ready(function(){var o,t=e("#custom-background-image");e("#background-color").wpColorPicker({change:function(n,c){t.css("background-color",c.color.toString())},clear:function(){t.css("background-color","")}}),e('select[name="background-size"]').change(function(){t.css("background-size",e(this).val())}),e('input[name="background-position"]').change(function(){t.css("background-position",e(this).val())}),e('input[name="background-repeat"]').change(function(){t.css("background-repeat",e(this).is(":checked")?"repeat":"no-repeat")}),e('input[name="background-attachment"]').change(function(){t.css("background-attachment",e(this).is(":checked")?"scroll":"fixed")}),e("#choose-from-library-link").click(function(n){var c=e(this);n.preventDefault(),o||(o=wp.media.frames.customBackground=wp.media({title:c.data("choose"),library:{type:"image"},button:{text:c.data("update"),close:!1}})).on("select",function(){var n=o.state().get("selection").first();e.post(ajaxurl,{action:"set-background-image",attachment_id:n.id,size:"full"}).done(function(){window.location.reload()})}),o.open()})})}(jQuery);
!function(e){e(document).ready(function(){var o,a=e("#custom-background-image");e("#background-color").wpColorPicker({change:function(n,c){a.css("background-color",c.color.toString())},clear:function(){a.css("background-color","")}}),e('select[name="background-size"]').change(function(){a.css("background-size",e(this).val())}),e('input[name="background-position"]').change(function(){a.css("background-position",e(this).val())}),e('input[name="background-repeat"]').change(function(){a.css("background-repeat",e(this).is(":checked")?"repeat":"no-repeat")}),e('input[name="background-attachment"]').change(function(){a.css("background-attachment",e(this).is(":checked")?"scroll":"fixed")}),e("#choose-from-library-link").click(function(n){var c=e(this);n.preventDefault(),o||(o=wp.media.frames.customBackground=wp.media({title:c.data("choose"),library:{type:"image"},button:{text:c.data("update"),close:!1}})).on("select",function(){var n=o.state().get("selection").first(),c=e("#_wpnonce").val()||"";e.post(ajaxurl,{action:"set-background-image",attachment_id:n.id,_ajax_nonce:c,size:"full"}).done(function(){window.location.reload()})}),o.open()})})}(jQuery);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -266,6 +266,11 @@ jQuery( function( $ ) {
'use strict';
var communityEventsData = window.communityEventsData || {},
dateI18n = wp.date.dateI18n,
format = wp.date.format,
sprintf = wp.i18n.sprintf,
__ = wp.i18n.__,
_x = wp.i18n._x,
app;
/**
@@ -441,6 +446,7 @@ jQuery( function( $ ) {
.fail( function() {
app.renderEventsTemplate({
'location' : false,
'events' : [],
'error' : true
}, initiatedBy );
});
@@ -465,6 +471,11 @@ jQuery( function( $ ) {
$locationMessage = $( '#community-events-location-message' ),
$results = $( '.community-events-results' );
templateParams.events = app.populateDynamicEventFields(
templateParams.events,
communityEventsData.time_format
);
/*
* Hide all toggleable elements by default, to keep the logic simple.
* Otherwise, each block below would have to turn hide everything that
@@ -576,6 +587,195 @@ jQuery( function( $ ) {
} else {
app.toggleLocationForm( 'show' );
}
},
/**
* Populate event fields that have to be calculated on the fly.
*
* These can't be stored in the database, because they're dependent on
* the user's current time zone, locale, etc.
*
* @since 5.5.2
*
* @param {Array} rawEvents The events that should have dynamic fields added to them.
* @param {string} timeFormat A time format acceptable by `wp.date.dateI18n()`.
*
* @returns {Array}
*/
populateDynamicEventFields: function( rawEvents, timeFormat ) {
// Clone the parameter to avoid mutating it, so that this can remain a pure function.
var populatedEvents = JSON.parse( JSON.stringify( rawEvents ) );
$.each( populatedEvents, function( index, event ) {
var timeZone = app.getTimeZone( event.start_unix_timestamp * 1000 );
event.user_formatted_date = app.getFormattedDate(
event.start_unix_timestamp * 1000,
event.end_unix_timestamp * 1000,
timeZone
);
event.user_formatted_time = dateI18n(
timeFormat,
event.start_unix_timestamp * 1000,
timeZone
);
event.timeZoneAbbreviation = app.getTimeZoneAbbreviation( event.start_unix_timestamp * 1000 );
} );
return populatedEvents;
},
/**
* Returns the user's local/browser time zone, in a form suitable for `wp.date.i18n()`.
*
* @since 5.5.2
*
* @param startTimestamp
*
* @returns {string|number}
*/
getTimeZone: function( startTimestamp ) {
/*
* Prefer a name like `Europe/Helsinki`, since that automatically tracks daylight savings. This
* doesn't need to take `startTimestamp` into account for that reason.
*/
var timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
/*
* Fall back to an offset for IE11, which declares the property but doesn't assign a value.
*/
if ( 'undefined' === typeof timeZone ) {
/*
* It's important to use the _event_ time, not the _current_
* time, so that daylight savings time is accounted for.
*/
timeZone = app.getFlippedTimeZoneOffset( startTimestamp );
}
return timeZone;
},
/**
* Get intuitive time zone offset.
*
* `Data.prototype.getTimezoneOffset()` returns a positive value for time zones
* that are _behind_ UTC, and a _negative_ value for ones that are ahead.
*
* See https://stackoverflow.com/questions/21102435/why-does-javascript-date-gettimezoneoffset-consider-0500-as-a-positive-off.
*
* @since 5.5.2
*
* @param {number} startTimestamp
*
* @returns {number}
*/
getFlippedTimeZoneOffset: function( startTimestamp ) {
return new Date( startTimestamp ).getTimezoneOffset() * -1;
},
/**
* Get a short time zone name, like `PST`.
*
* @since 5.5.2
*
* @param {number} startTimestamp
*
* @returns {string}
*/
getTimeZoneAbbreviation: function( startTimestamp ) {
var timeZoneAbbreviation,
eventDateTime = new Date( startTimestamp );
/*
* Leaving the `locales` argument undefined is important, so that the browser
* displays the abbreviation that's most appropriate for the current locale. For
* some that will be `UTC{+|-}{n}`, and for others it will be a code like `PST`.
*
* This doesn't need to take `startTimestamp` into account, because a name like
* `America/Chicago` automatically tracks daylight savings.
*/
var shortTimeStringParts = eventDateTime.toLocaleTimeString( undefined, { timeZoneName : 'short' } ).split( ' ' );
if ( 3 === shortTimeStringParts.length ) {
timeZoneAbbreviation = shortTimeStringParts[2];
}
if ( 'undefined' === typeof timeZoneAbbreviation ) {
/*
* It's important to use the _event_ time, not the _current_
* time, so that daylight savings time is accounted for.
*/
var timeZoneOffset = app.getFlippedTimeZoneOffset( startTimestamp ),
sign = -1 === Math.sign( timeZoneOffset ) ? '' : '+';
// translators: Used as part of a string like `GMT+5` in the Events Widget.
timeZoneAbbreviation = _x( 'GMT', 'Events widget offset prefix' ) + sign + ( timeZoneOffset / 60 );
}
return timeZoneAbbreviation;
},
/**
* Format a start/end date in the user's local time zone and locale.
*
* @since 5.5.2
*
* @param {int} startDate The Unix timestamp in milliseconds when the the event starts.
* @param {int} endDate The Unix timestamp in milliseconds when the the event ends.
* @param {string} timeZone A time zone string or offset which is parsable by `wp.date.i18n()`.
*
* @returns {string}
*/
getFormattedDate: function( startDate, endDate, timeZone ) {
var formattedDate;
/*
* The `date_format` option is not used because it's important
* in this context to keep the day of the week in the displayed date,
* so that users can tell at a glance if the event is on a day they
* are available, without having to open the link.
*
* The case of crossing a year boundary is intentionally not handled.
* It's so rare in practice that it's not worth the complexity
* tradeoff. The _ending_ year should be passed to
* `multiple_month_event`, though, just in case.
*/
/* translators: Date format for upcoming events on the dashboard. Include the day of the week. See https://www.php.net/manual/datetime.format.php */
var singleDayEvent = __( 'l, M j, Y' ),
/* translators: Date string for upcoming events. 1: Month, 2: Starting day, 3: Ending day, 4: Year. */
multipleDayEvent = __( '%1$s %2$d%3$d, %4$d' ),
/* translators: Date string for upcoming events. 1: Starting month, 2: Starting day, 3: Ending month, 4: Ending day, 5: Ending year. */
multipleMonthEvent = __( '%1$s %2$d %3$s %4$d, %5$d' );
// Detect single-day events.
if ( ! endDate || format( 'Y-m-d', startDate ) === format( 'Y-m-d', endDate ) ) {
formattedDate = dateI18n( singleDayEvent, startDate, timeZone );
// Multiple day events.
} else if ( format( 'Y-m', startDate ) === format( 'Y-m', endDate ) ) {
formattedDate = sprintf(
multipleDayEvent,
dateI18n( _x( 'F', 'upcoming events month format' ), startDate, timeZone ),
dateI18n( _x( 'j', 'upcoming events day format' ), startDate, timeZone ),
dateI18n( _x( 'j', 'upcoming events day format' ), endDate, timeZone ),
dateI18n( _x( 'Y', 'upcoming events year format' ), endDate, timeZone )
);
// Multi-day events that cross a month boundary.
} else {
formattedDate = sprintf(
multipleMonthEvent,
dateI18n( _x( 'F', 'upcoming events month format' ), startDate, timeZone ),
dateI18n( _x( 'j', 'upcoming events day format' ), startDate, timeZone ),
dateI18n( _x( 'F', 'upcoming events month format' ), endDate, timeZone ),
dateI18n( _x( 'j', 'upcoming events day format' ), endDate, timeZone ),
dateI18n( _x( 'Y', 'upcoming events year format' ), endDate, timeZone )
);
}
return formattedDate;
}
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,2 @@
/*! This file is auto-generated */
jQuery(document).ready(function(l){var e,t,i,n,o=!1;e=function(){l("#media-items").sortable({items:"div.media-item",placeholder:"sorthelper",axis:"y",distance:2,handle:"div.filename",stop:function(){var e=l("#media-items").sortable("toArray"),n=e.length;l.each(e,function(e,t){var i=o?n-e:1+e;l("#"+t+" .menu_order input").val(i)})}})},t=function(){var e=l(".menu_order_input"),i=e.length;e.each(function(e){var t=o?i-e:1+e;l(this).val(t)})},i=function(e){e=e||0,l(".menu_order_input").each(function(){"0"!==this.value&&!e||(this.value="")})},l("#asc").click(function(e){e.preventDefault(),o=!1,t()}),l("#desc").click(function(e){e.preventDefault(),o=!0,t()}),l("#clear").click(function(e){e.preventDefault(),i(1)}),l("#showall").click(function(e){e.preventDefault(),l("#sort-buttons span a").toggle(),l("a.describe-toggle-on").hide(),l("a.describe-toggle-off, table.slidetoggle").show(),l("img.pinkynail").toggle(!1)}),l("#hideall").click(function(e){e.preventDefault(),l("#sort-buttons span a").toggle(),l("a.describe-toggle-on").show(),l("a.describe-toggle-off, table.slidetoggle").hide(),l("img.pinkynail").toggle(!0)}),e(),i(),1<l("#media-items>*").length&&(n=wpgallery.getWin(),l("#save-all, #gallery-settings").show(),void 0!==n.tinyMCE&&n.tinyMCE.activeEditor&&!n.tinyMCE.activeEditor.isHidden()?(wpgallery.mcemode=!0,wpgallery.init()):l("#insert-gallery").show())}),jQuery(window).unload(function(){window.tinymce=window.tinyMCE=window.wpgallery=null}),window.tinymce=null,window.wpgallery={mcemode:!1,editor:{},dom:{},is_update:!1,el:{},I:function(e){return document.getElementById(e)},init:function(){var e,t,i,n,l=this,o=l.getWin();if(l.mcemode){for(e=(""+document.location.search).replace(/^\?/,"").split("&"),t={},i=0;i<e.length;i++)n=e[i].split("="),t[unescape(n[0])]=unescape(n[1]);t.mce_rdomain&&(document.domain=t.mce_rdomain),window.tinymce=o.tinymce,window.tinyMCE=o.tinyMCE,l.editor=tinymce.EditorManager.activeEditor,l.setup()}},getWin:function(){return window.dialogArguments||opener||parent||top},setup:function(){var e,t,i,n,l,o,r=this,a=r.editor;if(r.mcemode){if(r.el=a.selection.getNode(),"IMG"!==r.el.nodeName||!a.dom.hasClass(r.el,"wpGallery")){if(!(t=a.dom.select("img.wpGallery"))||!t[0])return"1"===getUserSetting("galfile")&&(r.I("linkto-file").checked="checked"),"1"===getUserSetting("galdesc")&&(r.I("order-desc").checked="checked"),getUserSetting("galcols")&&(r.I("columns").value=getUserSetting("galcols")),getUserSetting("galord")&&(r.I("orderby").value=getUserSetting("galord")),void jQuery("#insert-gallery").show();r.el=t[0]}e=a.dom.getAttrib(r.el,"title"),(e=a.dom.decode(e))?(jQuery("#update-gallery").show(),r.is_update=!0,i=e.match(/columns=['"]([0-9]+)['"]/),n=e.match(/link=['"]([^'"]+)['"]/i),l=e.match(/order=['"]([^'"]+)['"]/i),o=e.match(/orderby=['"]([^'"]+)['"]/i),n&&n[1]&&(r.I("linkto-file").checked="checked"),l&&l[1]&&(r.I("order-desc").checked="checked"),i&&i[1]&&(r.I("columns").value=""+i[1]),o&&o[1]&&(r.I("orderby").value=o[1])):jQuery("#insert-gallery").show()}},update:function(){var e,t=this,i=t.editor,n="";if(!t.mcemode||!t.is_update)return e="[gallery"+t.getSettings()+"]",void t.getWin().send_to_editor(e);"IMG"===t.el.nodeName&&(n=(n=i.dom.decode(i.dom.getAttrib(t.el,"title"))).replace(/\s*(order|link|columns|orderby)=['"]([^'"]+)['"]/gi,""),n+=t.getSettings(),i.dom.setAttrib(t.el,"title",n),t.getWin().tb_remove())},getSettings:function(){var e=this.I,t="";return e("linkto-file").checked&&(t+=' link="file"',setUserSetting("galfile","1")),e("order-desc").checked&&(t+=' order="DESC"',setUserSetting("galdesc","1")),3!==e("columns").value&&(t+=' columns="'+e("columns").value+'"',setUserSetting("galcols",e("columns").value)),"menu_order"!==e("orderby").value&&(t+=' orderby="'+e("orderby").value+'"',setUserSetting("galord",e("orderby").value)),t}};
jQuery(document).ready(function(n){var l=!1,e=function(){n("#media-items").sortable({items:"div.media-item",placeholder:"sorthelper",axis:"y",distance:2,handle:"div.filename",stop:function(){var e=n("#media-items").sortable("toArray"),i=e.length;n.each(e,function(e,t){e=l?i-e:1+e;n("#"+t+" .menu_order input").val(e)})}})},t=function(){var e=n(".menu_order_input"),t=e.length;e.each(function(e){e=l?t-e:1+e;n(this).val(e)})},i=function(e){e=e||0,n(".menu_order_input").each(function(){"0"!==this.value&&!e||(this.value="")})};n("#asc").click(function(e){e.preventDefault(),l=!1,t()}),n("#desc").click(function(e){e.preventDefault(),l=!0,t()}),n("#clear").click(function(e){e.preventDefault(),i(1)}),n("#showall").click(function(e){e.preventDefault(),n("#sort-buttons span a").toggle(),n("a.describe-toggle-on").hide(),n("a.describe-toggle-off, table.slidetoggle").show(),n("img.pinkynail").toggle(!1)}),n("#hideall").click(function(e){e.preventDefault(),n("#sort-buttons span a").toggle(),n("a.describe-toggle-on").show(),n("a.describe-toggle-off, table.slidetoggle").hide(),n("img.pinkynail").toggle(!0)}),e(),i(),1<n("#media-items>*").length&&(e=wpgallery.getWin(),n("#save-all, #gallery-settings").show(),void 0!==e.tinyMCE&&e.tinyMCE.activeEditor&&!e.tinyMCE.activeEditor.isHidden()?(wpgallery.mcemode=!0,wpgallery.init()):n("#insert-gallery").show())}),jQuery(window).unload(function(){window.tinymce=window.tinyMCE=window.wpgallery=null}),window.tinymce=null,window.wpgallery={mcemode:!1,editor:{},dom:{},is_update:!1,el:{},I:function(e){return document.getElementById(e)},init:function(){var e,t,i,n,l=this,o=l.getWin();if(l.mcemode){for(e=(""+document.location.search).replace(/^\?/,"").split("&"),t={},i=0;i<e.length;i++)n=e[i].split("="),t[unescape(n[0])]=unescape(n[1]);t.mce_rdomain&&(document.domain=t.mce_rdomain),window.tinymce=o.tinymce,window.tinyMCE=o.tinyMCE,l.editor=tinymce.EditorManager.activeEditor,l.setup()}},getWin:function(){return window.dialogArguments||opener||parent||top},setup:function(){var e,t,i,n=this,l=n.editor;if(n.mcemode){if(n.el=l.selection.getNode(),"IMG"!==n.el.nodeName||!l.dom.hasClass(n.el,"wpGallery")){if(!(t=l.dom.select("img.wpGallery"))||!t[0])return"1"===getUserSetting("galfile")&&(n.I("linkto-file").checked="checked"),"1"===getUserSetting("galdesc")&&(n.I("order-desc").checked="checked"),getUserSetting("galcols")&&(n.I("columns").value=getUserSetting("galcols")),getUserSetting("galord")&&(n.I("orderby").value=getUserSetting("galord")),void jQuery("#insert-gallery").show();n.el=t[0]}i=l.dom.getAttrib(n.el,"title"),(i=l.dom.decode(i))?(jQuery("#update-gallery").show(),n.is_update=!0,e=i.match(/columns=['"]([0-9]+)['"]/),t=i.match(/link=['"]([^'"]+)['"]/i),l=i.match(/order=['"]([^'"]+)['"]/i),i=i.match(/orderby=['"]([^'"]+)['"]/i),t&&t[1]&&(n.I("linkto-file").checked="checked"),l&&l[1]&&(n.I("order-desc").checked="checked"),e&&e[1]&&(n.I("columns").value=""+e[1]),i&&i[1]&&(n.I("orderby").value=i[1])):jQuery("#insert-gallery").show()}},update:function(){var e,t=this,i=t.editor,n="";if(!t.mcemode||!t.is_update)return e="[gallery"+t.getSettings()+"]",void t.getWin().send_to_editor(e);"IMG"===t.el.nodeName&&(n=(n=i.dom.decode(i.dom.getAttrib(t.el,"title"))).replace(/\s*(order|link|columns|orderby)=['"]([^'"]+)['"]/gi,""),n+=t.getSettings(),i.dom.setAttrib(t.el,"title",n),t.getWin().tb_remove())},getSettings:function(){var e=this.I,t="";return e("linkto-file").checked&&(t+=' link="file"',setUserSetting("galfile","1")),e("order-desc").checked&&(t+=' order="DESC"',setUserSetting("galdesc","1")),3!==e("columns").value&&(t+=' columns="'+e("columns").value+'"',setUserSetting("galcols",e("columns").value)),"menu_order"!==e("orderby").value&&(t+=' orderby="'+e("orderby").value+'"',setUserSetting("galord",e("orderby").value)),t}};

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More