Compare commits

..

89 Commits

Author SHA1 Message Date
Aaron Jorbin
6abb46bec8 Tag 6.7.2
Built from https://develop.svn.wordpress.org/tags/6.7.2@59808


git-svn-id: http://core.svn.wordpress.org/tags/6.7.2@59150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 16:13:18 +00:00
Aaron Jorbin
f57ba99bf6 WordPress 6.7.2.
Built from https://develop.svn.wordpress.org/branches/6.7@59807


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59149 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-11 16:11:17 +00:00
Aaron Jorbin
988044f90e Post WordPress 6.7.2 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59782


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 18:19:19 +00:00
Aaron Jorbin
2b296c1659 WordPress 6.7.2 RC2.
Built from https://develop.svn.wordpress.org/branches/6.7@59781


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59123 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 17:59:14 +00:00
Aaron Jorbin
a678bae4c0 Editor: update npm packages for 6.7.1.
Syncs Editor packages for WordPress 6.7.2 RC1. Includes the following PRs:

- fix ensure post meta panel stays visible in all rendering modes gutenberg#69083

Reviewed-by desrosj.

Props fabiankaegy, presstoke, poena, jorbin.
Fixes #62889.

Built from https://develop.svn.wordpress.org/branches/6.7@59780


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 17:31:23 +00:00
Aaron Jorbin
e0d16abd7f General: Add styles for extender usage of do_accordion_section().
Follow up to [59224]. Add CSS to cover usage of the do_accordion_section() function when used in extender contexts outside of the existing WordPress core usage.

Reviewed-by joemcgill, jorbin.
Merges [59772] to 6.7 brnch.

Props mboynes, jorbin, joemcgill, joedolson.
Fixes #62907.

Built from https://develop.svn.wordpress.org/branches/6.7@59779


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 16:19:10 +00:00
Joe McGill
c981126ec0 Post Thumbnails: Fix squashed featured image in wp-admin.
This updates the CSS for featured images in the classic editor that caused images to look skewed when auto-sizes are enabled.

Reviewed by jorbin.
Merges [59773] to the 6.7 branch.

Props maciejmackowiak, sainathpoojary, mukesh27, joemcgill.
Fixes #62597.

Built from https://develop.svn.wordpress.org/branches/6.7@59778


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59120 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-07 16:17:19 +00:00
Aaron Jorbin
00e8b60dd6 Post WordPress 6.7.2 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59764


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 18:20:18 +00:00
Aaron Jorbin
2b2e3ea59c WordPress 6.7.2 RC1
Built from https://develop.svn.wordpress.org/branches/6.7@59763


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59105 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 17:47:23 +00:00
Aaron Jorbin
7c8ee53ae9 Editor: update npm packages for 6.7.1.
Syncs Editor packages for WordPress 6.7.2 RC1. Includes the following PRs:

- PostTitle: exit early when post type doesn't support titles WordPress/gutenberg#67086
- Patterns: receive intermediate responses while unbound request is resolving WordPress/gutenberg#66713 WordPress/gutenberg#67244
- Fix: Show Meta Boxes at the bottom of the screen regardless of the current rendering mode WordPress/gutenberg#66508
- [6.7] Zoom in/out to correct location WordPress/gutenberg#66618
- Composite: Restore Hover and Typeahead functionality - Backport to 6.7.2 WordPress/gutenberg#67258
- Interactivity API: fix property modification backport to 6.7.2 WordPress/gutenberg#67259
- Fix unexpected unlock control in block toolbar in non-default editing mode WordPress/gutenberg#67121
- [WP 6.7] Fix meta boxes saving when they’re not present WordPress/gutenberg#67503
- iAPI: Fix the logic path that merges plain objects - Backport to 6.7.2 WordPress/gutenberg#68713
- e2e:fix WP Editor Meta Boxes test WordPress/gutenberg#68886
- Keep meta boxes unsplit from content in device preview https://github.com/WordPress/gutenberg/pull/68902s
- useFocusReturn: Get active element within the iframe when restoring focus WordPress/gutenberg#68060 WordPress/gutenberg#68200

Reviewed-by audrasjb.

Props 0mirka00, ajlende, cbravobernal, czapla, danielpost, darerodz, dpcalhoun, ellatrix, fabiankaegy, get_dave, gziolo, im3dabasia1, jameskoster, jeryj, jonsurrell, jorbin, jsnajdr, mamaduka, mayanktripathi32, mcsf, mt8biz, ndiego, parthvataliya, presstoke, santosguillamot, sathyapulse, tropicalista, tyxla, wildworks, youknowriad.
Fixes #62889.


Built from https://develop.svn.wordpress.org/branches/6.7@59762


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59104 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 17:28:33 +00:00
Aaron Jorbin
1a47005704 Administration: Fix pagination in categories, tags, and plugins tables.
Fix an issue introduced in [59134] that prevented manual entry of a page number in the pagination input field from navigating pages. Requiring validation of the bulk actions input also impacted other inputs nested in the same form.

Also fixes a pre-existing bug where it was not possible to navigate to page 1 using the input field.

Reviewed by jorbin.
Merges [59727] and [59746] to the 6.7 branch.

Props ffffelix, im3dabasia1, apermo, rishavdutta, joedolson, swissspidy, jorbin, joedolson, tobiasbg, mamaduka.
Fixes #62534.

Built from https://develop.svn.wordpress.org/branches/6.7@59759


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59101 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 03:26:20 +00:00
Aaron Jorbin
407857c066 Customizer: Allow custom accordion items with obsolete structure.
In [59224], customizer accordion item HTML structure was changed to include a button element as the interactive control. However, some themes inject custom markup for panel headings.

Fix controls.js to handle both the new markup and the old markup, which is relatively common in themes.

Reviewed by jorbin.
Merges [59555] to the 6.7 branch.

Props paullb, desrosj, sabernhardt, joedolson, jorbin.
Fixes #62494.

Built from https://develop.svn.wordpress.org/branches/6.7@59758


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 03:03:15 +00:00
Aaron Jorbin
f08889ff98 HTML API: Fix extensibility of WP_HTML_Processor::next_token().
Break out logic from the next_token() method into a private method which may call itself recursively. This allows for subclasses to override the next_token() method and be assured that each call to next_token() corresponds with the consumption of one single token. This also parallels how WP_HTML_Tag_Processor::next_token() wraps a private base_class_next_token() method.

Reviewed by jonsurrell.
Merges [59285], [59364], and [59747] to 6.7 branch.

Props westonruter, jonsurrell, dmsnell, jorbin.

Built from https://develop.svn.wordpress.org/branches/6.7@59757


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-04 02:49:18 +00:00
Aaron Jorbin
69510095d9 Build/Test: Update assertions in AtomParser_Parse_Test::test_parse_sets_handlers
On some instances of Windows, the assertions seem to find additional nodes. As this test is just about verifying that the handlers get called, not about testing the functionality of the handlers, we can adjust the assertion to look for a minimum number of nodes rather than exact number.

Follow-up to [59062].

Reviewed by desrosj.
Merges [59739] to the 6.7 branch.

Props yogeshbhutkar, hellofromTonya, SergeyBiryukov, coquardcyr, jrf, benniledl, desrosj, jorbin.
Fixes #62110. See #62061.

Built from https://develop.svn.wordpress.org/branches/6.7@59745


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 23:01:15 +00:00
Peter Wilson
eb38224f75 REST API: Protect against fatal error for post types without format support.
Ignore the `format` parameter introduced in WordPress 6.7 for post types that do not support post formats. This protects against a fatal error being thrown in later version of PHP or a warning in earlier versions of PHP.

Follow up to r59115.

Reviewed by jorbin.
Merges [59544] to the 6.7 branch.

Props dd32, sergeybiryukov, yogeshbhutkar.
Fixes #62646.
See #62014.


Built from https://develop.svn.wordpress.org/branches/6.7@59744


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59086 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 22:50:16 +00:00
Felix Arntz
b50b64bf38 Editor: Fix block template registration failing for custom post types containing underscore characters.
Custom post types may contain underscores, however block template registration has been using a regular expression that disallows underscores. Since the block template name for certain templates is directly associated with which post type it applies to, this regular expression was causing unexpected failures. This changeset adjusts the regular expression to allow block template names with underscore characters, effectively allowing block templates to be registered for any custom post type.

Reviewed by jorbin.
Merges [59742] to the 6.7 branch.

Props alexandrebuffet, ankitkumarshah, gaambo, jorbin, karthickmurugan, oglekler, poena, sukhendu2002.
Fixes #62523.

Built from https://develop.svn.wordpress.org/branches/6.7@59743


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 22:32:17 +00:00
Aaron Jorbin
7bf145d081 External Libraries: Append .1 to react/react-dom versions.
In 6.7, [58775] changed the way react and react-dom are bundled in Core. This commit resulted in some changes to the built files that are distributed in WordPress even though the actual version of the libraries remained the same. The result can be a blank white screen when trying to edit a post when those two script files are heavily cached.

This uses `.1` as the appendage to prevent issues with third party code expecting the version number in the form `/^[\d\.]+$/`.

Updates include tests in `Tests_Dependencies_Scripts::test_vendor_script_versions_registered_manually` to include the modified version used for cache busting.

Reviewed by jorbin.
Merges [59536] and [59540] to 6.7 branch.

Props levskipg, get_dave, smerriman, jdnd, juanwp22, seanlanglands, robertstaddon, azaozz, peterwilsoncc, desrosj.
Fixes #62422.

Built from https://develop.svn.wordpress.org/branches/6.7@59741


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59083 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-30 20:44:17 +00:00
Felix Arntz
10c9401224 Editor: Relax restrictions around registration of block metadata collections.
This changeset allows for block metadata collections to be registered for almost any source, such as MU plugins, themes, or custom directories with e.g. symlinked plugins or symlinked themes. Prior to the change, block metadata collections could only be registered for plugins and WordPress Core.

There are still safeguards in place to prevent registration of collections in locations that would cause conflicts. For example, it is not possible to register a collection for the entire wp-content/plugins directory or the entire wp-content/themes directory, since such a collection would conflict with any specific plugin's or theme's collection. In case developers would like to enable this safeguard for their own custom directories, they can use the new wp_allowed_block_metadata_collection_roots filter.

Reviewed by jorbin.
Merges [59730] to the 6.7 branch.

Props assassinateur, bowedk, desrosj, dougwollison, flixos90, glynnquelch, gziolo, jorbin, mreishus, swissspidy.
Fixes #62140.

Built from https://develop.svn.wordpress.org/branches/6.7@59731


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-29 21:16:20 +00:00
Aaron Jorbin
da7659ba0b HTML API: Ensure that full processor can seek to earlier bookmarks.
When the HTML Processor seeks to an earlier place, it returns the the beginning of the document and proceeds forward until it reaches the appropriate location. This requires resetting internal state so that the processor can correctly proceed from the beginning of the document.

The seeking reset logic was not adapted to account for the full processor (i.e. when created via WP_HTML_Processor::create_full_parser()). This change updates the seek logic to account for the full and fragment parsers as well as other state that has been introduced in the interim and should be reset.

Reviewed by westonruter, jorbin.
Merges [59391] to the 6.7 branch.

Props jonsurrell, dmsnell, westonruter, mi5t4n, bernhard-reiter.
Fixes #62290.

Built from https://develop.svn.wordpress.org/branches/6.7@59721


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-28 14:48:18 +00:00
Aaron Jorbin
40f1fb870e HTML API: Expect closer on foreign content void lookalike elements.
Ensure that expects_closer returns false on tags that look like void HTML tags, but are actually not void tags in foreign content.

Reviewed by westonruter, jorbin.
Merges [59392] to the 6.7 branch.

Props jonsurrell, bernhard-reiter.
Fixes #62363.

Built from https://develop.svn.wordpress.org/branches/6.7@59694


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-23 18:37:18 +00:00
desrosj
0e7e24543d Build/Test Tools: Update @playwright/test.
This updates `@playwright/test` to the latest version, currently `1.49.1`.

In older branches using Playwright, the E2E and Performance workflows have recently started failing. This is due to changes in the GitHub Actions runner images. Updating Playwright ensures more modern dependency trees are used when installing browsers for testing and fixes the issue.

Merges [59682] to the 6.7 branch.

Props swissspidy.
See #62843.
Built from https://develop.svn.wordpress.org/branches/6.7@59683


git-svn-id: http://core.svn.wordpress.org/branches/6.7@59026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-22 17:54:24 +00:00
ryelle
73da499a65 Help/About: Allow "See everything new" button to wrap
On some screen sizes and languages, the "See everything new" button expands out of the content area. This change allows the button to wrap at all screen sizes, and updates the style of this button for wrapped text.

Reviewed by SergeyBiryukov.
Merges [59580] to the 6.7 branch.

Props franciscabusas22, sabernhardt, yogeshbhutka, sainathpoojary, im3dabasia1, audrasjb.
Fixes #62380.


Built from https://develop.svn.wordpress.org/branches/6.7@59581


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58967 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-01-06 17:41:21 +00:00
Aaron Jorbin
70c0cdd88c Revert unintended changes from [59546]
Someone (me) forgot to do an svn revert from the previous patch they were testing.

Props TobiasBg.
Unprops jorbin.
See #62455.


Built from https://develop.svn.wordpress.org/branches/6.7@59547


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58933 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-20 15:43:15 +00:00
Aaron Jorbin
77c2292ddc Bundled Theme: Pin a theme.json schema version to Twenty Twenty-Five.
Each theme’s theme.json schema version should be pinned to the version that was valid at the time it was released. This means all JSON files in the theme should be pinned to the appropriate schema version, not just theme.json.

Reviewed by jorbin.
Merges [59448] and [59451] to the 6.7 branch.

Props im3dabasia1, poena, mukesh27, desrosj.
Fixes #62455.


Built from https://develop.svn.wordpress.org/branches/6.7@59546


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58932 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-20 15:21:19 +00:00
Aaron Jorbin
a3f384f09d Customize: Remove unnecessary height: 100% on accordion button.
Remove CSS that could occasionally trigger the accordion buttons to be 100% the height of the accordion container.

Reviewed by jorbin.
Merges [59510] to the 6.7 branch.

Props dhewercorus, im3dabasia1, sabernhardt, rvoigt, ghinamt, vishy-moghan, frankbiganski, redkite, joedolson.
Fixes #62491.

Built from https://develop.svn.wordpress.org/branches/6.7@59539


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 21:10:19 +00:00
Aaron Jorbin
25ef9e6dea Coding Standards: Escape attachment URL in wp-admin/async-upload.php.
Follow-up to [58279].

Reviewed by jorbin.
Merges [59407] to the 6.7 branch.

Props shyamkariya, pitamdey, nareshbheda, ketanniruke, desrosj, SergeyBiryukov .
Fixes #62434.

Built from https://develop.svn.wordpress.org/branches/6.7@59538


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 20:58:16 +00:00
desrosj
16d782aaae HTML API: Recognize all uppercase tag names in tag processor.
Fixes a missing "D" in the character list used by strspn to find tag openers, causing tags starting with D to be skipped by the tag processor in some circumstances.

Follow-up to [58613].

Reviewed by desrosj.
Merges [59464] to the 6.7 branch.

Props jonsurrell, santosguillamot, wongjn, cbravobernal.
Fixes #62522.
Built from https://develop.svn.wordpress.org/branches/6.7@59537


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 18:56:19 +00:00
desrosj
6babe0cfa3 HTML API: Use case insensitive tag_name comparison in ::next_tag.
The HTML API `::next_tag` method now performs case-insensitive matching when searching for tags by name. For example, searching for 'DIV' will match both '<div>' and '<DIV>' tags.

Reviewed by desrosj.
Merges [59422] to the 6.7 branch.

Props jonsurrell, dmsnell, czapla.
Fixes #62427.
Built from https://develop.svn.wordpress.org/branches/6.7@59535


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-18 18:40:23 +00:00
cbravobernal
eff2eaac73 Block Hooks: Fix context in update_ignored_hooked_blocks_postmeta.
Ensure that the `$context` arg passed from `update_ignored_hooked_blocks_postmeta` to `apply_block_hooks_to_content` (and from there, to filters such as `hooked_block_types` and `hooked_block`) has the correct type (`WP_Post`).


Filters hooked to `hooked_block_types` etc can typically include checks that conditionally insert a hooked block depending on `$context`. Prior to this changeset, a check like `if ( $context instanceof WP_Post )` would incorrectly fail, as `$context` would be a `stdClass` instance rather han a `WP_Post`. As a consequence, a hooked block inside of a Navigation post object that was modified by the user would not be marked as ignored by `update_ignored_hooked_blocks_postmeta`, and thus be erroneosly re-inserted by the Block Hooks algorithm.

Reviewed by cbravobernal.
Merges [59482] to the 6.7 branch.

Props bernhard-reiter.
Fixes #62639.

Built from https://develop.svn.wordpress.org/branches/6.7@59487


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58873 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-12-05 11:19:14 +00:00
Andrew Ozz
ec08ab68fd Editor: Fix selecting/deselecting multiple unwanted categories when clicking on a Category checkbox on the old Edit Post screen.
Rewieved by joemcgill.
Merges [59454] to the 6.7 branch.

Props ffffelix, desrosj, ironprogrammer, neotrope, narenin, zaoyao, im3dabasia1, cbravobernal, azaozz.
Fixes #62504.
Built from https://develop.svn.wordpress.org/branches/6.7@59468


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-27 21:23:16 +00:00
cbravobernal
437ee0607c Post WordPress 6.7.1 version bump.
The 6.7 branch is now 6.7.2-alpha.

Built from https://develop.svn.wordpress.org/branches/6.7@59447


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58833 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-21 15:11:19 +00:00
desrosj
eb3de583d6 WordPress 6.7.1.
Built from https://develop.svn.wordpress.org/branches/6.7@59445


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-21 14:01:19 +00:00
desrosj
e3c622e0c0 Post WordPress 6.7.1 RC1 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59440


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 17:52:19 +00:00
desrosj
c9915d5cd3 WordPress 6.7.1 RC1.
Built from https://develop.svn.wordpress.org/branches/6.7@59439


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 17:25:20 +00:00
cbravobernal
019b2bf7a4 Editor: update npm packages in trunk for 6.7.1.
Syncs Editor packages for WordPress 6.7.1 RC1. Includes the following PRs:
- https://github.com/WordPress/gutenberg/pull/66945
- https://github.com/WordPress/gutenberg/pull/66889
- https://github.com/WordPress/gutenberg/pull/67139

Props mmaattiiaass, ramonopoly, mamaduka, get_dave, poena, ntsekouras, mcsf, jsnajdr, 0mirka00, desrosj, joemcgill, cbravobernal, azaozz, room34, mayanktripathi32, im3dabasia1, jonsurrell.

Fixes #62478, #62447. 


Built from https://develop.svn.wordpress.org/branches/6.7@59437


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 16:00:32 +00:00
desrosj
3b56f5bbf3 Interactivity API: Remove redundant server state from Interactivity Router.
Remove the workaround for a bug that was fixed in https://github.com/WordPress/gutenberg/pull/66183. Previously, if the store was not initialized with a minimal navigation object, the interactivity-router script module would error.

Reviewed by desrosj.
Merges [59416] to the 6.7 branch.

Props jonsurrell, czapla, gziolo.
Fixes #62465.
Built from https://develop.svn.wordpress.org/branches/6.7@59436


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 15:29:19 +00:00
desrosj
13d7e96210 Media: Avoid images with sizes=auto to be displayed downsized in supporting browsers.
Based on the user agent stylesheet rules outlined in https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size, images that have `sizes=auto` while applying `width: auto` or `width: fit-content` would be constrained to only 300px width.

This changeset overrides said user agent stylesheet rule with a much larger constraint, to avoid the problem.

Additionally, it introduces a filter `wp_img_tag_add_auto_sizes` which can be used to opt out of the functionality, as an additional measure.

Reviewed by desrosj, joemcgill.
Merges [59415] to the 6.7 branch.

Props joemcgill, flixos90, dooperweb, SirLouen, azaozz, mukesh27, apermo.
Fixes #62413.
See #61847, #62345.
Built from https://develop.svn.wordpress.org/branches/6.7@59435


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58821 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 14:33:19 +00:00
desrosj
fe0244083a Options, Meta APIs: Ensure duplicate salts are properly flagged.
Improvements were made in 6.7 to ensure that salts stored in the database were primed more efficiently.

The logic added to accomplish this suffered from an edge case where array indexes were unexpectedly missing when `wp_salt()` was called recursively.

Follow up to [58837].

Reviewed by davidbaumwald.
Merges [59427] to the 6.7 branch.

Props juliobox, ankitkumarshah, dilipbheda, johnbillion, joemcgill, desrosj.
Fixes #62424.
Built from https://develop.svn.wordpress.org/branches/6.7@59434


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58820 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 13:53:13 +00:00
desrosj
85d63dedf1 i18n: Account for load_*_textdomain() after JIT loading.
When `load_*_textdomain()` functions are called after WordPress has already attempted just-in-time loading of translations, nothing happens. 

This updates the related logic to retry translation loading when a custom path is set to ensure all translations are available.

Additionally, this also fixes cases where an `en_US.mo` file is provided with non-English strings to override the default language.

Follow up to [59157].

Reviewed by SergeyBiryukov.
Merges [59430] to the 6.7 branch.

Props swissspidy, peterwilsoncc, desrosj, apermo, sergeybiryukov, wildworks, tigriweb, twvania, looswebstudio, stimul, audrasjb, finntown, bluantinoo, timwhitlock, albigdd.
See #62337.
Built from https://develop.svn.wordpress.org/branches/6.7@59433


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 13:35:16 +00:00
desrosj
e6dee5ed5a I18N: Adjust translator comments in nav-menu.js.
Includes:
* Moving the comments directly above `wp.i18n._x()` so that they can be picked up properly.
* Simplifying the context to avoid unnecessarily translating the string twice for the same use case.
* Using the established translator comments format for consistency.

Follow-up to [59428].

Reviewed by SergeyBiryukov, desrosj.
Merges [59431 to the 6.7 branch.

Fixes #62402.
Built from https://develop.svn.wordpress.org/branches/6.7@59432


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 13:33:18 +00:00
desrosj
1bb7777b42 Login: Revert selector change in login heading CSS.
In [59138], the login screens were updated to change the `h1` heading from the logo to screen-reader hidden text. Along with that HTML change, we changed the CSS selectors from `.login h1` to `.login .wp-login-logo`. This unnecessary change increased specificity and broke the CSS selectors used by a wide variety of plugins to replace the login logo.

Commit reverts the change in selector back to using the `.login h1` pattern.

Reviewed by joedolson, desrosj.
Merges [59424] to the 6.7 branch.

Props leecollings, sabernhardt, im3dabasia1, roytanck, sailpete, joedolson. 
Fixes #62410.
Built from https://develop.svn.wordpress.org/branches/6.7@59429


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 01:58:16 +00:00
desrosj
720cc884d9 Menus: i18n: Fix untranslatable strings in nav-menu.js.
Wrap three untranslatable strings in nav menus in JS translation functions.

Follow up to [59265].

Reviewed by desrosj, joedolson.
Merges 59426 to the 6.7 branch.

Props juliemoynat, swissspidy, yogeshbhutkar, sergeybiryukov, desrosj, tobifjellner, audrasjb, joedolson.
Fixes #62402.
Built from https://develop.svn.wordpress.org/branches/6.7@59428


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58814 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-20 01:55:18 +00:00
desrosj
7aaf81c7cc Media: Avoid running expensive logic twice using GD.
Support for uploading AVIF was added in [57524]. A new block of conditional logic was added determine which function should be used to create the new image file that resulted in these expensive functions being run twice.

This combines the two conditional logic to ensure the appropriate function is only run once regardless of format.

Reviewed by adamsilverstein.
Merges [59413] to the 6.7 branch.

Props adamsilverstein, glynnquelch.
Fixes #62331.
Built from https://develop.svn.wordpress.org/branches/6.7@59423


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-19 20:23:19 +00:00
desrosj
226f7f7964 Editor: Fix the JS to select, save, and update categories on the old Edit Post screen.
Reviewed by desrosj, azaozz.
Merges [59414] to the 6.7 branch.

Props: charleslf, im3dabasia1, desrosj, dhruvang21, Zargarov, sainathpoojary, azaozz.
Fixes: #62440.
Built from https://develop.svn.wordpress.org/branches/6.7@59421


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58807 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-19 13:49:17 +00:00
desrosj
60f27fbaad Customizer: Fix layout issues in customizer accordions.
Adjust some CSS characteristics in the customizer accordions to avoid a slight horizontal scroll, allow the chevron icon to be part of the clickable control surface, and resolve a pre-existing padding issue allowing overflow on accordion headings.

Follow up to [59224].

Reviewed by desrosj, joedolson.
Merges [59409] to the 6.7 branch.

Props laurelfulford, wildworks, domainsupport, sabernhardt, rcreators, desrosj, sainathpoojary. 
Fixes #62313, #62335.
Built from https://develop.svn.wordpress.org/branches/6.7@59420


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-19 13:43:16 +00:00
cbravobernal
3a58544234 HTML API: Fix normalized doctype pub/sys identifier quotes.
Changeset [59399] fixed missing DOCTYPEs in normalized HTML output. It missed an edge case where public and system identifiers may contain double quotes, in which case they must be quoted with single quotes.

This commit addresses that issue and adds tests.

Follow-up to [59399].

Reviewed by cbravobernal.
Merges [59410] to the 6.7 branch.

Props jonsurrell, luisherranz, apermo.
Fixes #62396.

Built from https://develop.svn.wordpress.org/branches/6.7@59411


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-18 13:39:21 +00:00
cbravobernal
664c3049d1 Interactivity API: Allow missing state negation on server
Aligns on the behavior of the negation operator with directives to missing paths in client and in server.

With a directive like the following:
{{{
<div data-wp-bind--hidden="!state.missing.property">
	This should be hidden by the <code>hidden</code> attribute.
</div>
}}}
Both server and client will return with this fix:
{{{
<div data-wp-bind--hidden="!state.missing.property" hidden="">
	This should be hidden by the <code>hidden</code> attribute.
</div>
}}}

Reviewed by cbravobernal.
Merges [59398] to the 6.7 branch.

Props jonsurrell, luisherranz.
Fixes #62374.

Built from https://develop.svn.wordpress.org/branches/6.7@59404


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58790 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-14 11:55:18 +00:00
cbravobernal
7d29e45bbe HTML API: Include doctype in full parser serialize.
Output DOCTYPE when calling `WP_HTML_Processor::serialize` on a full document that includes a DOCTYPE.

The DOCTYPE should be included in the serialized/normalized HTML output as it has an impact in how the document is handled, in particular whether the document should be handled in quirks or no-quirks mode.

This only affects the serialization of full parsers at this time because DOCTYPE tokens are currently ignored in all possible fragments. The omission of the DOCTYPE is subtle but can change the serialized document's quirks/no-quirks mode.

Reviewed by cbravobernal.
Merges [59399] to the 6.7 branch.

Props jonsurrell.
Fixes #62396.


Built from https://develop.svn.wordpress.org/branches/6.7@59401


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-13 16:15:17 +00:00
Peter Wilson
2cd5737c13 Post WordPress 6.7 version bump.
The 6.7 branch is now 6.7.1-alpha.



Built from https://develop.svn.wordpress.org/branches/6.7@59396


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58782 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-12 23:08:17 +00:00
Peter Wilson
cf2a77dd22 WordPress 6.7.
Built from https://develop.svn.wordpress.org/branches/6.7@59394


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-12 20:38:17 +00:00
davidbaumwald
d255bb0e77 Upgrade/Install: Update the $_old_files array for 6.7.
Reviewed by jorbin.
Merges [59386] to the 6.7 branch.

Props pbiron, peterwilsoncc, fazyshah.
Fixes #62150.
Built from https://develop.svn.wordpress.org/branches/6.7@59387


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-11 19:21:17 +00:00
Aaron Jorbin
9aff3ae1f2 Post WordPress 6.7 RC5 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59385


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-11 18:54:15 +00:00
Aaron Jorbin
04a6d30e15 WordPress 6.7 RC5.
Built from https://develop.svn.wordpress.org/branches/6.7@59384


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-11 18:20:18 +00:00
desrosj
1245f70570 Feeds: Avoid fatal error with empty blog_charset value.
After the SimplePie library was updated to version `1.8.0` in [59141], an edge case has been discovered where a fatal error can encountered if the `blog_charset` option is missing or empty.

In `fetch_feed()`, this option is retrieved using `get_option()` instead of `get_bloginfo( ‘charset’ )`. The latter will detect this scenario and apply a default value of `UTF-8` and is already used interchangeably throughout Core. This switches to `get_bloginfo( ‘charset’ )` instead to prevent this edge case.

Reviewed by davidbaumwald.
Merges [59382] to the 6.7 branch.

Props david.binda, davidbaumwald, SergeyBiryukov, sabernhardt, azaozz, peterwilsoncc.
Fixes #62354.
Built from https://develop.svn.wordpress.org/branches/6.7@59383


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-11 17:55:14 +00:00
davidbaumwald
f924a35270 Media: Remove dimension suffix from full size converted HEIC images.
Removes the dimension suffix, eg `-1000x1000` from the file name of full size images automatically converted from HEIC to JPEGs by WordPress. Introduces unit tests for the default conversion of images and customized conversion settings via the `image_editor_output_format` filter.

Follow up to [58849], [58942], [59317], [59346], [59366].

Reviewed by davidbaumwald.
Merges [59379] and [59380] to the 6.7 branch.

Props mukesh27, peterwilsoncc, azaozz, apermo, flixos90, ironprogrammer.
Fixes #62359.
See #53645, #62305.
Built from https://develop.svn.wordpress.org/branches/6.7@59381


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58767 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-11 15:46:16 +00:00
Peter Wilson
7e0367b392 Help/About: Update the about page images for WordPress 6.7.
Updates the about page images with more colourful imagery.

Reviewed by ryelle.
Merges [59374] to the 6.7 branch.

Props sfougnier, fcoveram, Joen, davidbaumwald, ryelle.
Fixes #61961.




Built from https://develop.svn.wordpress.org/branches/6.7@59375


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58761 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-08 04:42:17 +00:00
Aaron Jorbin
a867d33702 Post WordPress 6.7 RC4 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59372


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58758 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-07 18:05:14 +00:00
Aaron Jorbin
0c1cb371ab WordPress 6.7 RC4.
Built from https://develop.svn.wordpress.org/branches/6.7@59371


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-07 17:12:14 +00:00
desrosj
66cf685d19 Editor: Update packages for 6.7 RC 4.
Syncs @wordpress/* packages to the wp-6.7 npm tag.

Reviewed by get_dave, desrosj.
Merges [59368] to the 6.7 branch.

Props get_dave, mikachan, gziolo, kevin940726, jonsurrell, jsnajdr.
Fixes #62358.
Built from https://develop.svn.wordpress.org/branches/6.7@59369


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58755 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-07 16:05:23 +00:00
Peter Wilson
0526401c81 Media: Fix converting of all HEIC/HEIF images to JPEGs after uploading regardless of dimensions.
This backport includes follow up commits to improve a variable name and improve accuracy of when an image needs to be converted.

Reviewed by peterwilsoncc.
Merges [59317], [59346], [59366] to the 6.7 branch.

Props ironprogrammer, adamsilverstein, azaozz, peterwilsoncc, apermo, flixos90.
Fixes #62305.


Built from https://develop.svn.wordpress.org/branches/6.7@59367


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-07 01:27:15 +00:00
Peter Wilson
2612745032 Bundled Themes: Sync some minor fixes for Twenty Twenty-Five.
This merges several minor improvements to patterns in Twenty Twenty-Five.

A full list of changes can be found on GitHub: e7612e3cb3...b8c032e43c.

Reviewed by peterwilsoncc.
Merges [59362] to the 6.7 branch.

Props juanfra, desrosj.
Fixes #62351.




Built from https://develop.svn.wordpress.org/branches/6.7@59365


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-06 21:47:21 +00:00
desrosj
eb4fce03e8 Bundled Themes: Bump default theme versions for release with 6.7.
This updates the version of each default theme to the following versions:

* Twenty Ten: 4.3
* Twenty Eleven: 4.8
* Twenty Twelve: 4.4
* Twenty Thirteen: 4.3
* Twenty Fourteen: 4.1
* Twenty Fifteen: 3.9
* Twenty Sixteen: 3.4
* Twenty Seventeen: 3.8
* Twenty Nineteen: 3.0
* Twenty Twenty: 2.8
* Twenty Twenty-One: 2.4
* Twenty Twenty-Two: 1.9
* Twenty Twenty-Three: 1.6
* Twenty Twenty-Four: 1.3

These versions will released in coordination with WordPress 6.7.

Reviewed by peterwilsoncc.
Merges [59344] to the 6.7 branch.

Props sh4lin, sabernhardt, mukesh27, chaion07.
Fixes #62034.
Built from https://develop.svn.wordpress.org/branches/6.7@59363


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58749 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-06 18:00:15 +00:00
Peter Wilson
1abe32ce7c Media: Fix uploading of .heic images.
- Adds support for all HEIC/HEIF mime types: `image/heic`, `image/heif`, `image/heic-sequence`, and `image/heif-sequence`.
- Introduces `wp_is_heic_image_mime_type()`.

This backport includes a subsequent fix of a typo.

Reviewed by peterwilsoncc.
Merges [59315,59358] to the 6.7 branch.

Props swissspidy, adamsilverstein, debarghyabanerjee, ironprogrammer, peterwilsoncc, apermo, azaozz, mosne.
Fixes #62272.



Built from https://develop.svn.wordpress.org/branches/6.7@59360


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-06 00:47:16 +00:00
Aaron Jorbin
ea7e427fbd Post WordPress 6.7 RC3 bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59353


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58739 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-05 16:57:17 +00:00
Aaron Jorbin
527f8961c5 WordPress 6.7 RC1.
Built from https://develop.svn.wordpress.org/branches/6.7@59352


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58738 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-05 16:33:18 +00:00
desrosj
32855251cb Bundled Themes: Update Twenty Twenty-Five for 6.7 RC 3.
This merges the latest improvements to the Twenty Twenty-Five theme from GitHub into WordPress-Develop for 6.7 RC 3.

A full list of changes can be found on GitHub: b6f4ee2e57...b5b0475f6a.

Reviewed by davidbaumwald.
Merges [59348] to the 6.7 branch.

Props juanfra.
See #62343.
Built from https://develop.svn.wordpress.org/branches/6.7@59351


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-05 16:11:19 +00:00
desrosj
18a12d76c3 Taxonomy: Remove count references from WP_Term_Query.
Remove further documentation and a code reference to the unsupported `count` argument within `WP_Term_Query`. 

Follow up to [59261].

Reviewed by peterwilsoncc, desrosj.
Merges [59325] to the 6.7 branch.

Props johnbillion.
Fixes #61094
Built from https://develop.svn.wordpress.org/branches/6.7@59350


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-05 14:24:15 +00:00
desrosj
087e4c994a Editor: Update packages for 6.7 RC 3.
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag.

Reviewed by desrosj.
Merges [59347] to the 6.7 branch.

Props kevin940726, get_dave, youknowriad.
Fixes #62321.
Built from https://develop.svn.wordpress.org/branches/6.7@59349


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58735 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-05 14:11:22 +00:00
ryelle
7a8425521a Help/About: Add images to the About page.
Updates the images in the About page source with the final versions on the w.org CDN.

Reviewed by peterwilsoncc.
Merges [59329] to the 6.7 branch.

Props ryelle, joen.
See #61961.


Built from https://develop.svn.wordpress.org/branches/6.7@59345


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58731 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-05 00:46:16 +00:00
Peter Wilson
37b16304d7 Script Loader: Correct the number of arguments passed to WP_Styles::get_etag().
This fixes an issue with the usage of the new `$wp_styles->get_etag()` method in `wp-admin/load-styles.php`, where `$wp_version` is passed as the first argument instead of `$load` being used as the ''only'' argument.

Follow-up to [58935].

Reviewed by swissspidy.
Merges [59341] to the 6.7 branch.

Props justlevine, mukesh27, swissspidy, SergeyBiryukov.
See #52217, #61485.


Built from https://develop.svn.wordpress.org/branches/6.7@59343


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58729 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-04 23:36:16 +00:00
Andrew Ozz
0405629247 Editor: Update packages for 6.7 RC 3
Syncs @wordpress/* packages to the wp-6.7 npm tag.

Reviewed by get_dave, azaozz.
Merges [59339] to the 6.7 branch.

Props kevin940726, get_dave.
Fixes #62321.
Built from https://develop.svn.wordpress.org/branches/6.7@59342


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-04 19:46:30 +00:00
Peter Wilson
92c3cda921 Editor: Update packages for 6.7 RC 3
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag.

Reviewed by andrewserong.
Merges [59330] to the 6.7 branch.

Props kevin940726, ramonopoly, andrewserong.
See #62321.


Built from https://develop.svn.wordpress.org/branches/6.7@59332


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-31 22:15:30 +00:00
desrosj
852039442a Bundled Themes: Update Twenty Twenty-Five for 6.7 RC 2.
This merges the latest improvements to the Twenty Twenty-Five theme from GitHub into WordPress-Develop for 6.7 RC 2

A full list of changes can be found on GitHub: [7dfa99f15b...b5b0475f6a WordPress/twentytwentyfive@7dfa99f1...b5b0475f].

Reviewed by desrosj.
Merges [59314] to the 6.7 branch.

Props juanfra, poena.
Fixes #62310.
Built from https://develop.svn.wordpress.org/branches/6.7@59331


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-31 17:57:19 +00:00
Peter Wilson
560bd94c82 Tests/Build tools: Only fail importer tests if plugin is missing.
Reverts an earlier change to the test suite in which the PHPUnit tests could not run if the importer plugin was not available.

This update allows the test suite to run and will fail importer tests if the plugin is not available. 

Follow up to r59085.

Merges [59326] to the 6.7 branch.

Props peterwilsoncc, azaozz.
See #62325.


Built from https://develop.svn.wordpress.org/branches/6.7@59327


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-30 23:47:20 +00:00
Peter Wilson
c9462062a6 Global styles: preload /global-styles endpoint responses
This commit fixes a regression whereby requests to global styles endpoints were not being preloaded, resulting in several requests being fired clientside unnecessarily.  

For performance reasons, we  preload the requests so that the data is in the editor store and ready to use straight away.  

The outcome is that the editor loads more quickly.

Follow-up to [62042].

Reviewed by peterwilsoncc.
Merges [59316] to the 6.7 branch.

Props ellatrix, ramonopoly, apermo, peterwilsoncc.
Fixes #62315.


Built from https://develop.svn.wordpress.org/branches/6.7@59324


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58710 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 22:55:17 +00:00
Aaron Jorbin
d91fbfad55 Post WordPress 6.7 RC2 version bump.
Built from https://develop.svn.wordpress.org/branches/6.7@59323


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58709 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 17:07:21 +00:00
Sergey Biryukov
218cf8089b Comments: Use a more precise check for disallowed keys on filtered comment data.
The previous approach of running `wp_allow_comment()` twice could have unintended consequences, e.g. the `check_comment_flood` action was also triggered twice, which might lead to false-positive identification of comment flood in case there is some custom callback hooked to it, which is not expecting identical data seeing twice.

This commit introduces a new function, `wp_check_comment_data()`, to specifically check for disallowed content before and after comment data is filtered.

Follow-up to [59267].

Reviewed by davidbaumwald.
Merges [59319] to the 6.7 branch.

Props david.binda, SergeyBiryukov.
Fixes #61827.
Built from https://develop.svn.wordpress.org/branches/6.7@59322


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58708 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 16:35:17 +00:00
Aaron Jorbin
b3c1dfabd4 Editor: Update packages for 6.7 RC 2
Syncs @wordpress/* packages to the wp-6.7 npm tag.

Reviewed by jorbin.
Merges [59318] to 6.7 branch.

Props kevin940726, aaronrobertshaw.
See #62309.

Built from https://develop.svn.wordpress.org/branches/6.7@59321


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 16:28:27 +00:00
Aaron Jorbin
1200804e11 WordPress 6.7 RC2.
Built from https://develop.svn.wordpress.org/branches/6.7@59320


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58706 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-29 16:14:16 +00:00
Peter Wilson
2f988c78b6 Revisions: Fix typo in navigation help text.
Fixes a typo in the a11y helper text explaining how to navigate revisions. "Change revision by using the left and arrow keys" becomes "Change revision by using the left and right arrow keys".

Follow up to [59225].

Reviewed by swissspidy.
Merges [59306] to the 6.7 branch.

Props pedromendonca, sabernhardt, fierevere, swissspidy.
Fixes #62306.



Built from https://develop.svn.wordpress.org/branches/6.7@59313


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58699 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 21:26:18 +00:00
desrosj
aea47f2bb5 Build/Test Tools: Support Docker compose override files.
This updates the logic introduced in [59279] to account for the presence of `docker-compose.override.yml` files.

Reviewed by peterwilsoncc.
Merges 59283] to the 6.7 branch.

Props xknown, davidbaumwald.
See #61218.
Built from https://develop.svn.wordpress.org/branches/6.7@59311


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 18:13:16 +00:00
desrosj
4e8ce277f7 Build/Test Tools: Test against MySQL 8.4 in automated testing.
Additionally, MySQL 8.1, 8.2 and 8.3 have been removed. These were “innovation releases” and are no longer supported in favor of 8.4, which has LTS.

Reviewed by peterwilsoncc.
Merges [59280] to the 6.7 branch.

Props ayeshrajans, johnbillion, aristath, jorbin.
See #61218.
Built from https://develop.svn.wordpress.org/branches/6.7@59310


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 18:10:18 +00:00
desrosj
0bc304103f Build/Test Tools: Add MySQL 8.4 support to the Docker environment.
Because `caching_sha2_password` is not supported on PHP 7.2 & 7.3, the local Docker environment has used the `--default-authentication-plugin` system variable to always make use of `mysql_native_password` despite MySQL 8.0 deprecating this auth plugin.

However in MySQL 8.4, the `--default-authentication-plugin` option was removed in favor of `--authentication-policy`, and `mysql_native_password` is now disabled by default. `mysql_native_password` has also been removed in MySQL 9.0.

This change adds support to the local Docker environment for MySQL 8.4 by adding some helper functions that determine which authentication plugin should be used based on the configured PHP/MySQL versions and automatically making the necessary configuration adjustments. 

Reviewed by peterwilsoncc. 
Merges [59279] to the 6.7 branch.

Props ayeshrajans, johnbillion, aristath, jorbin.
See #61218.
Built from https://develop.svn.wordpress.org/branches/6.7@59309


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 17:38:21 +00:00
Peter Wilson
f7ae536731 Editor: Update packages for 6.7 RC 2
Syncs `@wordpress/*` packages to the `wp-6.7` npm tag.

Reviewed by peterwilsoncc.
Merges [59307] to the 6.7 branch.

Props kevin940726, peterwilsoncc.
See #62309.

Built from https://develop.svn.wordpress.org/branches/6.7@59308


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-28 05:06:26 +00:00
Peter Wilson
ce2064a69a Tests: Use better domain for HTTP API invalid hostname test.
The previous domain that was used to test for a host whose IPv4 address cannot be resolved, `exampleeeee.com`, got registered and has an A-record now, so it's not invalid anymore.

`.invalid` is intended for use in online construction of domain names that are sure to be invalid and which it is obvious at a glance are invalid.

Reference: [https://datatracker.ietf.org/doc/html/rfc2606#section-2 Reserved Top Level DNS Names: TLDs for Testing, & Documentation Examples].

Follow-up to [52084], [58384], [58388].

Reviewed by peterwilsoncc.
Merges [59293] to the 6.7 branch.

Props sippis, johnbillion, MattyRob, swissspidy, SergeyBiryukov.
Fixes #62303.



Built from https://develop.svn.wordpress.org/branches/6.7@59297


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 22:19:16 +00:00
Peter Wilson
33f62d1dcb Site Health: Update inline docs following refactor of debug data.
Updates the inline docs following the modularization of the `WP_Debug_Data`.

Reviewed by swissspidy.
Merges [59290] to the 6.7 branch.

Props kebbet, desrosj, apermo.
Fixes #61648.



Built from https://develop.svn.wordpress.org/branches/6.7@59296


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 21:59:12 +00:00
Peter Wilson
0c4d743c9b Editor: Update Google Fonts API endpoint for WordPress 6.7.
Updates the Google Fonts API to use the URL `https://s.w.org/images/fonts/wp-6.7/collections/google-fonts-with-preview.json` with an updated collection of fonts available for install.

Reviewed by swissspidy.
Merges [59286] to the 6.7 branch.

Props dilip2615, mmaattiiaass, wildworks, dd32.
Fixes #62258.



Built from https://develop.svn.wordpress.org/branches/6.7@59295


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 21:57:10 +00:00
Peter Wilson
48030e4dbf Bundled Themes: Provide instructions for updating comment block in TT2.
Adds instructions to the Twenty Twenty-Two readme file for updating the comment block from the legacy version to the newer version introduced in WordPress 6.1.

As Twenty Twenty-Two supports WordPress version prior to 6.1, the legacy comment block is used by default.

Reviewed by swissspidy.
Merges [59289] to the 6.7 branch.

Props desrosj, jeffpaul, joedolson, mikachan, mrfoxtalbot, mukesh27, poena, ryokuhi, sabernhardt, thrijith.
Fixes #56496.


Built from https://develop.svn.wordpress.org/branches/6.7@59294


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-27 21:55:55 +00:00
Aaron Jorbin
fa5acb8e7a Branch 6.7
Built from https://develop.svn.wordpress.org/branches/6.7@59274


git-svn-id: http://core.svn.wordpress.org/branches/6.7@58666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-10-22 16:53:16 +00:00
765 changed files with 45951 additions and 60391 deletions

View File

@ -1,6 +1,6 @@
WordPress - Web publishing software
Copyright 2011-2025 by the contributors
Copyright 2011-2024 by the contributors
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@ -53,6 +53,62 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
</nav>
<div class="about__section changelog has-subtle-background-color">
<div class="column">
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<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.',
35
),
'6.7.2',
'35'
);
?>
<?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( '6.7.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.',
16
),
'6.7.1',
'16'
);
?>
<?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( '6.7.1' )
)
);
?>
</p>
</div>
</div>
<div class="about__section">
<div class="column">
<h2>

View File

@ -9,11 +9,6 @@
* @subpackage Administration
*/
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
_deprecated_file( basename( __FILE__ ), '2.5.0', 'wp-admin/includes/admin.php' );
/** WordPress Administration API: Includes all Administration functions. */

View File

@ -6,11 +6,6 @@
* @subpackage Administration
*/
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
if ( ! defined( 'WP_ADMIN' ) ) {
require_once __DIR__ . '/admin.php';
@ -214,11 +209,6 @@ if ( $current_screen->is_block_editor() ) {
$admin_body_class .= ' block-editor-page wp-embed-responsive';
}
$admin_body_class .= ' wp-theme-' . sanitize_html_class( get_template() );
if ( is_child_theme() ) {
$admin_body_class .= ' wp-child-theme-' . sanitize_html_class( get_stylesheet() );
}
$error_get_last = error_get_last();
// Print a CSS class to make PHP errors visible.

View File

@ -13,8 +13,11 @@ if ( ! defined( 'WP_ADMIN' ) ) {
define( 'WP_ADMIN', true );
}
/** Load WordPress Bootstrap */
require_once dirname( __DIR__ ) . '/wp-load.php';
if ( defined( 'ABSPATH' ) ) {
require_once ABSPATH . 'wp-load.php';
} else {
require_once dirname( __DIR__ ) . '/wp-load.php';
}
/** Allow for cross-domain requests (from the front end). */
send_origin_headers();

View File

@ -31,7 +31,6 @@ if ( isset( $_GET['import'] ) && ! defined( 'WP_LOAD_IMPORTERS' ) ) {
define( 'WP_LOAD_IMPORTERS', true );
}
/** Load WordPress Bootstrap */
require_once dirname( __DIR__ ) . '/wp-load.php';
nocache_headers();

View File

@ -14,8 +14,11 @@ if ( ! defined( 'WP_ADMIN' ) ) {
define( 'WP_ADMIN', true );
}
/** Load WordPress Bootstrap */
require_once dirname( __DIR__ ) . '/wp-load.php';
if ( defined( 'ABSPATH' ) ) {
require_once ABSPATH . 'wp-load.php';
} else {
require_once dirname( __DIR__ ) . '/wp-load.php';
}
require_once ABSPATH . 'wp-admin/admin.php';

View File

@ -133,19 +133,5 @@ __( 'Lead Developer' );
__( 'Release Lead' );
__( 'Release Design Lead' );
__( 'Release Deputy' );
__( 'Release Coordination' );
__( 'Minor Release Lead' );
__( 'Core Developer' );
__( 'Core Tech Lead' );
__( 'Core Triage Lead' );
__( 'Editor Tech Lead' );
__( 'Editor Triage Lead' );
__( 'Documentation Lead' );
__( 'Test Lead' );
__( 'Design Lead' );
__( 'Performance Lead' );
__( 'Default Theme Design Lead' );
__( 'Default Theme Development Lead' );
__( 'Tech Lead' );
__( 'Triage Lead' );
__( 'External Libraries' );

View File

@ -181,7 +181,9 @@
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu li.current a.menu-top,
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head {
#adminmenu .wp-menu-arrow,
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
#adminmenu .wp-menu-arrow div {
background: #2271b1;
color: #fff;
}
@ -332,6 +334,12 @@ div.wp-menu-image:before {
position: fixed;
}
/* A new arrow */
.wp-menu-arrow {
display: none !important;
}
ul#adminmenu a.wp-has-current-submenu {
position: relative;
}
@ -345,7 +353,7 @@ ul#adminmenu > li.current > a.current:after {
width: 0;
position: absolute;
pointer-events: none;
border-left-color: #fff;
border-left-color: #f0f0f1;
top: 50%;
margin-top: -8px;
}

File diff suppressed because one or more lines are too long

View File

@ -180,7 +180,9 @@
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu li.current a.menu-top,
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head {
#adminmenu .wp-menu-arrow,
#adminmenu .wp-has-current-submenu .wp-submenu .wp-submenu-head,
#adminmenu .wp-menu-arrow div {
background: #2271b1;
color: #fff;
}
@ -331,6 +333,12 @@ div.wp-menu-image:before {
position: fixed;
}
/* A new arrow */
.wp-menu-arrow {
display: none !important;
}
ul#adminmenu a.wp-has-current-submenu {
position: relative;
}
@ -344,7 +352,7 @@ ul#adminmenu > li.current > a.current:after {
width: 0;
position: absolute;
pointer-events: none;
border-right-color: #fff;
border-right-color: #f0f0f1;
top: 50%;
margin-top: -8px;
}

File diff suppressed because one or more lines are too long

View File

@ -1,31 +1,29 @@
@use 'sass:color';
@use 'sass:string';
@forward 'variables' show $scheme-name, $base-color, $body-background, $button-color, $custom-welcome-panel, $dashboard-accent-1, $dashboard-accent-2, $dashboard-icon-background, $form-checked, $highlight-color, $icon-color, $link, $link-focus, $low-contrast-theme, $menu-bubble-text, $menu-collapse-focus-icon, $menu-collapse-text, $menu-highlight-background, $menu-highlight-icon, $menu-highlight-text, $menu-submenu-text, $menu-submenu-focus-text, $menu-submenu-background, $notification-color, $text-color;
@use 'variables';
@use 'mixins';
@import 'variables';
@import 'mixins';
/**
* This function name uses British English to maintain backward compatibility, as developers
* may use the function in their own admin CSS files. See #56811.
*/
@function url-friendly-colour( $color ) {
@return '%23' + string.slice( '#{ $color }', 2, -1 );
@return '%23' + str-slice( '#{ $color }', 2, -1 );
}
body {
background: variables.$body-background;
background: $body-background;
}
/* Links */
a {
color: variables.$link;
color: $link;
&:hover,
&:active,
&:focus {
color: variables.$link-focus;
color: $link-focus;
}
}
@ -38,12 +36,12 @@ span.wp-media-buttons-icon:before {
}
.wp-core-ui .button-link {
color: variables.$link;
color: $link;
&:hover,
&:active,
&:focus {
color: variables.$link-focus;
color: $link-focus;
}
}
@ -68,16 +66,16 @@ span.wp-media-buttons-icon:before {
/* Forms */
input[type=checkbox]:checked::before {
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour(variables.$form-checked)}%27%2F%3E%3C%2Fsvg%3E");
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour($form-checked)}%27%2F%3E%3C%2Fsvg%3E");
}
input[type=radio]:checked::before {
background: variables.$form-checked;
background: $form-checked;
}
.wp-core-ui input[type="reset"]:hover,
.wp-core-ui input[type="reset"]:active {
color: variables.$link-focus;
color: $link-focus;
}
input[type="text"]:focus,
@ -99,8 +97,8 @@ input[type="checkbox"]:focus,
input[type="radio"]:focus,
select:focus,
textarea:focus {
border-color: variables.$highlight-color;
box-shadow: 0 0 0 1px variables.$highlight-color;
border-color: $highlight-color;
box-shadow: 0 0 0 1px $highlight-color;
}
@ -137,35 +135,35 @@ textarea:focus {
.button.active,
.button.active:focus,
.button.active:hover {
border-color: variables.$button-color;
border-color: $button-color;
color: color.adjust(#32373c, $lightness: -5%);
box-shadow: inset 0 2px 5px -3px variables.$button-color;
box-shadow: inset 0 2px 5px -3px $button-color;
}
.button.active:focus {
box-shadow: 0 0 0 1px #32373c;
}
@if ( variables.$low-contrast-theme != "true" ) {
@if ( $low-contrast-theme != "true" ) {
.button,
.button-secondary {
color: variables.$highlight-color;
border-color: variables.$highlight-color;
color: $highlight-color;
border-color: $highlight-color;
}
.button.hover,
.button:hover,
.button-secondary:hover{
border-color: color.adjust(variables.$highlight-color, $lightness: -10%);
color: color.adjust(variables.$highlight-color, $lightness: -10%);
border-color: color.adjust($highlight-color, $lightness: -10%);
color: color.adjust($highlight-color, $lightness: -10%);
}
.button.focus,
.button:focus,
.button-secondary:focus {
border-color: color.adjust(variables.$highlight-color, $lightness: 10%);
color: color.adjust(variables.$highlight-color, $lightness: -20%);
box-shadow: 0 0 0 1px color.adjust(variables.$highlight-color, $lightness: 10%);
border-color: color.adjust($highlight-color, $lightness: 10%);
color: color.adjust($highlight-color, $lightness: -20%);
box-shadow: 0 0 0 1px color.adjust($highlight-color, $lightness: 10%);
}
.button-primary {
@ -176,74 +174,74 @@ textarea:focus {
}
.button-primary {
@include mixins.button( variables.$button-color );
@include button( $button-color );
}
.button-group > .button.active {
border-color: variables.$button-color;
border-color: $button-color;
}
.wp-ui-primary {
color: variables.$text-color;
background-color: variables.$base-color;
color: $text-color;
background-color: $base-color;
}
.wp-ui-text-primary {
color: variables.$base-color;
color: $base-color;
}
.wp-ui-highlight {
color: variables.$menu-highlight-text;
background-color: variables.$menu-highlight-background;
color: $menu-highlight-text;
background-color: $menu-highlight-background;
}
.wp-ui-text-highlight {
color: variables.$menu-highlight-background;
color: $menu-highlight-background;
}
.wp-ui-notification {
color: variables.$menu-bubble-text;
background-color: variables.$menu-bubble-background;
color: $menu-bubble-text;
background-color: $menu-bubble-background;
}
.wp-ui-text-notification {
color: variables.$menu-bubble-background;
color: $menu-bubble-background;
}
.wp-ui-text-icon {
color: variables.$menu-icon;
color: $menu-icon;
}
}
/* List tables */
@if variables.$low-contrast-theme == "true" {
@if $low-contrast-theme == "true" {
.wrap .page-title-action:hover {
color: variables.$menu-text;
background-color: variables.$menu-background;
color: $menu-text;
background-color: $menu-background;
}
} @else {
.wrap .page-title-action,
.wrap .page-title-action:active {
border: 1px solid variables.$highlight-color;
color: variables.$highlight-color;
border: 1px solid $highlight-color;
color: $highlight-color;
}
.wrap .page-title-action:hover {
color: color.adjust(variables.$highlight-color, $lightness: -10%);
border-color: color.adjust(variables.$highlight-color, $lightness: -10%);
color: color.adjust($highlight-color, $lightness: -10%);
border-color: color.adjust($highlight-color, $lightness: -10%);
}
.wrap .page-title-action:focus {
border-color: color.adjust(variables.$highlight-color, $lightness: 10%);
color: color.adjust(variables.$highlight-color, $lightness: -20%);
box-shadow: 0 0 0 1px color.adjust(variables.$highlight-color, $lightness: 10%);
border-color: color.adjust($highlight-color, $lightness: 10%);
color: color.adjust($highlight-color, $lightness: -20%);
box-shadow: 0 0 0 1px color.adjust($highlight-color, $lightness: 10%);
}
}
.view-switch a.current:before {
color: variables.$menu-background;
color: $menu-background;
}
.view-switch a:hover:before {
color: variables.$menu-bubble-background;
color: $menu-bubble-background;
}
@ -252,28 +250,28 @@ textarea:focus {
#adminmenuback,
#adminmenuwrap,
#adminmenu {
background: variables.$menu-background;
background: $menu-background;
}
#adminmenu a {
color: variables.$menu-text;
color: $menu-text;
}
#adminmenu div.wp-menu-image:before {
color: variables.$menu-icon;
color: $menu-icon;
}
#adminmenu a:hover,
#adminmenu li.menu-top:hover,
#adminmenu li.opensub > a.menu-top,
#adminmenu li > a.menu-top:focus {
color: variables.$menu-highlight-text;
background-color: variables.$menu-highlight-background;
color: $menu-highlight-text;
background-color: $menu-highlight-background;
}
#adminmenu li.menu-top:hover div.wp-menu-image:before,
#adminmenu li.opensub > a.menu-top div.wp-menu-image:before {
color: variables.$menu-highlight-icon;
color: $menu-highlight-icon;
}
@ -282,8 +280,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: variables.$body-background;
border-bottom-color: variables.$body-background;
background-color: $body-background;
border-bottom-color: $body-background;
}
@ -293,26 +291,26 @@ textarea:focus {
#adminmenu .wp-has-current-submenu .wp-submenu,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu {
background: variables.$menu-submenu-background;
background: $menu-submenu-background;
}
#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after,
#adminmenu li.wp-has-submenu.wp-not-current-submenu:focus-within:after {
border-right-color: variables.$menu-submenu-background;
border-right-color: $menu-submenu-background;
}
#adminmenu .wp-submenu .wp-submenu-head {
color: variables.$menu-submenu-text;
color: $menu-submenu-text;
}
#adminmenu .wp-submenu a,
#adminmenu .wp-has-current-submenu .wp-submenu a,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
color: variables.$menu-submenu-text;
color: $menu-submenu-text;
&:focus, &:hover {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
}
@ -322,24 +320,24 @@ textarea:focus {
#adminmenu .wp-submenu li.current a,
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a {
color: variables.$menu-submenu-current-text;
color: $menu-submenu-current-text;
&:hover, &:focus {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
}
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: variables.$body-background;
border-right-color: $body-background;
}
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head,
.folded #adminmenu li.current.menu-top {
color: variables.$menu-current-text;
background: variables.$menu-current-background;
color: $menu-current-text;
background: $menu-current-background;
}
#adminmenu li.wp-has-current-submenu div.wp-menu-image:before,
@ -350,7 +348,7 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu li:hover div.wp-menu-image:before,
#adminmenu li a:focus div.wp-menu-image:before,
#adminmenu li.opensub div.wp-menu-image:before {
color: variables.$menu-current-icon;
color: $menu-current-icon;
}
@ -359,49 +357,49 @@ ul#adminmenu > li.current > a.current:after {
#adminmenu .menu-counter,
#adminmenu .awaiting-mod,
#adminmenu .update-plugins {
color: variables.$menu-bubble-text;
background: variables.$menu-bubble-background;
color: $menu-bubble-text;
background: $menu-bubble-background;
}
#adminmenu li.current a .awaiting-mod,
#adminmenu li a.wp-has-current-submenu .update-plugins,
#adminmenu li:hover a .awaiting-mod,
#adminmenu li.menu-top:hover > a .update-plugins {
color: variables.$menu-bubble-current-text;
background: variables.$menu-bubble-current-background;
color: $menu-bubble-current-text;
background: $menu-bubble-current-background;
}
/* Admin Menu: collapse button */
#collapse-button {
color: variables.$menu-collapse-text;
color: $menu-collapse-text;
}
#collapse-button:hover,
#collapse-button:focus {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
/* Admin Bar */
#wpadminbar {
color: variables.$menu-text;
background: variables.$menu-background;
color: $menu-text;
background: $menu-background;
}
#wpadminbar .ab-item,
#wpadminbar a.ab-item,
#wpadminbar > #wp-toolbar span.ab-label,
#wpadminbar > #wp-toolbar span.noticon {
color: variables.$menu-text;
color: $menu-text;
}
#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .ab-item:before,
#wpadminbar .ab-item:after {
color: variables.$menu-icon;
color: $menu-icon;
}
#wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
@ -409,45 +407,45 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
color: variables.$menu-submenu-focus-text;
background: variables.$menu-submenu-background;
color: $menu-submenu-focus-text;
background: $menu-submenu-background;
}
#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
#wpadminbar:not(.mobile) li:hover .ab-icon:before,
#wpadminbar:not(.mobile) li:hover .ab-item:before,
#wpadminbar:not(.mobile) li:hover .ab-item:after,
#wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
/* Admin Bar: submenu */
#wpadminbar .menupop .ab-sub-wrapper {
background: variables.$menu-submenu-background;
background: $menu-submenu-background;
}
#wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
#wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
background: variables.$menu-submenu-background-alt;
background: $menu-submenu-background-alt;
}
#wpadminbar .ab-submenu .ab-item,
#wpadminbar .quicklinks .menupop ul li a,
#wpadminbar .quicklinks .menupop.hover ul li a,
#wpadminbar.nojs .quicklinks .menupop:hover ul li a {
color: variables.$menu-submenu-text;
color: $menu-submenu-text;
}
#wpadminbar .quicklinks li .blavatar,
#wpadminbar .menupop .menupop > .ab-item:before {
color: variables.$menu-icon;
color: $menu-icon;
}
#wpadminbar .quicklinks .menupop ul li a:hover,
@ -468,7 +466,7 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar li.hover .ab-item:before,
#wpadminbar li:hover #adminbarsearch:before,
#wpadminbar li #adminbarsearch.adminbar-focused:before {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
#wpadminbar .quicklinks li a:hover .blavatar,
@ -477,82 +475,82 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar .menupop .menupop > .ab-item:hover:before,
#wpadminbar.mobile .quicklinks .ab-icon:before,
#wpadminbar.mobile .quicklinks .ab-item:before {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
#wpadminbar.mobile .quicklinks .hover .ab-icon:before,
#wpadminbar.mobile .quicklinks .hover .ab-item:before {
color: variables.$menu-icon;
color: $menu-icon;
}
/* Admin Bar: search */
#wpadminbar #adminbarsearch:before {
color: variables.$menu-icon;
color: $menu-icon;
}
#wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
color: variables.$menu-text;
background: variables.$adminbar-input-background;
color: $menu-text;
background: $adminbar-input-background;
}
/* Admin Bar: recovery mode */
#wpadminbar #wp-admin-bar-recovery-mode {
color: variables.$adminbar-recovery-exit-text;
background-color: variables.$adminbar-recovery-exit-background;
color: $adminbar-recovery-exit-text;
background-color: $adminbar-recovery-exit-background;
}
#wpadminbar #wp-admin-bar-recovery-mode .ab-item,
#wpadminbar #wp-admin-bar-recovery-mode a.ab-item {
color: variables.$adminbar-recovery-exit-text;
color: $adminbar-recovery-exit-text;
}
#wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
#wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
#wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
color: variables.$adminbar-recovery-exit-text;
background-color: variables.$adminbar-recovery-exit-background-alt;
color: $adminbar-recovery-exit-text;
background-color: $adminbar-recovery-exit-background-alt;
}
/* Admin Bar: my account */
#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
border-color: variables.$adminbar-avatar-frame;
background-color: variables.$adminbar-avatar-frame;
border-color: $adminbar-avatar-frame;
background-color: $adminbar-avatar-frame;
}
#wpadminbar #wp-admin-bar-user-info .display-name {
color: variables.$menu-text;
color: $menu-text;
}
#wpadminbar #wp-admin-bar-user-info a:hover .display-name {
color: variables.$menu-submenu-focus-text;
color: $menu-submenu-focus-text;
}
#wpadminbar #wp-admin-bar-user-info .username {
color: variables.$menu-submenu-text;
color: $menu-submenu-text;
}
/* Pointers */
.wp-pointer .wp-pointer-content h3 {
background-color: variables.$highlight-color;
border-color: color.adjust(variables.$highlight-color, $lightness: -5%);
background-color: $highlight-color;
border-color: color.adjust($highlight-color, $lightness: -5%);
}
.wp-pointer .wp-pointer-content h3:before {
color: variables.$highlight-color;
color: $highlight-color;
}
.wp-pointer.wp-pointer-top .wp-pointer-arrow,
.wp-pointer.wp-pointer-top .wp-pointer-arrow-inner,
.wp-pointer.wp-pointer-undefined .wp-pointer-arrow,
.wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner {
border-bottom-color: variables.$highlight-color;
border-bottom-color: $highlight-color;
}
@ -560,22 +558,22 @@ ul#adminmenu > li.current > a.current:after {
.media-item .bar,
.media-progress-bar div {
background-color: variables.$highlight-color;
background-color: $highlight-color;
}
.details.attachment {
box-shadow:
inset 0 0 0 3px #fff,
inset 0 0 0 7px variables.$highlight-color;
inset 0 0 0 7px $highlight-color;
}
.attachment.details .check {
background-color: variables.$highlight-color;
box-shadow: 0 0 0 1px #fff, 0 0 0 2px variables.$highlight-color;
background-color: $highlight-color;
box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color;
}
.media-selection .attachment.selection.details .thumbnail {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px variables.$highlight-color;
box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color;
}
@ -584,49 +582,49 @@ ul#adminmenu > li.current > a.current:after {
.theme-browser .theme.active .theme-name,
.theme-browser .theme.add-new-theme a:hover:after,
.theme-browser .theme.add-new-theme a:focus:after {
background: variables.$highlight-color;
background: $highlight-color;
}
.theme-browser .theme.add-new-theme a:hover span:after,
.theme-browser .theme.add-new-theme a:focus span:after {
color: variables.$highlight-color;
color: $highlight-color;
}
.theme-section.current,
.theme-filter.current {
border-bottom-color: variables.$menu-background;
border-bottom-color: $menu-background;
}
body.more-filters-opened .more-filters {
color: variables.$menu-text;
background-color: variables.$menu-background;
color: $menu-text;
background-color: $menu-background;
}
body.more-filters-opened .more-filters:before {
color: variables.$menu-text;
color: $menu-text;
}
body.more-filters-opened .more-filters:hover,
body.more-filters-opened .more-filters:focus {
background-color: variables.$menu-highlight-background;
color: variables.$menu-highlight-text;
background-color: $menu-highlight-background;
color: $menu-highlight-text;
}
body.more-filters-opened .more-filters:hover:before,
body.more-filters-opened .more-filters:focus:before {
color: variables.$menu-highlight-text;
color: $menu-highlight-text;
}
/* Widgets */
.widgets-chooser li.widgets-chooser-selected {
background-color: variables.$menu-highlight-background;
color: variables.$menu-highlight-text;
background-color: $menu-highlight-background;
color: $menu-highlight-text;
}
.widgets-chooser li.widgets-chooser-selected:before,
.widgets-chooser li.widgets-chooser-selected:focus:before {
color: variables.$menu-highlight-text;
color: $menu-highlight-text;
}
@ -634,29 +632,29 @@ body.more-filters-opened .more-filters:focus:before {
.nav-menus-php .item-edit:focus:before {
box-shadow:
0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%),
0 0 2px 1px variables.$button-color;
0 0 0 1px color.adjust($button-color, $lightness: 10%),
0 0 2px 1px $button-color;
}
/* Responsive Component */
div#wp-responsive-toggle a:before {
color: variables.$menu-icon;
color: $menu-icon;
}
.wp-responsive-open div#wp-responsive-toggle a {
// ToDo: make inset border
border-color: transparent;
background: variables.$menu-highlight-background;
background: $menu-highlight-background;
}
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a {
background: variables.$menu-submenu-background;
background: $menu-submenu-background;
}
.wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before {
color: variables.$menu-icon;
color: $menu-icon;
}
/* TinyMCE */
@ -666,7 +664,7 @@ div#wp-responsive-toggle a:before {
.mce-container.mce-menu .mce-menu-item:focus,
.mce-container.mce-menu .mce-menu-item-normal.mce-active,
.mce-container.mce-menu .mce-menu-item-preview.mce-active {
background: variables.$highlight-color;
background: $highlight-color;
}
/* Customizer */
@ -675,24 +673,24 @@ div#wp-responsive-toggle a:before {
#customize-controls .control-section .accordion-section-title:hover,
#customize-controls .control-section.open .accordion-section-title,
#customize-controls .control-section .accordion-section-title:focus {
color: variables.$link;
border-left-color: variables.$button-color;
color: $link;
border-left-color: $button-color;
}
.customize-controls-close:focus,
.customize-controls-close:hover,
.customize-controls-preview-toggle:focus,
.customize-controls-preview-toggle:hover {
color: variables.$link;
border-top-color: variables.$button-color;
color: $link;
border-top-color: $button-color;
}
.customize-panel-back:hover,
.customize-panel-back:focus,
.customize-section-back:hover,
.customize-section-back:focus {
color: variables.$link;
border-left-color: variables.$button-color;
color: $link;
border-left-color: $button-color;
}
.customize-screen-options-toggle:hover,
@ -702,7 +700,7 @@ div#wp-responsive-toggle a:before {
#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,
#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
color: variables.$link;
color: $link;
}
.customize-screen-options-toggle:focus:before,
@ -713,28 +711,28 @@ div#wp-responsive-toggle a:before {
#customize-save-button-wrapper .save:focus,
#publish-settings:focus {
box-shadow:
0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%),
0 0 2px 1px variables.$button-color;
0 0 0 1px color.adjust($button-color, $lightness: 10%),
0 0 2px 1px $button-color;
}
#customize-controls .customize-info.open .customize-help-toggle,
#customize-controls .customize-info .customize-help-toggle:focus,
#customize-controls .customize-info .customize-help-toggle:hover {
color: variables.$link;
color: $link;
}
.control-panel-themes .customize-themes-section-title:focus,
.control-panel-themes .customize-themes-section-title:hover {
border-left-color: variables.$button-color;
color: variables.$link;
border-left-color: $button-color;
color: $link;
}
.control-panel-themes .theme-section .customize-themes-section-title.selected:after {
background: variables.$button-color;
background: $button-color;
}
.control-panel-themes .customize-themes-section-title.selected {
color: variables.$link;
color: $link;
}
#customize-theme-controls .control-section:hover > .accordion-section-title:after,
@ -745,37 +743,37 @@ div#wp-responsive-toggle a:before {
#customize-outer-theme-controls .control-section .accordion-section-title:hover:after,
#customize-outer-theme-controls .control-section.open .accordion-section-title:after,
#customize-outer-theme-controls .control-section .accordion-section-title:focus:after {
color: variables.$link;
color: $link;
}
.customize-control .attachment-media-view .button-add-media:focus {
background-color: #fbfbfc;
border-color: variables.$button-color;
border-color: $button-color;
border-style: solid;
box-shadow: 0 0 0 1px variables.$button-color;
box-shadow: 0 0 0 1px $button-color;
outline: 2px solid transparent;
}
.wp-full-overlay-footer .devices button:focus,
.wp-full-overlay-footer .devices button.active:hover {
border-bottom-color: variables.$button-color;
border-bottom-color: $button-color;
}
.wp-full-overlay-footer .devices button:hover:before,
.wp-full-overlay-footer .devices button:focus:before {
color: variables.$button-color;
color: $button-color;
}
.wp-full-overlay .collapse-sidebar:hover,
.wp-full-overlay .collapse-sidebar:focus {
color: variables.$button-color;
color: $button-color;
}
.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow,
.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow {
box-shadow:
0 0 0 1px color.adjust(variables.$button-color, $lightness: 10%),
0 0 2px 1px variables.$button-color;
0 0 0 1px color.adjust($button-color, $lightness: 10%),
0 0 2px 1px $button-color;
}
&.wp-customizer .theme-overlay .theme-header .close:focus,
@ -784,7 +782,7 @@ div#wp-responsive-toggle a:before {
&.wp-customizer .theme-overlay .theme-header .right:hover,
&.wp-customizer .theme-overlay .theme-header .left:focus,
&.wp-customizer .theme-overlay .theme-header .left:hover {
border-bottom-color: variables.$button-color;
color: variables.$link;
border-bottom-color: $button-color;
color: $link;
}
}

View File

@ -1,5 +1,3 @@
@use 'sass:color';
/*
* Button mixin- creates a button effect with correct
* highlights/shadows, based on a base color.

View File

@ -1,5 +1,3 @@
@use "sass:color";
// assign default value to all undefined variables
$scheme-name: "default" !default;
@ -15,7 +13,7 @@ $notification-color: #d54e21 !default;
// global
$body-background: #fff !default;
$body-background: #f1f1f1 !default;
$link: #0073aa !default;
$link-focus: color.adjust($link, $lightness: 10%) !default;
@ -39,7 +37,7 @@ $menu-current-text: $menu-highlight-text !default;
$menu-current-icon: $menu-highlight-icon !default;
$menu-current-background: $menu-highlight-background !default;
$menu-submenu-text: color.mix( $base-color, $text-color, 30% ) !default;
$menu-submenu-text: mix( $base-color, $text-color, 30% ) !default;
$menu-submenu-background: color.adjust($base-color, $lightness: -7%) !default;
$menu-submenu-background-alt: color.adjust(color.adjust($menu-background, $lightness: 7%), $saturation: -7%) !default;
@ -61,9 +59,9 @@ $adminbar-input-background: color.adjust($menu-background, $lightness: 7%) !defa
$adminbar-recovery-exit-text: $menu-bubble-text !default;
$adminbar-recovery-exit-background: $menu-bubble-background !default;
$adminbar-recovery-exit-background-alt: color.mix(black, $adminbar-recovery-exit-background, 10%) !default;
$adminbar-recovery-exit-background-alt: mix(black, $adminbar-recovery-exit-background, 10%) !default;
$menu-customizer-text: color.mix( $base-color, $text-color, 40% ) !default;
$menu-customizer-text: mix( $base-color, $text-color, 40% ) !default;
// Dashboard Colors

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-left-color: #fff;
border-left-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
border-right-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,16 @@
@use "sass:color";
$scheme-name: "blue";
$base-color: #52accc;
$icon-color: #e5f8ff;
$highlight-color: #096484;
$notification-color: #e1a948;
$button-color: #e1a948;
@use "../_admin.scss" with (
$scheme-name: "blue",
$base-color: #52accc,
$icon-color: #e5f8ff,
$highlight-color: $highlight-color,
$notification-color: #e1a948,
$button-color: #e1a948,
$menu-submenu-text: #e2ecf1;
$menu-submenu-focus-text: #fff;
$menu-submenu-background: #4796b3;
$menu-submenu-text: #e2ecf1,
$menu-submenu-focus-text: #fff,
$menu-submenu-background: #4796b3,
$dashboard-icon-background: $highlight-color;
$dashboard-icon-background: $highlight-color
);
@import "../_admin.scss";

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -220,8 +220,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -273,7 +273,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-left-color: #fff;
border-left-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -220,8 +220,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -273,7 +273,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
border-right-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
@use "sass:color";
$scheme-name: "coffee";
$base-color: #59524c;
$highlight-color: #c7a589;
$notification-color: #9ea476;
$low-contrast-theme: "true";
@use "../_admin.scss" with (
$scheme-name: "coffee",
$base-color: $base-color,
$highlight-color: #c7a589,
$notification-color: #9ea476,
$form-checked: $base-color,
$form-checked: $base-color;
$low-contrast-theme: "true"
);
@import "../_admin.scss";

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-left-color: #fff;
border-left-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
border-right-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,11 @@
@use "sass:color";
$scheme-name: "ectoplasm";
$base-color: #523f6d;
$icon-color: #ece6f6;
$highlight-color: #a3b745;
$notification-color: #d46f15;
@use "../_admin.scss" with (
$scheme-name: "ectoplasm",
$base-color: $base-color,
$icon-color: #ece6f6,
$highlight-color: #a3b745,
$notification-color: #d46f15,
$form-checked: $base-color;
$form-checked: $base-color,
);
@import "../_admin.scss";

View File

@ -1,36 +1,33 @@
@use "sass:color";
$highlight-color: #04a4cc;
$scheme-name: "light";
$base-color: #e5e5e5;
$icon-color: #999;
$text-color: #333;
$highlight-color: #04a4cc;
$notification-color: #d64e07;
$body-background: #f5f5f5;
$menu-highlight-text: #fff;
$menu-highlight-icon: #ccc;
$menu-highlight-background: #888;
$menu-bubble-text: #fff;
$menu-avatar-frame: #aaa;
$menu-submenu-background: #fff;
@use "../_admin.scss" with (
$scheme-name: "light",
$base-color: #e5e5e5,
$icon-color: #999,
$text-color: $text-color,
$highlight-color: $highlight-color,
$notification-color: #d64e07,
$menu-collapse-text: #777;
$menu-collapse-focus-icon: #555;
$body-background: #f5f5f5,
$dashboard-accent-1: $highlight-color;
$dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%);
$dashboard-icon-background: $text-color;
$menu-highlight-text: #fff,
$menu-highlight-icon: #ccc,
$menu-highlight-background: #888,
$menu-bubble-text: #fff,
$menu-submenu-background: #fff,
$menu-collapse-text: #777,
$menu-collapse-focus-icon: #555,
$dashboard-accent-1: $highlight-color,
$dashboard-accent-2: color.adjust(color.adjust($highlight-color, $lightness: 7%), $saturation: -15%),
$dashboard-icon-background: $text-color
);
@import "../_admin.scss";
/* Override the theme filter highlight color for this scheme */
.theme-section.current,
.theme-filter.current {
border-bottom-color: admin.$highlight-color;
border-bottom-color: $highlight-color;
}

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-left-color: #fff;
border-left-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
border-right-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -1,14 +1,10 @@
@use "sass:color";
$scheme-name: "midnight";
$base-color: #363b3f;
$highlight-color: #e14d43;
$notification-color: #69a8bb;
@use "../_admin.scss" with (
$scheme-name: "midnight",
$base-color: $base-color,
$highlight-color: $highlight-color,
$notification-color: $notification-color,
$dashboard-accent-2: mix($base-color, $notification-color, 90%);
$dashboard-accent-2: color.mix($base-color, $notification-color, 90%),
);
@import "../_admin.scss";

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -287,7 +287,7 @@ textarea:focus {
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover {
color: #7b90ff;
color: #33f078;
}
/* Admin Menu: current */
@ -301,12 +301,12 @@ textarea:focus {
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus {
color: #7b90ff;
color: #33f078;
}
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-left-color: #fff;
border-left-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,
@ -351,7 +351,7 @@ ul#adminmenu > li.current > a.current:after {
#collapse-button:hover,
#collapse-button:focus {
color: #7b90ff;
color: #33f078;
}
/* Admin Bar */
@ -379,21 +379,21 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
color: #7b90ff;
color: #33f078;
background: rgb(12.15, 12.15, 12.15);
}
#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
color: #7b90ff;
color: #33f078;
}
#wpadminbar:not(.mobile) li:hover .ab-icon:before,
#wpadminbar:not(.mobile) li:hover .ab-item:before,
#wpadminbar:not(.mobile) li:hover .ab-item:after,
#wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
color: #7b90ff;
color: #33f078;
}
/* Admin Bar: submenu */
@ -436,7 +436,7 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar li.hover .ab-item:before,
#wpadminbar li:hover #adminbarsearch:before,
#wpadminbar li #adminbarsearch.adminbar-focused:before {
color: #7b90ff;
color: #33f078;
}
#wpadminbar .quicklinks li a:hover .blavatar,
@ -445,7 +445,7 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar .menupop .menupop > .ab-item:hover:before,
#wpadminbar.mobile .quicklinks .ab-icon:before,
#wpadminbar.mobile .quicklinks .ab-item:before {
color: #7b90ff;
color: #33f078;
}
#wpadminbar.mobile .quicklinks .hover .ab-icon:before,
@ -493,7 +493,7 @@ ul#adminmenu > li.current > a.current:after {
}
#wpadminbar #wp-admin-bar-user-info a:hover .display-name {
color: #7b90ff;
color: #33f078;
}
#wpadminbar #wp-admin-bar-user-info .username {

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -287,7 +287,7 @@ textarea:focus {
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover {
color: #7b90ff;
color: #33f078;
}
/* Admin Menu: current */
@ -301,12 +301,12 @@ textarea:focus {
#adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a:focus,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:hover,
#adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a:focus {
color: #7b90ff;
color: #33f078;
}
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
border-right-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,
@ -351,7 +351,7 @@ ul#adminmenu > li.current > a.current:after {
#collapse-button:hover,
#collapse-button:focus {
color: #7b90ff;
color: #33f078;
}
/* Admin Bar */
@ -379,21 +379,21 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
#wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item,
#wpadminbar .ab-top-menu > li.menupop.hover > .ab-item {
color: #7b90ff;
color: #33f078;
background: rgb(12.15, 12.15, 12.15);
}
#wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label,
#wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
color: #7b90ff;
color: #33f078;
}
#wpadminbar:not(.mobile) li:hover .ab-icon:before,
#wpadminbar:not(.mobile) li:hover .ab-item:before,
#wpadminbar:not(.mobile) li:hover .ab-item:after,
#wpadminbar:not(.mobile) li:hover #adminbarsearch:before {
color: #7b90ff;
color: #33f078;
}
/* Admin Bar: submenu */
@ -436,7 +436,7 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar li.hover .ab-item:before,
#wpadminbar li:hover #adminbarsearch:before,
#wpadminbar li #adminbarsearch.adminbar-focused:before {
color: #7b90ff;
color: #33f078;
}
#wpadminbar .quicklinks li a:hover .blavatar,
@ -445,7 +445,7 @@ ul#adminmenu > li.current > a.current:after {
#wpadminbar .menupop .menupop > .ab-item:hover:before,
#wpadminbar.mobile .quicklinks .ab-icon:before,
#wpadminbar.mobile .quicklinks .ab-item:before {
color: #7b90ff;
color: #33f078;
}
#wpadminbar.mobile .quicklinks .hover .ab-icon:before,
@ -493,7 +493,7 @@ ul#adminmenu > li.current > a.current:after {
}
#wpadminbar #wp-admin-bar-user-info a:hover .display-name {
color: #7b90ff;
color: #33f078;
}
#wpadminbar #wp-admin-bar-user-info .username {

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,14 @@
@use "sass:color";
$scheme-name: "modern";
$base-color: #1e1e1e;
$highlight-color: #3858e9;
$menu-submenu-focus-text: #33f078;
$notification-color: $highlight-color;
@use "../_admin.scss" with (
$scheme-name: "modern",
$base-color: #1e1e1e,
$highlight-color: #3858e9,
$menu-submenu-focus-text: #7b90ff,
$notification-color: $highlight-color,
$link: $highlight-color;
$link-focus: color.adjust($highlight-color, $lightness: -10%);
$link: $highlight-color,
$link-focus: color.adjust($highlight-color, $lightness: -10%),
$custom-welcome-panel: "false";
$custom-welcome-panel: "false"
);
@import "../_admin.scss";

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -220,8 +220,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -273,7 +273,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-left-color: #fff;
border-left-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -220,8 +220,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -273,7 +273,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
border-right-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,12 @@
@use "sass:color";
$scheme-name: "ocean";
$base-color: #738e96;
$icon-color: #f2fcff;
$highlight-color: #9ebaa0;
$notification-color: #aa9d88;
$low-contrast-theme: "true";
@use "../_admin.scss" with (
$scheme-name: "ocean",
$base-color: $base-color,
$icon-color: #f2fcff,
$highlight-color: #9ebaa0,
$notification-color: #aa9d88,
$form-checked: $base-color,
$form-checked: $base-color;
$low-contrast-theme: "true"
);
@import "../_admin.scss";

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-left-color: #fff;
border-left-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
* may use the function in their own admin CSS files. See #56811.
*/
body {
background: #fff;
background: #f1f1f1;
}
/* Links */
@ -253,8 +253,8 @@ textarea:focus {
.about-wrap .nav-tab-active,
.nav-tab-active,
.nav-tab-active:hover {
background-color: #fff;
border-bottom-color: #fff;
background-color: #f1f1f1;
border-bottom-color: #f1f1f1;
}
/* Admin Menu: submenu */
@ -306,7 +306,7 @@ textarea:focus {
ul#adminmenu a.wp-has-current-submenu:after,
ul#adminmenu > li.current > a.current:after {
border-right-color: #fff;
border-right-color: #f1f1f1;
}
#adminmenu li.current a.menu-top,

File diff suppressed because one or more lines are too long

View File

@ -1,11 +1,9 @@
@use "sass:color";
$scheme-name: "sunrise";
$base-color: #cf4944;
$highlight-color: #dd823b;
$notification-color: #ccaf0b;
$menu-submenu-focus-text: color.adjust($highlight-color, $lightness: 35%);
@use "../_admin.scss" with (
$scheme-name: "sunrise",
$base-color: #cf4944,
$highlight-color: $highlight-color,
$notification-color: #ccaf0b,
$menu-submenu-focus-text: color.adjust($highlight-color, $lightness: 35%)
);
@import "../_admin.scss";

View File

@ -123,6 +123,7 @@
.screen-reader-text span,
.ui-helper-hidden-accessible {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@ -220,6 +221,7 @@ body {
}
body {
background: #f0f0f1;
color: #3c434a;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px;
@ -1115,6 +1117,11 @@ th.action-links {
align-items: center;
}
.wp-filter .search-form.search-plugins {
/* This element is a flex item: the inherited float won't have any effect. */
margin-top: 0;
}
.wp-filter .search-form.search-plugins select,
.wp-filter .search-form.search-plugins .wp-filter-search,
.no-js .wp-filter .search-form.search-plugins .button {
@ -1347,12 +1354,6 @@ th.action-links {
float: none;
}
@media only screen and (max-width: 1138px) {
.wp-filter .search-form {
margin: 11px 0;
}
}
@media only screen and (max-width: 1120px) {
.filter-drawer {
border-bottom: 1px solid #f0f0f1;

File diff suppressed because one or more lines are too long

View File

@ -122,6 +122,7 @@
.screen-reader-text span,
.ui-helper-hidden-accessible {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
@ -219,6 +220,7 @@ body {
}
body {
background: #f0f0f1;
color: #3c434a;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
font-size: 13px;
@ -1114,6 +1116,11 @@ th.action-links {
align-items: center;
}
.wp-filter .search-form.search-plugins {
/* This element is a flex item: the inherited float won't have any effect. */
margin-top: 0;
}
.wp-filter .search-form.search-plugins select,
.wp-filter .search-form.search-plugins .wp-filter-search,
.no-js .wp-filter .search-form.search-plugins .button {
@ -1346,12 +1353,6 @@ th.action-links {
float: none;
}
@media only screen and (max-width: 1138px) {
.wp-filter .search-form {
margin: 11px 0;
}
}
@media only screen and (max-width: 1120px) {
.filter-drawer {
border-bottom: 1px solid #f0f0f1;

File diff suppressed because one or more lines are too long

View File

@ -448,9 +448,6 @@ body.trashing #publish-settings {
#customize-controls .customize-info .preview-notice {
font-size: 13px;
line-height: 1.9;
margin: 0;
font-weight: 400;
color: #50575e;
}
#customize-controls .customize-pane-child .customize-section-title h3,
@ -2645,19 +2642,6 @@ body.adding-widget .add-new-widget:before,
#available-widgets .customize-section-title,
#available-menu-items .customize-section-title {
border: 0;
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}
#available-widgets .customize-section-title button,
#available-menu-items .customize-section-title button {
display: none;
}
@ -2994,19 +2978,8 @@ body.adding-widget .add-new-widget:before,
#available-widgets .customize-section-title,
#available-menu-items .customize-section-title {
border: 0;
clip-path: none;
height: inherit;
margin: 0;
overflow: hidden;
padding: 0;
width: auto;
position: static;
}
#available-widgets .customize-section-title button,
#available-menu-items .customize-section-title button {
display: block;
margin: 0;
}
#available-widgets .customize-section-back,

File diff suppressed because one or more lines are too long

View File

@ -447,9 +447,6 @@ body.trashing #publish-settings {
#customize-controls .customize-info .preview-notice {
font-size: 13px;
line-height: 1.9;
margin: 0;
font-weight: 400;
color: #50575e;
}
#customize-controls .customize-pane-child .customize-section-title h3,
@ -2644,19 +2641,6 @@ body.adding-widget .add-new-widget:before,
#available-widgets .customize-section-title,
#available-menu-items .customize-section-title {
border: 0;
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}
#available-widgets .customize-section-title button,
#available-menu-items .customize-section-title button {
display: none;
}
@ -2993,19 +2977,8 @@ body.adding-widget .add-new-widget:before,
#available-widgets .customize-section-title,
#available-menu-items .customize-section-title {
border: 0;
clip-path: none;
height: inherit;
margin: 0;
overflow: hidden;
padding: 0;
width: auto;
position: static;
}
#available-widgets .customize-section-title button,
#available-menu-items .customize-section-title button {
display: block;
margin: 0;
}
#available-widgets .customize-section-back,

File diff suppressed because one or more lines are too long

View File

@ -860,7 +860,7 @@ ul#add-to-blog-users {
padding: 20px 0 20px 10px;
width: 200px;
line-height: 1.3;
font-weight: 400;
font-weight: 600;
}
.form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */

File diff suppressed because one or more lines are too long

View File

@ -859,7 +859,7 @@ ul#add-to-blog-users {
padding: 20px 10px 20px 0;
width: 200px;
line-height: 1.3;
font-weight: 400;
font-weight: 600;
}
.form-table th.th-full, /* Not used by core. Back-compat for pre-4.8 */

File diff suppressed because one or more lines are too long

View File

@ -350,6 +350,7 @@ body.language-chooser {
.screen-reader-input,
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;

File diff suppressed because one or more lines are too long

View File

@ -349,6 +349,7 @@ body.language-chooser {
.screen-reader-input,
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;

File diff suppressed because one or more lines are too long

View File

@ -140,7 +140,8 @@ p {
}
.login form {
margin: 24px 0;
margin-top: 20px;
margin-right: 0;
padding: 26px 24px;
font-weight: 400;
overflow: hidden;
@ -284,7 +285,7 @@ p {
font-size: 20px;
font-weight: 400;
line-height: 1.3;
margin: 0 auto 24px;
margin: 0 auto 25px;
padding: 0;
text-decoration: none;
width: 84px;
@ -407,6 +408,7 @@ body.interim-login {
.screen-reader-text,
.screen-reader-text span {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;

File diff suppressed because one or more lines are too long

View File

@ -139,7 +139,8 @@ p {
}
.login form {
margin: 24px 0;
margin-top: 20px;
margin-left: 0;
padding: 26px 24px;
font-weight: 400;
overflow: hidden;
@ -283,7 +284,7 @@ p {
font-size: 20px;
font-weight: 400;
line-height: 1.3;
margin: 0 auto 24px;
margin: 0 auto 25px;
padding: 0;
text-decoration: none;
width: 84px;
@ -406,6 +407,7 @@ body.interim-login {
.screen-reader-text,
.screen-reader-text span {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;

File diff suppressed because one or more lines are too long

View File

@ -175,7 +175,7 @@
.media-item .pinkynail {
float: right;
margin: 14px;
margin: 0 0 0 10px;
max-height: 70px;
max-width: 70px;
}

File diff suppressed because one or more lines are too long

View File

@ -174,7 +174,7 @@
.media-item .pinkynail {
float: left;
margin: 14px;
margin: 0 10px 0 0;
max-height: 70px;
max-width: 70px;
}

File diff suppressed because one or more lines are too long

View File

@ -12,10 +12,6 @@
overflow-y: scroll;
}
.themes-php #adminmenuwrap {
z-index: 10001; /* above Theme Overlay */
}
body.js .theme-browser.search-loading {
display: none;
}
@ -377,7 +373,6 @@ body.js .theme-browser.search-loading {
background: #f0f0f1;
background: rgba(240, 240, 241, 0.9);
z-index: 10000; /* Over WP Pointers. */
min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
.theme-overlay .theme-header {
@ -921,10 +916,6 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
padding-right: 4%;
padding-left: 4%;
}
.theme-install-php .wp-filter .filter-count {
margin-top: 10px;
}
}
@media only screen and (max-width: 650px) {
@ -945,7 +936,6 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-screenshots {
width: 100%;
float: none;
margin: 0;
}
.theme-overlay .theme-info {

File diff suppressed because one or more lines are too long

View File

@ -11,10 +11,6 @@
overflow-y: scroll;
}
.themes-php #adminmenuwrap {
z-index: 10001; /* above Theme Overlay */
}
body.js .theme-browser.search-loading {
display: none;
}
@ -376,7 +372,6 @@ body.js .theme-browser.search-loading {
background: #f0f0f1;
background: rgba(240, 240, 241, 0.9);
z-index: 10000; /* Over WP Pointers. */
min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}
.theme-overlay .theme-header {
@ -920,10 +915,6 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
padding-left: 4%;
padding-right: 4%;
}
.theme-install-php .wp-filter .filter-count {
margin-top: 10px;
}
}
@media only screen and (max-width: 650px) {
@ -944,7 +935,6 @@ body.folded .theme-browser ~ .theme-overlay .theme-wrap {
.theme-overlay .theme-screenshots {
width: 100%;
float: none;
margin: 0;
}
.theme-overlay .theme-info {

File diff suppressed because one or more lines are too long

View File

@ -9,11 +9,6 @@
* @subpackage Administration
*/
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-background.php' );
/** Custom_Background class */

View File

@ -9,11 +9,6 @@
* @subpackage Administration
*/
// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
_deprecated_file( basename( __FILE__ ), '5.3.0', 'wp-admin/includes/class-custom-image-header.php' );
/** Custom_Image_Header class */

View File

@ -76,8 +76,8 @@ if ( $wp_customize->changeset_post_id() ) {
if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) {
wp_die(
'<h1>' . __( 'An error occurred while saving your changeset.' ) . '</h1>' .
'<p>' . __( 'Please try again or start a new changeset. This changeset cannot be further modified.' ) . '</p>' .
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
'<p>' . __( 'This changeset cannot be further modified.' ) . '</p>' .
'<p><a href="' . esc_url( remove_query_arg( 'changeset_uuid' ) ) . '">' . __( 'Customize New Changes' ) . '</a></p>',
403
);
@ -100,12 +100,6 @@ if ( ! empty( $autofocus ) ) {
$wp_customize->set_autofocus( $autofocus );
}
// Let's roll.
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
wp_user_settings();
_wp_admin_html_begin();
$registered = $wp_scripts->registered;
$wp_scripts = new WP_Scripts();
$wp_scripts->registered = $registered;
@ -132,6 +126,12 @@ wp_enqueue_style( 'customize-controls' );
*/
do_action( 'customize_controls_enqueue_scripts' );
// Let's roll.
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
wp_user_settings();
_wp_admin_html_begin();
$body_class = 'wp-core-ui wp-customizer js';
if ( wp_is_mobile() ) :
@ -233,12 +233,12 @@ do_action( 'customize_controls_head' );
<div class="wp-full-overlay-sidebar-content" tabindex="-1">
<div id="customize-info" class="accordion-section customize-info" data-block-theme="<?php echo (int) wp_is_block_theme(); ?>">
<div class="accordion-section-title">
<h2 class="preview-notice">
<span class="preview-notice">
<?php
/* translators: %s: The site/panel title in the Customizer. */
printf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' );
?>
</h2>
</span>
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */

View File

@ -25,7 +25,14 @@ $current_screen->is_block_editor( false );
if ( is_multisite() ) {
add_action( 'admin_footer', '_admin_notice_post_locked' );
} else {
if ( get_user_count() > 1 ) {
$check_users = get_users(
array(
'fields' => 'ID',
'number' => 2,
)
);
if ( count( $check_users ) > 1 ) {
add_action( 'admin_footer', '_admin_notice_post_locked' );
}
@ -283,9 +290,9 @@ if ( 'post' === $post_type ) {
);
$title_and_editor = '<p>' . __( '<strong>Title</strong> &mdash; Enter a title for your post. After you enter a title, you&#8217;ll see the permalink below, which you can edit.' ) . '</p>';
$title_and_editor .= '<p>' . __( '<strong>Post editor</strong> &mdash; Enter the text for your post. There are two modes of editing: Visual and Code. Choose the mode by clicking on the appropriate tab.' ) . '</p>';
$title_and_editor .= '<p>' . __( '<strong>Post editor</strong> &mdash; Enter the text for your post. There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab.' ) . '</p>';
$title_and_editor .= '<p>' . __( 'Visual mode gives you an editor that is similar to a word processor. Click the Toolbar Toggle button to get a second row of controls.' ) . '</p>';
$title_and_editor .= '<p>' . __( 'The Code mode allows you to enter HTML along with your post text. Note that &lt;p&gt; and &lt;br&gt; tags are converted to line breaks when switching to the Code editor to make it less cluttered. When you type, a single line break can be used instead of typing &lt;br&gt;, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>';
$title_and_editor .= '<p>' . __( 'The Text mode allows you to enter HTML along with your post text. Note that &lt;p&gt; and &lt;br&gt; tags are converted to line breaks when switching to the Text editor to make it less cluttered. When you type, a single line break can be used instead of typing &lt;br&gt;, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>';
$title_and_editor .= '<p>' . __( 'You can insert media files by clicking the button above the post editor and following the directions. You can align or edit images using the inline formatting toolbar available in Visual mode.' ) . '</p>';
$title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>';
$title_and_editor .= '<p>' . sprintf(
@ -314,7 +321,7 @@ if ( 'post' === $post_type ) {
);
} elseif ( 'page' === $post_type ) {
$about_pages = '<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>' .
'<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Code modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>';
'<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Text modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>';
get_current_screen()->add_help_tab(
array(
@ -539,13 +546,7 @@ do_action( 'edit_form_top', $post );
?>
<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
<input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off" />
<?php
if ( post_type_supports( $post_type, 'editor' ) ) {
?>
<a href="#content" class="button-secondary screen-reader-text skiplink" onclick="if (tinymce) { tinymce.execCommand( 'mceFocus', false, 'content' ); }"><?php esc_html_e( 'Skip to Editor' ); ?></a>
<?php
}
?>
<a href="#content" class="button-secondary screen-reader-text skiplink" onclick="if (tinymce) { tinymce.execCommand( 'mceFocus', false, 'content' ); }"><?php esc_html_e( 'Skip to Editor' ); ?></a>
</div>
<?php
/**

View File

@ -51,8 +51,8 @@ wp_enqueue_script( 'wp-edit-post' );
$rest_path = rest_get_route_for_post( $post );
$active_theme = get_stylesheet();
$global_styles_endpoint_context = current_user_can( 'edit_theme_options' ) ? 'edit' : 'view';
$active_theme = get_stylesheet();
// Preload common data.
$preload_paths = array(
'/wp/v2/types?context=view',
@ -71,14 +71,7 @@ $preload_paths = array(
'/wp/v2/global-styles/themes/' . $active_theme . '/variations?context=view',
'/wp/v2/themes?context=edit&status=active',
array( '/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id(), 'OPTIONS' ),
/*
* Preload the global styles path with the correct context based on user caps.
* NOTE: There is an equivalent conditional check in the client-side code to fetch
* the global styles entity using the appropriate context value.
* See the call to `canUser()`, under `useGlobalStylesUserConfig()` in `packages/edit-site/src/components/use-global-styles-user-config/index.js`.
* Please ensure that the equivalent check is kept in sync with this preload path.
*/
'/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=' . $global_styles_endpoint_context,
'/wp/v2/global-styles/' . WP_Theme_JSON_Resolver::get_user_global_styles_post_id() . '?context=edit',
);
block_editor_rest_api_preload( $preload_paths, $block_editor_context );

View File

@ -68,7 +68,7 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
<tr>
<td class="first"><label for="newcomment_author_url"><?php _e( 'URL' ); ?></label></td>
<td>
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_url( $comment->comment_author_url ); ?>" />
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" />
</td>
</tr>
</tbody>

View File

@ -19,7 +19,7 @@ if ( ! empty( $link_id ) ) {
$nonce_action = 'update-bookmark_' . $link_id;
} else {
/* translators: %s: URL to Links screen. */
$heading = sprintf( __( '<a href="%s">Links</a> / Add Link' ), 'link-manager.php' );
$heading = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' );
$submit_text = __( 'Add Link' );
$form_name = 'addlink';
$nonce_action = 'add-bookmark';
@ -87,7 +87,7 @@ echo esc_html( $title );
?>
</h1>
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add Link' ); ?></a>
<a href="link-add.php" class="page-title-action"><?php echo esc_html__( 'Add New Link' ); ?></a>
<hr class="wp-header-end">

View File

@ -44,7 +44,7 @@ if ( 'category' === $taxonomy ) {
do_action_deprecated( 'edit_tag_form_pre', array( $tag ), '3.0.0', '{$taxonomy}_pre_edit_form' );
}
$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_url( $_REQUEST['wp_http_referer'] ) : '';
$wp_http_referer = ! empty( $_REQUEST['wp_http_referer'] ) ? sanitize_text_field( $_REQUEST['wp_http_referer'] ) : '';
$wp_http_referer = remove_query_arg( array( 'action', 'message', 'tag_ID' ), $wp_http_referer );
// Also used by Edit Tags.

View File

@ -85,7 +85,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
<?php
printf(
/* translators: %s: https://wordpressfoundation.org/trademark-policy/ */
__( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. The WordPress community is flattered every time someone spreads the good word, just make sure to <a href="%s">check out the WordPress Foundation trademark guidelines</a> first.' ),
__( 'WordPress grows when people like you tell their friends about it, and the thousands of businesses and services that are built on and around WordPress share that fact with their users. We are flattered every time someone spreads the good word, just make sure to <a href="%s">check out our trademark guidelines</a> first.' ),
'https://wordpressfoundation.org/trademark-policy/'
);
?>

View File

@ -235,13 +235,6 @@ if ( current_user_can( 'install_plugins' ) ) {
esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) )
) . '</p>';
}
/**
* Fires at the end of the Import screen.
*
* @since 6.8.0
*/
do_action( 'import_filters' );
?>
</div>

View File

@ -44,6 +44,7 @@ add_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
// Misc hooks.
add_action( 'admin_init', 'wp_admin_headers' );
add_action( 'login_init', 'wp_admin_headers' );
add_action( 'admin_init', 'send_frame_options_header', 10, 0 );
add_action( 'admin_head', 'wp_admin_canonical_url' );
add_action( 'admin_head', 'wp_site_icon' );

View File

@ -3556,9 +3556,9 @@ function wp_ajax_get_revision_diffs() {
$return = array();
// Increase the script timeout limit to allow ample time for diff UI setup.
// Removes the script timeout limit by setting it to 0 allowing ample time for diff UI setup.
if ( function_exists( 'set_time_limit' ) ) {
set_time_limit( 5 * MINUTE_IN_SECONDS );
set_time_limit( 0 );
}
foreach ( $_REQUEST['compare'] as $compare_key ) {

View File

@ -288,7 +288,7 @@ class Custom_Background {
$background_styles = '';
$bgcolor = get_background_color();
if ( $bgcolor ) {
$background_styles .= 'background-color: ' . maybe_hash_hex_color( $bgcolor ) . ';';
$background_styles .= 'background-color: #' . $bgcolor . ';';
}
$background_image_thumb = get_background_image();
@ -354,7 +354,7 @@ class Custom_Background {
<input type="file" id="upload" name="import" />
<input type="hidden" name="action" value="save" />
<?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?>
<?php submit_button( _x( 'Upload', 'verb' ), '', 'submit', false ); ?>
<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
</p>
<p>
<label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />

View File

@ -664,7 +664,7 @@ class Custom_Image_Header {
<input type="file" id="upload" name="import" />
<input type="hidden" name="action" value="save" />
<?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?>
<?php submit_button( _x( 'Upload', 'verb' ), '', 'submit', false ); ?>
<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
</p>
<?php
$modal_update_href = add_query_arg(
@ -830,8 +830,8 @@ endif;
if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
wp_die(
'<h1>' . __( 'An error occurred while processing your header image.' ) . '</h1>' .
'<p>' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '</p>',
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
'<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>',
403
);
}
@ -1018,8 +1018,8 @@ endif;
if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
wp_die(
'<h1>' . __( 'An error occurred while processing your header image.' ) . '</h1>' .
'<p>' . __( 'The active theme does not support uploading a custom header image. Please ensure your theme supports custom headers and try again.' ) . '</p>',
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
'<p>' . __( 'The active theme does not support uploading a custom header image.' ) . '</p>',
403
);
}
@ -1029,7 +1029,7 @@ endif;
&& ! current_theme_supports( 'custom-header', 'flex-width' )
) {
wp_die(
'<h1>' . __( 'An error occurred while processing your header image.' ) . '</h1>' .
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
'<p>' . __( 'The active theme does not support a flexible sized header image.' ) . '</p>',
403
);

View File

@ -20,9 +20,7 @@
* @since 2.5.0
* @var string
*/
if ( ! defined( 'CRLF' ) ) {
define( 'CRLF', "\r\n" );
}
if(!defined('CRLF')) define('CRLF',"\r\n");
/**
* Sets whatever to autodetect ASCII mode.
@ -32,9 +30,7 @@ if ( ! defined( 'CRLF' ) ) {
* @since 2.5.0
* @var int
*/
if ( ! defined( 'FTP_AUTOASCII' ) ) {
define( 'FTP_AUTOASCII', -1 );
}
if(!defined("FTP_AUTOASCII")) define("FTP_AUTOASCII", -1);
/**
*
@ -42,9 +38,7 @@ if ( ! defined( 'FTP_AUTOASCII' ) ) {
* @since 2.5.0
* @var int
*/
if ( ! defined( 'FTP_BINARY' ) ) {
define( 'FTP_BINARY', 1 );
}
if(!defined("FTP_BINARY")) define("FTP_BINARY", 1);
/**
*
@ -52,9 +46,7 @@ if ( ! defined( 'FTP_BINARY' ) ) {
* @since 2.5.0
* @var int
*/
if ( ! defined( 'FTP_ASCII' ) ) {
define( 'FTP_ASCII', 0 );
}
if(!defined("FTP_ASCII")) define("FTP_ASCII", 0);
/**
* Whether to force FTP.
@ -64,9 +56,7 @@ if ( ! defined( 'FTP_ASCII' ) ) {
* @since 2.5.0
* @var bool
*/
if ( ! defined( 'FTP_FORCE' ) ) {
define( 'FTP_FORCE', true );
}
if(!defined('FTP_FORCE')) define('FTP_FORCE', true);
/**
* @since 2.5.0

View File

@ -5714,7 +5714,7 @@
// --------------------------------------------------------------------------------
function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true)
{
if (PHP_OS_FAMILY == 'Windows') {
if (stristr(php_uname(), 'windows')) {
// ----- Look for potential disk letter
if (($p_remove_disk_letter) && (($v_position = strpos($p_path, ':')) != false)) {
$p_path = substr($p_path, $v_position+1);

View File

@ -251,7 +251,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
);
$table = '<table class="update-from-upload-comparison"><tbody>';
$table .= '<tr><th></th><th>' . esc_html_x( 'Installed', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>';
$table .= '<tr><th></th><th>' . esc_html_x( 'Active', 'theme' ) . '</th><th>' . esc_html_x( 'Uploaded', 'theme' ) . '</th></tr>';
$is_same_theme = true; // Let's consider only these rows.
@ -333,7 +333,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
if ( $this->is_downgrading ) {
$warning = sprintf(
/* translators: %s: Documentation URL. */
__( 'You are uploading an older version of the installed theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
__( 'You are uploading an older version of the active theme. You can continue to install the older version, but be sure to <a href="%s">back up your database and files</a> first.' ),
__( 'https://developer.wordpress.org/advanced-administration/security/backup/' )
);
} else {
@ -351,7 +351,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
$install_actions['overwrite_theme'] = sprintf(
'<a class="button button-primary update-from-upload-overwrite" href="%s" target="_parent">%s</a>',
wp_nonce_url( add_query_arg( 'overwrite', $overwrite, $this->url ), 'theme-upload' ),
_x( 'Replace installed with uploaded', 'theme' )
_x( 'Replace active with uploaded', 'theme' )
);
} else {
echo $blocked_message;

View File

@ -936,14 +936,6 @@ class WP_Automatic_Updater {
return;
}
$admin_user = get_user_by( 'email', get_site_option( 'admin_email' ) );
if ( $admin_user ) {
$switched_locale = switch_to_user_locale( $admin_user->ID );
} else {
$switched_locale = switch_to_locale( get_locale() );
}
switch ( $type ) {
case 'success': // We updated.
/* translators: Site updated notification email subject. 1: Site title, 2: WordPress version. */
@ -1147,12 +1139,9 @@ class WP_Automatic_Updater {
$email = apply_filters( 'auto_core_update_email', $email, $type, $core_update, $result );
wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
if ( $switched_locale ) {
restore_previous_locale();
}
}
/**
* Checks whether an email should be sent after attempting plugin or theme updates.
*
@ -1266,14 +1255,6 @@ class WP_Automatic_Updater {
}
}
$admin_user = get_user_by( 'email', get_site_option( 'admin_email' ) );
if ( $admin_user ) {
$switched_locale = switch_to_user_locale( $admin_user->ID );
} else {
$switched_locale = switch_to_locale( get_locale() );
}
$body = array();
$successful_plugins = ( ! empty( $successful_updates['plugin'] ) );
$successful_themes = ( ! empty( $successful_updates['theme'] ) );
@ -1545,10 +1526,6 @@ class WP_Automatic_Updater {
if ( $result ) {
update_option( 'auto_plugin_theme_update_emails', $past_failure_emails );
}
if ( $switched_locale ) {
restore_previous_locale();
}
}
/**
@ -1557,12 +1534,9 @@ class WP_Automatic_Updater {
* @since 3.7.0
*/
protected function send_debug_email() {
$admin_user = get_user_by( 'email', get_site_option( 'admin_email' ) );
if ( $admin_user ) {
$switched_locale = switch_to_user_locale( $admin_user->ID );
} else {
$switched_locale = switch_to_locale( get_locale() );
$update_count = 0;
foreach ( $this->update_results as $type => $updates ) {
$update_count += count( $updates );
}
$body = array();
@ -1741,10 +1715,6 @@ Thanks! -- The WordPress Team"
$email = apply_filters( 'automatic_updates_debug_email', $email, $failures, $this->update_results );
wp_mail( $email['to'], wp_specialchars_decode( $email['subject'] ), $email['body'], $email['headers'] );
if ( $switched_locale ) {
restore_previous_locale();
}
}
/**

View File

@ -195,13 +195,7 @@ class WP_Importer {
* @param bool $head
* @return array
*/
public function get_page(
$url,
$username = '',
#[\SensitiveParameter]
$password = '',
$head = false
) {
public function get_page( $url, $username = '', $password = '', $head = false ) {
// Increase the timeout.
add_filter( 'http_request_timeout', array( $this, 'bump_request_timeout' ) );

View File

@ -763,11 +763,11 @@ class WP_List_Table {
return;
}
$selected_month = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
$m = isset( $_GET['m'] ) ? (int) $_GET['m'] : 0;
?>
<label for="filter-by-date" class="screen-reader-text"><?php echo get_post_type_object( $post_type )->labels->filter_by_date; ?></label>
<select name="m" id="filter-by-date">
<option<?php selected( $selected_month, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
<option<?php selected( $m, 0 ); ?> value="0"><?php _e( 'All dates' ); ?></option>
<?php
foreach ( $months as $arc_row ) {
if ( 0 === (int) $arc_row->year ) {
@ -779,10 +779,10 @@ class WP_List_Table {
printf(
"<option %s value='%s'>%s</option>\n",
selected( $selected_month, $year . $month, false ),
esc_attr( $year . $month ),
selected( $m, $year . $month, false ),
esc_attr( $arc_row->year . $month ),
/* translators: 1: Month name, 2: 4-digit year. */
esc_html( sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year ) )
sprintf( __( '%1$s %2$d' ), $wp_locale->get_month( $month ), $year )
);
}
?>

View File

@ -333,7 +333,7 @@ final class WP_Privacy_Policy_Content {
return;
}
$message = __( 'Need help putting together your new Privacy Policy page? Check out the guide for recommendations on what content to include, along with policies suggested by your plugins and theme.' );
$message = __( 'Need help putting together your new Privacy Policy page? Check out our guide for recommendations on what content to include, along with policies suggested by your plugins and theme.' );
$url = esc_url( admin_url( 'options-privacy.php?tab=policyguide' ) );
$label = __( 'View Privacy Policy Guide.' );
@ -378,14 +378,14 @@ final class WP_Privacy_Policy_Content {
public static function privacy_policy_guide() {
$content_array = self::get_suggested_policy_text();
$content = '';
$date_format = __( 'F j, Y' );
$i = 0;
foreach ( $content_array as $section ) {
++$i;
$class = '';
$meta = '';
$removed = '';
if ( ! empty( $section['removed'] ) ) {
$badge_class = ' red';
$date = date_i18n( $date_format, $section['removed'] );
@ -409,9 +409,11 @@ final class WP_Privacy_Policy_Content {
}
$plugin_name = esc_html( $section['plugin_name'] );
$sanitized_policy_name = sanitize_title_with_dashes( $plugin_name );
?>
<h4 class="privacy-settings-accordion-heading">
<button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-<?php echo $i; ?>" type="button">
<button aria-expanded="false" class="privacy-settings-accordion-trigger" aria-controls="privacy-settings-accordion-block-<?php echo $sanitized_policy_name; ?>" type="button">
<span class="title"><?php echo $plugin_name; ?></span>
<?php if ( ! empty( $section['removed'] ) || ! empty( $section['updated'] ) ) : ?>
<span class="badge <?php echo $badge_class; ?>"> <?php echo $badge_title; ?></span>
@ -419,7 +421,7 @@ final class WP_Privacy_Policy_Content {
<span class="icon"></span>
</button>
</h4>
<div id="privacy-settings-accordion-block-<?php echo $i; ?>" class="privacy-settings-accordion-panel privacy-text-box-body" hidden="hidden">
<div id="privacy-settings-accordion-block-<?php echo $sanitized_policy_name; ?>" class="privacy-settings-accordion-panel privacy-text-box-body" hidden="hidden">
<?php
echo $removed;
echo $section['policy_text'];

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