-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add/enqueue stored block supports styles #1
Add/enqueue stored block supports styles #1
Commits on Sep 9, 2022
-
KSES: Allow assigning values to CSS variables.
The `safecss_filter_attr()` function allows using custom CSS variables like `color: var(--color)`. However, it did not allow assigning values to CSS variables like `--color: #F00`, which is common in Global Styles and Gutenberg. This commit adds support for assigning values to CSS variables, so that the function can be used consistently in Global Styles and the future Style Engine in Gutenberg. Follow-up to [50923], [54100]. Props aristath, ramonopoly, SergeyBiryukov. Fixes #56353. git-svn-id: https://develop.svn.wordpress.org/trunk@54117 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for a133b6d - Browse repository at this point
Copy the full SHA a133b6dView commit details
Commits on Sep 10, 2022
-
Editor: Backport Elements API updates.
This commit backports the original PRs from Gutenberg repository: * [WordPress/gutenberg#40260 #40260 Add support for button elements to theme.json] * [WordPress/gutenberg#40889 #40889 Theme Json: Don't output double selectors for elements inside blocks] * [WordPress/gutenberg#41140 #41140 Global Styles: Add support for caption elements] * [WordPress/gutenberg#41160 #41160 Global Styles: Load block CSS conditionally] * [WordPress/gutenberg#41240 #41240 Global Styles: Button Element: update button element selector] * [WordPress/gutenberg#41335 #41335 Duotone: Fix CSS Selectors rendered by theme.json duotone/filter settings for blocks on public pages] * [WordPress/gutenberg#41446 #41446 Block styles: Account for style block nodes that have no name] * [WordPress/gutenberg#41696 #41696 Global Styles: Allow references to values in other locations in the tree] * [WordPress/gutenberg#41753 #41753 Elements: Add an API make it easier to get class names] * [WordPress/gutenberg#41786 #41786 Support pseudo selectors on elements in theme json] * [WordPress/gutenberg#41822 #41822 Elements: Button - Fix element selectors] * [WordPress/gutenberg#41981 #41981 Global Styles: Add support for heading elements] * [WordPress/gutenberg#42072 #42072 Fix link element hover bleeding into button element default styles] * [WordPress/gutenberg#42096 #42096 Add visited to link element allowed pseudo selector list] * [WordPress/gutenberg#42669 #42669 Link elements: Add a :where selector to the :not to lower specificity] * [WordPress/gutenberg#42776 #42776 Theme JSON: Add a static $blocks_metadata data definition to the Gutenberg instance of WP_Theme_JSON] * [WordPress/gutenberg#43088 #43088 Pseudo elements supports on button elements] * [WordPress/gutenberg#43167 #43167 Theme_JSON: Use existing append_to_selector for pseudo elements] * [WordPress/gutenberg#43988 #43988 Styles API: Fixed selectors for nested elements] Props onemaggie, bernhard-reiter, cbravobernal, mmaattiiaass, scruffian, andraganescu, dpcalhoun, get_dave, Mamaduka, SergeyBiryukov. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54118 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 438822a - Browse repository at this point
Copy the full SHA 438822aView commit details
Commits on Sep 11, 2022
-
Docs: Correct
@global
tags inWP_User_Query::prepare_query()
.* `$blog_id` global was replaced with `get_current_blog_id()` and is no longer used directly. * `$wp_roles` global usage was previously undocumented. Follow-up to [32637], [38457], [51943]. Props shoaibkarimali. Fixes #56543. git-svn-id: https://develop.svn.wordpress.org/trunk@54119 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 640cca7 - Browse repository at this point
Copy the full SHA 640cca7View commit details -
Customize: Use Semantically correct function
Functionally, `add_action` and `add_filter` are essentially the same, but semantically they are not. Props Drivingralle. Fixes #56285. git-svn-id: https://develop.svn.wordpress.org/trunk@54120 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 8f533d7 - Browse repository at this point
Copy the full SHA 8f533d7View commit details -
REST API: Use helper functions for building routes in more places.
Props get_dave, spacedmonkey. Fixes #56472. git-svn-id: https://develop.svn.wordpress.org/trunk@54121 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for da03cf1 - Browse repository at this point
Copy the full SHA da03cf1View commit details -
Editor: Refresh nones for metaboxes after reauthentication.
This fixes an issue where metaboxes fail to save after a session expires and a user logs in again via the heartbeat API. Props LinSoftware. Fixes #52584. git-svn-id: https://develop.svn.wordpress.org/trunk@54122 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 3fbc7e5 - Browse repository at this point
Copy the full SHA 3fbc7e5View commit details -
REST API: Add support for searching resources by id.
This brings support for the `include` and `exclude` collection parameters to the Search Controller. This can be used to find an item by id when it's subtype is unknown. Props kadamwhite. Fixes #56546. git-svn-id: https://develop.svn.wordpress.org/trunk@54123 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for a400e99 - Browse repository at this point
Copy the full SHA a400e99View commit details -
Build/Test: Prevent using unsupported NPM versions.
Using NPM 7+ currently causes a number of issues. In order to improve developer experience, we should prevent a developer from going down the road of using incompatible engines. See also: WordPress/gutenberg#29204 and WordPress/gutenberg#23600. Props rcorrales. Fixes #56547. git-svn-id: https://develop.svn.wordpress.org/trunk@54124 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for db0290b - Browse repository at this point
Copy the full SHA db0290bView commit details -
Customize: Prevent JS error in Links widget when selective refresh is…
… enabled This prevents erroneously replacing the `data-customize-partial-id` when only the `id` attribute should be replaced. Props dlh, costdev, nikeo, greenshady. Fixes #39451. git-svn-id: https://develop.svn.wordpress.org/trunk@54125 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 4b34765 - Browse repository at this point
Copy the full SHA 4b34765View commit details -
Date/Time: Cast extracted strings to integers in `wp_resolve_post_dat…
…e()`. `wp_resolve_post_date()` extracts year/month/day from a post date (which is a string) and passes it to `wp_checkdate` (and from there to `checkdate()`), which requires `int`s. Casting the strings to integers avoids PHP notices due to incorrect argument types. Props hilayt24. Fixes #54186 git-svn-id: https://develop.svn.wordpress.org/trunk@54126 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 27aa1ec - Browse repository at this point
Copy the full SHA 27aa1ecView commit details -
REST API: Introduce _pretty query parameter to opt in to JSON_PRETTY_…
…PRINT. Add support for a "_pretty" meta-parameter on all REST controllers which instructs WordPress to return pretty-printed JSON, for better readability when inspecting endpoint responses in curl output or certain developer tools. Introduce the "rest_json_encode_options" filter to permit site owners to control this behavior globally. Props Viper007Bond, TimothyBlynJacobs, chrisguitarguy, johnbillion, swissspidy, adamsilverstein, danielbachhuber, rmccue. Fixes #41998. git-svn-id: https://develop.svn.wordpress.org/trunk@54127 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for bb20a18 - Browse repository at this point
Copy the full SHA bb20a18View commit details -
Media: Add muted property for video elements.
This change allows for the muted property to be used in video elements which solves for content that wishes to `autoPlay` when a page is viewed. Adding `muted` to video elements adhears to the requirements browsers have to honor `autoPlay` functionality. Props prokium, peterwilsoncc, costdev, johnbillion, Benouare. Fixes #54788. git-svn-id: https://develop.svn.wordpress.org/trunk@54128 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 1c69513 - Browse repository at this point
Copy the full SHA 1c69513View commit details -
Embeds: Add Google Data Studio as a trusted oEmbed provider
Props swissspidy Fixes #55771 git-svn-id: https://develop.svn.wordpress.org/trunk@54129 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 62f25a4 - Browse repository at this point
Copy the full SHA 62f25a4View commit details -
Autosave/REST API: Block autosaving from overwriting changes when loc…
…ked from editing. Previously when a user was locked from editing a post in the block editor, autosave functionality was allowed to overwrite changes made by the editor that has taken control. This patch honors the lock status keeping autosave from conflicitng with other content editors. Props jhart35, adamsilverstein, sathyapulse, chanthaboune, primetimejas, joemcgill, kadamwhite. Fixes #55659. git-svn-id: https://develop.svn.wordpress.org/trunk@54130 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 244a209 - Browse repository at this point
Copy the full SHA 244a209View commit details -
REST API: Add support for settings to specify their own additionalPro…
…perties. This switches the Settings Controller to use `rest_default_additional_properties_to_false` and deprecates its own method. Props anna.bansaghi. Fixes #56493. git-svn-id: https://develop.svn.wordpress.org/trunk@54131 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for b80ba26 - Browse repository at this point
Copy the full SHA b80ba26View commit details
Commits on Sep 12, 2022
-
Blocks: Add new
render
property inblock.json
for block typesNew `render` field in `block.json` file that accepts a string value. It allows to pass a path to the PHP file that is going to be used to render the block on the server. Related PR in Gutenberg: WordPress/gutenberg#42430. Props spacedmonkey, luisherranz, welcher, noisysocks, matveb, fabiankaegy, aristath, zieladam. Fixes #53148. git-svn-id: https://develop.svn.wordpress.org/trunk@54132 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 7053062 - Browse repository at this point
Copy the full SHA 7053062View commit details -
Code Modernization: Add
AllowDynamicProperties
attribute to all (pa……rent) classes. Dynamic (non-explicitly declared) properties are deprecated as of PHP 8.2 and are expected to become a fatal error in PHP 9.0. There are a number of ways to mitigate this: * If it is an accidental typo for a declared property: fix the typo. * For known properties: declare them on the class. * For unknown properties: add the magic `__get()`, `__set()`, et al. methods to the class or let the class extend `stdClass` which has highly optimized versions of these magic methods built in. * For unknown ''use'' of dynamic properties, the `#[AllowDynamicProperties]` attribute can be added to the class. The attribute will automatically be inherited by child classes. Trac ticket #56034 is open to investigate and handle the third and fourth type of situations, however it has become clear this will need more time and will not be ready in time for WP 6.1. To reduce “noise” in the meantime, both in the error logs of WP users moving onto PHP 8.2, in the test run logs of WP itself, in test runs of plugins and themes, as well as to prevent duplicate tickets from being opened for the same issue, this commit adds the `#[AllowDynamicProperties]` attribute to all “parent” classes in WP. The logic used for this commit is as follows: * If a class already has the attribute: no action needed. * If a class does not `extend`: add the attribute. * If a class does `extend`: - If it extends `stdClass`: no action needed (as `stdClass` supports dynamic properties). - If it extends a PHP native class: add the attribute. - If it extends a class from one of WP's external dependencies: add the attribute. * In all other cases: no action — the attribute should not be needed as child classes inherit from the parent. Whether or not a class contains magic methods has not been taken into account, as a review of the currently existing magic methods has shown that those are generally not sturdy enough and often even set dynamic properties (which they should not). See the [https://www.youtube.com/watch?v=vDZWepDQQVE live stream from August 16, 2022] for more details. This commit only affects classes in the `src` directory of WordPress core. * Tests should not get this attribute, but should be fixed to not use dynamic properties instead. Patches for this are already being committed under ticket #56033. * While a number bundled themes (2014, 2019, 2020, 2021) contain classes, they are not a part of this commit and may be updated separately. Reference: [https://wiki.php.net/rfc/deprecate_dynamic_properties PHP RFC: Deprecate dynamic properties]. Follow-up to [53922]. Props jrf, hellofromTonya, markjaquith, peterwilsoncc, costdev, knutsp, aristath. See #56513, #56034. git-svn-id: https://develop.svn.wordpress.org/trunk@54133 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 5ebe289 - Browse repository at this point
Copy the full SHA 5ebe289View commit details -
Code Modernization: Replace deprecated string interpolation patterns.
PHP 8.2 deprecates string interpolation patterns that place the dollar sign outside the curly braces: {{{ echo "Hello ${name}"; }}} This commit fixes such patterns by replacing them with proper curly braced patterns: {{{ echo "Hello {$name}"; }}} This addresses `Deprecated: Using ${var} in strings is deprecated, use {$var} instead` notices when running tests on PHP 8.2. References: * [https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated PHP.Watch: PHP 8.2: ${var} string interpolation deprecated] * [https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation PHP RFC: Deprecate ${} string interpolation] Follow-up to [10584], [31733], [42360], [53922]. Props ayeshrajans, jrf. Fixes #55787. git-svn-id: https://develop.svn.wordpress.org/trunk@54134 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 2d98ba4 - Browse repository at this point
Copy the full SHA 2d98ba4View commit details -
Code Modernization: Pass correct value to
parse_url()
in `WP_Custom……ize_Manager::get_return_url()`. This particular code block only makes sense to run when `$this->return_url` is not null. Previously, it caused a "passing null to non-nullable" deprecation notice on PHP 8.1. By moving the code into the `if ( $this->return_url )` condition block, the code will only be run when `$this->return_url` contains a non-falsey/non-null value. No additional tests added as this issue was found via the existing tests for the function containing the bug. This solves the following two PHP 8.1 test errors: {{{ 1) Tests_WP_Customize_Manager::test_return_url parse_url(): Passing null to parameter #1 ($url) of type string is deprecated /var/www/src/wp-includes/class-wp-customize-manager.php:4696 /var/www/tests/phpunit/tests/customize/manager.php:2975 /var/www/vendor/bin/phpunit:123 2) Tests_WP_Customize_Manager::test_customize_pane_settings parse_url(): Passing null to parameter #1 ($url) of type string is deprecated /var/www/src/wp-includes/class-wp-customize-manager.php:4696 /var/www/src/wp-includes/class-wp-customize-manager.php:4898 /var/www/tests/phpunit/tests/customize/manager.php:3085 /var/www/vendor/bin/phpunit:123 }}} Follow-up to [46754]. Props jrf, costdev. See #55656. git-svn-id: https://develop.svn.wordpress.org/trunk@54135 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 4fc5f0e - Browse repository at this point
Copy the full SHA 4fc5f0eView commit details -
Comments: Remove
aria-hidden="true"
attribute for visible text in c……omment template. This changeset removes `aria-hidden="true"` attribute used for required fields in comments template, for better accessibility. It removes the attribute from both `wp_required_field_indicator()` and `wp_required_field_message()` patterns. Follow-up to [53888]. Props juliemoynat, audrasjb, joedolson, sabernhardt, afercia, costdev. Fixes #55717. git-svn-id: https://develop.svn.wordpress.org/trunk@54136 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for de06111 - Browse repository at this point
Copy the full SHA de06111View commit details -
Comments: Make
wp_required_field_indicator()
and `wp_required_field……_message()` output filterable. This changeset introduces two new hooks: - `wp_required_field_indicator` allows developers to filter the HTML output of the `wp_required_field_indicator()` function. - `wp_required_field_message` does the same for the `wp_required_field_message()` function. The changeset also adds new phpunit tests for these filters. Follow-up to [53888], [54136]. Props kebbet, audrasjb, sabernhardt, costdev, mukesh27. Fixes #56389. See #54394. git-svn-id: https://develop.svn.wordpress.org/trunk@54137 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 0ad353d - Browse repository at this point
Copy the full SHA 0ad353dView commit details -
Editor: Hide query loop pagination link arrows from assistive technol…
…ogy. This changeset adss an `aria-hidden="true"` attribute to the optional arrows/chevron characters to the Query Loop and to the Comments Query Loop blocks pagination links. These characters are text, so they're read out by assistive technologies. For better accessibility, it's best to reduce noise for screen reader users and prevent them to be rendered, using the `aria-hidden="true"` attribute. Follow-up to [52057]. Props afercia, sabernhardt, kamig478, zieladam, audrasjb, joedolson, costdev. Fixes #56067. git-svn-id: https://develop.svn.wordpress.org/trunk@54138 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 926f3f8 - Browse repository at this point
Copy the full SHA 926f3f8View commit details -
Twenty Seventeen: Ensure long text wraps correctly in the Button Block.
This changeset replaces `white-space: nowrap` with `white-space: preline` to ensure long text used in the button block correctly wraps to a second line. Follow-up to [44148]. Props robertghetau, bhrugesh12, sabernhardt, mukesh27. Fixes #55783. git-svn-id: https://develop.svn.wordpress.org/trunk@54139 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 1746a68 - Browse repository at this point
Copy the full SHA 1746a68View commit details
Commits on Sep 13, 2022
-
Themes: Implement file description for
theme.json
.This changeset adds a file description for `theme.json`. This description is notably used in the Theme File Editor. Props ocean90, kapilpaul, poena. Fixes #55325. git-svn-id: https://develop.svn.wordpress.org/trunk@54140 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 7c72b3d - Browse repository at this point
Copy the full SHA 7c72b3dView commit details -
Twenty Twenty: Improve support for Post Title block alignment.
This changeset ensures alignement settings are correctly reflected for the Post Title block in the Editor. Props smit08, kajalgohel, devtanbir, sabernhardt, audrasjb. Fixes #56167. git-svn-id: https://develop.svn.wordpress.org/trunk@54141 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for b886ab6 - Browse repository at this point
Copy the full SHA b886ab6View commit details -
Code Modernization: Fix autovivification from
false
toarray
in `……WP_Scripts::localize()`. This function was previously already problematic as it does not do proper input validation, and it has already received tweaks related to PHP 8.0 in [50408] / #52534, which also introduced a `_doing_it_wrong()` notice and added tests. The short of it is: * The function expects to receive an `array` for the `$l10n` parameter; * ...but silently supported the parameter being passed as a `string`; * ...and would expect PHP to gracefully handle everything else or throw appropriate warnings/errors. In the previous fix, a `_doing_it_wrong()` notice was added for any non-array inputs. The function would also cause a PHP native "Cannot use a scalar value as an array" warning (PHP < 8.0) or error (PHP 8.0+) for all scalar values, except `false`. PHP 8.1 deprecated autovivification from `false` to `array`, so now `false` starts throwing an "Automatic conversion of false to array is deprecated" notice. By rights, the function should just throw an exception when a non-array/string input is received, but that would be a backward compatibility break. So the current change will maintain the previous behavior, but will prevent both the "Cannot use a scalar value as an array" warning/error as well as the "Automatic conversion of false to array" deprecation notice for invalid inputs. Invalid inputs ''will'' still receive a `_doing_it_wrong()` notice, which is the reason this fix is considered acceptable. Includes: * Adding a test passing an empty array. * Adding a test to the data provider for a `null` input to make sure that the function will not throw a PHP 8.1 "passing null to non-nullable" notice. This solves the following PHP 8.1 test error: {{{ Tests_Dependencies_Scripts::test_wp_localize_script_data_formats with data set WordPress#8 (false, '[""]') Automatic conversion of false to array is deprecated /var/www/src/wp-includes/class.wp-scripts.php:514 /var/www/src/wp-includes/functions.wp-scripts.php:221 /var/www/tests/phpunit/tests/dependencies/scripts.php:1447 /var/www/vendor/bin/phpunit:123 }}} Reference: [https://www.php.net/manual/en/migration81.deprecated.php#migration81.deprecated.core.autovivification-false PHP Manual: PHP 8.1 Deprecations: Autovivification from false]. Follow-up to [7970], [18464], [18490], [19217], [50408]. Props jrf, costdev. See #55656. git-svn-id: https://develop.svn.wordpress.org/trunk@54142 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 695cd01 - Browse repository at this point
Copy the full SHA 695cd01View commit details -
Upgrade/Install: Remove
_copy_dir()
function as originally intended.WordPress 3.2 introduced several enhancements to the `copy_dir()` function: * No more re-installing Akismet upon upgrade. * Respect custom `WP_CONTENT_DIR` for bundled plugins/theme installation. * Respect custom `WP_CONTENT_DIR`/`WP_LANG_DIR` for language files when upgrading. * Add an exclusion list to `copy_dir()` as well as `WP_Filesystem_Base::wp_lang_dir()`. * Standardize `WP_Filesystem` path method returns. However, the version of `copy_dir()` that runs during the upgrade process is the one from the older install, not the newer, which means that these enhancements would only be available after upgrading to WordPress 3.2 first, e.g. in a subsequent upgrade to WordPress 3.3. In order to make these enhancements immediately available in WordPress 3.2, specifically to take advantage of skip lists and avoid re-installing Akismet if it was previously deleted, a temporary copy of the function was utilized, with the intention to remove it in WordPress 3.3 or a later release. With further enhancements made to the Upgrade API to support partial and no-content builds, this temporary copy is no longer relevant and can be safely removed. Follow-up to [17576], [17580], [17581], [18225]. Props afragen, costdev, dd32, peterwilsoncc, SergeyBiryukov. Fixes #55712. See #17173. git-svn-id: https://develop.svn.wordpress.org/trunk@54143 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for d8b2629 - Browse repository at this point
Copy the full SHA d8b2629View commit details -
General: Add a new filter for
the_posts_pagination_args
.Props pbiron, joyously, audrasjb, robinwpdeveloper. Fixes 53392. git-svn-id: https://develop.svn.wordpress.org/trunk@54144 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 751a7b8 - Browse repository at this point
Copy the full SHA 751a7b8View commit details -
Options, Meta APIs: Add a new
pre-option
filter.Although a `pre_option_{$option}` filter already exists, this change adds a more general `pre_option` filter that will run on every `get_option` call. This brings the control flow into similar flow as `update_option`. Props flixos90, NathanAtmoz, desrosj, spacedmonkey, pbearne. Fixes #37930. git-svn-id: https://develop.svn.wordpress.org/trunk@54145 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 9bde2e9 - Browse repository at this point
Copy the full SHA 9bde2e9View commit details -
General: Correct path replacement regex in
wp_guess_url
.In `wp_guess_url`, the regex to check for wp-login.php in the URL is slightly too permissive, not escaping `.` in "wp-login.php". `.` is a token in regex that matches any character. This change simply escapes the `.` and adds unit test coverage for `wp_guess_url`. Props cfinke, ocean90, jrf, voldemortensen, jdgrimes, curdin, netweb, petitphp, SergeyBiryukov, costdev. Fixes #36827. git-svn-id: https://develop.svn.wordpress.org/trunk@54146 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 7b9d4cf - Browse repository at this point
Copy the full SHA 7b9d4cfView commit details -
Tests: Rename the test for
pre_option
filter to match the filter name.Move the method to a more appropriate place, next to the test for `default_option_*` filter. Follow-up to [54145]. See #37930. git-svn-id: https://develop.svn.wordpress.org/trunk@54147 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 5225a99 - Browse repository at this point
Copy the full SHA 5225a99View commit details -
Tests: Rename the test for
wp_guess_url()
to match the function name.Includes adding `public` visibilty keyword for the data provider. Follow-up to [54146]. See #36827. git-svn-id: https://develop.svn.wordpress.org/trunk@54148 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for ebd2606 - Browse repository at this point
Copy the full SHA ebd2606View commit details -
Plugins: Visually align plugin cards in Plugin Install screen.
This changeset adds a flexible CSS columns layout to plugin cards in the Plugin Install screen, to ensure plugin cards all have the same height. Props jamesckemp, audrasjb, joyously, sabernhardt, sharjeelkhanvmi, joyously. Fixes #55721. See #55272. git-svn-id: https://develop.svn.wordpress.org/trunk@54149 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for a338319 - Browse repository at this point
Copy the full SHA a338319View commit details
Commits on Sep 14, 2022
-
Upgrade/Install: Update sodium_compat to v1.18.0.
The latest version of sodium_compat includes some improvements, as well as a new feature which will also be included in PHP 8.2. * Fixed issues with the PHP autoloader: * [paragonie/sodium_compat#145 WordPress#145]: For WordPress, this ensures when Ed25519 is included, so too is the class it inherits from. * [paragonie/sodium_compat#148 WordPress#148], [paragonie/sodium_compat#149 WordPress#149]: For PHP 7.4+ with opcache preloading, this ensures the include guards don't fail. * [paragonie/sodium_compat#144 WordPress#144]: Added `sodium_crypto_stream_xchacha20_xor_ic()` * See [php/php-src#8276 pull request for php-src] (merged in PHP 8.2) * For motivation: [paragonie/halite#178 paragonie/halite#178] Release notes: https://github.com/paragonie/sodium_compat/releases/tag/v1.18.0 A full list of changes in this update can be found on GitHub: paragonie/sodium_compat@v1.17.1...v1.18.0 Follow-up to [49741], [51002], [51591], [52988]. Props jrf, paragoninitiativeenterprises. Fixes #56564. git-svn-id: https://develop.svn.wordpress.org/trunk@54150 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 1116041 - Browse repository at this point
Copy the full SHA 1116041View commit details -
Twenty Fifteen: Ensure border-bottom styles are applied to the Button…
… Block. This issue was related to the `:where()` selector, which also affected Twenty Twenty (see #55824). Props umesh84, sabernhardt. Fixes #55006. See #55824. git-svn-id: https://develop.svn.wordpress.org/trunk@54151 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for a8f702f - Browse repository at this point
Copy the full SHA a8f702fView commit details -
Twenty Twenty: Correctly align Social Icons block in the editor.
This changeset resets `padding-left` property for the Social Icons block in the editor. Props umesh84, audrasjb, nidhidhandhukiya, kajalgohel. Fixes #55987. git-svn-id: https://develop.svn.wordpress.org/trunk@54152 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 2030705 - Browse repository at this point
Copy the full SHA 2030705View commit details -
Twenty Twenty: Ensure link color is inherited from paragraph in the e…
…ditor. This changeset improves link colors consistency between front-end and the editor. Props sabernhardt, webcommsat, audrasjb. Fixes #56214. git-svn-id: https://develop.svn.wordpress.org/trunk@54153 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 9603308 - Browse repository at this point
Copy the full SHA 9603308View commit details -
Twenty Twenty: Ensure headings styles are consistent between editor a…
…nd front-end. This changeset removes `.wp-block` container from headings CSS selectors to restore consistency between editor and front-end styles. It also removes `.wp-block` from headings selectors in the `'block-editor'` array of `twentytwenty_get_localized_font_family_elements()`. Props kajalgohel, kmadhak, poena, multidots1896, tahmidulkarim, audrasjb. Fixes #56194. git-svn-id: https://develop.svn.wordpress.org/trunk@54154 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 73c668d - Browse repository at this point
Copy the full SHA 73c668dView commit details -
Blocks: Allow registering multiple items for all supported asset types
Follow-up #54337, [52069]. Part of WordPress/gutenberg#41236. More details in WordPress/gutenberg#33542. Allow passing more than one script per block for `editorScript`, `script`, and `viewScript` fields in the `block.json` metadata file. This aligns with the previously added changes for `style` and `editorStyle` fields. This change impacts the `WP_Block_Type` class and the REST API endpoint for block types. To ensure backward compatibiliy old names were soft deprecated in favor of new fields that work with array values and have `_handles` suffix. Props zieladam, dlh, timothyblynjacobs, aristath, bernhard-reiter. Fixes #56408. git-svn-id: https://develop.svn.wordpress.org/trunk@54155 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 3381f05 - Browse repository at this point
Copy the full SHA 3381f05View commit details -
Editor: Backport Style Engine API functions, classes and tests.
This PR migrates the Style Engine PHP functions, classes and tests into Core for 6.1. It backports the original [WordPress/gutenberg#40260 PR #40260] from Gutenberg repository. Props ramonopoly, bernhard-reiter, costdev, azaozz, andrewserong, mukesh27, aristath. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54156 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 7fcc88a - Browse repository at this point
Copy the full SHA 7fcc88aView commit details -
Docs: Correct
@return
value forwp_get_http_headers()
.Following the update to replace the HTTP API internals with Requests library in WordPress 4.6, the return value of `wp_remote_retrieve_headers()` has changed from a simple array to an object which implements `ArrayAccess`. Since `wp_get_http_headers()` directly returns the result of `wp_remote_retrieve_headers()`, its return value should reflect that change. Includes: * Updating the return value for the deprecated `wp_get_http()` function, which also directly returns the result of `wp_remote_retrieve_headers()`. * Minor DocBlock formatting changes for some other HTTP API functions per the documentation standards. Follow-up to [2416], [6390], [8092], [9013], [37428], [37989], [38730]. Props mhkuu. See #54225, #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54157 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for e4a2e73 - Browse repository at this point
Copy the full SHA e4a2e73View commit details -
Code Quality: Remove unwanted spaces in the
WP_Block_Type
classFollow-up [54155]. Props TobiasBg. git-svn-id: https://develop.svn.wordpress.org/trunk@54158 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 7c86dfe - Browse repository at this point
Copy the full SHA 7c86dfeView commit details -
Editor: Backport foundation for Layout block support refactor (part 1).
This change backports the following changes from Gutenberg repository: - [WordPress/gutenberg#40875 gutenberg#40875] Layout: Use semantic classnames, centralize layout definitions, reduce duplication, and fix blockGap in theme.json - [WordPress/gutenberg#42544 gutenberg#42544] Layout: Add a disable-layout-styles theme supports flag to opt out of all layout styles gutenberg#42544 - [WordPress/gutenberg#42087 gutenberg#42087] Theme.json: Add block support feature level selectors for blocks gutenberg#42087 - [WordPress/gutenberg#43792 gutenberg#43792] Global Styles: Split root layout rules into a different function gutenberg#43792 - [WordPress/gutenberg#42544 gutenberg#42544] Layout: Add a disable-layout-styles theme supports flag to opt out of all layout styles gutenberg#42544 - [WordPress/gutenberg#42665 gutenberg#42665] Layout: Reduce specificity of fallback blockGap styles gutenberg#42665 - [WordPress/gutenberg#42085 gutenberg#42085] Core CSS support for root padding and alignfull blocks gutenberg#42085 Note that it doesn't entirely port over PR40875 — the remaining PHP changes for that PR will be explored in a separate PR targeting `layout.php`. Props andrewserong, aaronrobertshaw, isabel_brison. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54159 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 34aeac1 - Browse repository at this point
Copy the full SHA 34aeac1View commit details -
Reverting changeset due to failing PHPUnit tests. Tests pass without changeset [54156], but fail with it. Reverting to explore why in the original PR after rebasing. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54160 602fd350-edb4-49c9-b593-d223f7449a82
hellofromTonya authored and hellofromTonya committedSep 14, 2022 Configuration menu - View commit details
-
Copy full SHA for 759f2b3 - Browse repository at this point
Copy the full SHA 759f2b3View commit details -
Feeds: Add a set of fine-grained filters to disable the different typ…
…es of feed links separately. The previously available set of filters in the `feed_links()` function to enable or disable display of various feed links was quite limited: * `feed_links_show_posts_feed` to control the main feed * `feed_links_show_comments_feed` to control both the global comments feed and the comment feed for singular posts. In order to disable the other feeds (post type archive, category, tag, custom taxonomy, author archive, search results), one would have to unhook `feed_links_extra()` from `wp_head`, but that would completely remove all of those feeds, as well as the single post comments feed. To allow for more flexibility, this commit introduces a full set of filters in the `feed_links_extra()` function to control each one of the feeds independently, including a way to enable/disable the single post comments feed when the global comments feed is disabled/enabled: * `feed_links_extra_show_post_comments_feed` * `feed_links_extra_show_post_type_archive_feed` * `feed_links_extra_show_category_feed` * `feed_links_extra_show_tag_feed` * `feed_links_extra_show_tax_feed` * `feed_links_extra_show_author_feed` * `feed_links_extra_show_search_feed` All of them default to `true`, except for `feed_links_extra_show_post_comments_feed` which defaults to the result of `feed_links_show_comments_feed` to ensure backward compatibility. Follow-up to [33838], [33839], [53125]. Props lopo, mukesh27, audrasjb, SergeyBiryukov. Fixes #55904. git-svn-id: https://develop.svn.wordpress.org/trunk@54161 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for d6e842c - Browse repository at this point
Copy the full SHA d6e842cView commit details -
Editor: Backport foundation for Layout block support refactor (part 1).
Backports the following changes from the Gutenberg repository: * [WordPress/gutenberg/40875 gutenberg/40875] Layout: Use semantic classnames, centralize layout definitions, reduce duplication, and fix blockGap in theme.json * [WordPress/gutenberg/42544 gutenberg/42544] Layout: Add a disable-layout-styles theme supports flag to opt out of all layout styles gutenberg/42544 * [WordPress/gutenberg/42087 gutenberg/42087] Theme.json: Add block support feature level selectors for blocks gutenberg/42087 * [WordPress/gutenberg/43792 gutenberg/43792] Global Styles: Split root layout rules into a different function gutenberg/43792 * [WordPress/gutenberg/42544 gutenberg/42544] Layout: Add a disable-layout-styles theme supports flag to opt out of all layout styles gutenberg/42544 * [WordPress/gutenberg/42665 gutenberg/42665] Layout: Reduce specificity of fallback blockGap styles gutenberg/42665 * [WordPress/gutenberg/42085 gutenberg/42085] Core CSS support for root padding and alignfull blocks gutenberg/42085 Notes: * It doesn't entirely port over PR 40875 — the remaining PHP changes for that PR will be explored in a separate PR targeting `layout.php`. * [54159] was reverted in [54160] due to PHPUnit test failures for tests added by the commit. Later, tests passed when applied on top of `trunk`. There were various outages today of upstream `wp-env` dependencies, which likely were the root cause of the earlier failures. For historical tracking and to make sure, recommitting [54159] but instead on top of current `trunk`. See PR 3205 for more details. * Giving additional props for those who did a deep dive investigation into the failed tests. Follow-up to [54160], [54159]. Props andrewserong, aaronrobertshaw, isabel_brison, bernhard-reiter, hellofromTonya. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54162 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 72380e3 - Browse repository at this point
Copy the full SHA 72380e3View commit details -
Twenty Twenty: Fix Heading Block alignment when nested in Cover Block.
This brings consistency between block editor and front-end rendering. Props mrfoxtalbot, tahmidulkarim, NomNom99, audrasjb. Fixes #56049. git-svn-id: https://develop.svn.wordpress.org/trunk@54163 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 3e9fd82 - Browse repository at this point
Copy the full SHA 3e9fd82View commit details -
Twenty Twenty-One: Fix Heading Block alignment when nested in Cover B…
…lock. This brings consistency between block editor and front-end rendering. Props mrfoxtalbot, kajalgohel, harshvaishnav, audrasjb. Fixes #56050. git-svn-id: https://develop.svn.wordpress.org/trunk@54164 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for c2dcd6e - Browse repository at this point
Copy the full SHA c2dcd6eView commit details -
Site health: Add a menu bubble with the critical issues count to the …
…Tools -> Site Health submenu. Props: Clorith See: #56199 git-svn-id: https://develop.svn.wordpress.org/trunk@54165 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 4086157 - Browse repository at this point
Copy the full SHA 4086157View commit details -
Twenty Twenty: Ensure Latest Posts block set to 2 columns displays ac…
…cordingly in the Editor. This brings consistency between block editor and front-end rendering. Props smit08, mukesh27, sabernhardt, multidots1896. Fixes #56175. git-svn-id: https://develop.svn.wordpress.org/trunk@54166 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 26fad95 - Browse repository at this point
Copy the full SHA 26fad95View commit details -
Twenty Twenty: Fix Social Links widget alignment.
This fixes an alignment issue with the Social Links block used in the context of a widget area. Props grandeljay, sabernhardt. Fixes #56474. git-svn-id: https://develop.svn.wordpress.org/trunk@54167 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 235faff - Browse repository at this point
Copy the full SHA 235faffView commit details -
Twenty Twenty-Two: Add "Accessibility Ready" tag to theme in repository
A cross-team consensus has been reached to allow Twenty Twenty-Two to be tagged as "Accessibility Ready" on the WordPress Themes repository. Props bph, kjellr, utz119, ryokuhi, joedolson, audrasjb, mikeschroder, poena, annezazu. Fixes #55172. git-svn-id: https://develop.svn.wordpress.org/trunk@54168 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for fe87f8e - Browse repository at this point
Copy the full SHA fe87f8eView commit details -
- Add a check to `wp_check_php_version()` whether the current PHP version is lower than the next (desired) minimum version. - Set the next desired minimum PHP version to 7.2. - Use that check to update the warnings in the `wp_dashboard_php_nag()` widget, and on the Site Health screen. Props Clorith, SergeyBiryukov, ironprogrammer, azaozz. See #56199. git-svn-id: https://develop.svn.wordpress.org/trunk@54169 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 0fdfa26 - Browse repository at this point
Copy the full SHA 0fdfa26View commit details -
Twenty Twenty-One: Remove WooCommerce related CSS selectors.
The selectors for Twenty Twenty-One's default `max-width` have used the `.woocommerce` class since the theme's [WordPress/twentytwentyone@956a317#diff-b757cb999144a1bc7e14604bc6d4bab7d87ea1a3bf5000c33937e490d75b9d92R3-R9 initial commit]. This changeset removes all WooCommerce CSS selector from the theme, as they would need to be supported forever. The change was tested with WooCommerce installed and no issues were raised. Props sabernhardt, audrasjb, davidbaumwald, tahmidulkarim, mukesh27. Fixes #56366. git-svn-id: https://develop.svn.wordpress.org/trunk@54170 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 39617d8 - Browse repository at this point
Copy the full SHA 39617d8View commit details
Commits on Sep 15, 2022
-
Twenty Nineteen: Define underline thickness for links.
This changeset adds `text-decoration-thickness: 2px;` to all underlined link to ensure that underline thickness stay consistent across browsers. This fixes an issue where the underline style on links using the Hoefler Text font was too thin in Firefox. Props allancole, sabernhardt, danfarrow, audrasjb, neychok, multidots1896, maartenj. Fixes #45925. git-svn-id: https://develop.svn.wordpress.org/trunk@54171 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 4c10e3e - Browse repository at this point
Copy the full SHA 4c10e3eView commit details -
Docs: Add missing
@since
history in Gallery Shortcode function.Props bengreeley, audrasjb, desrosj, mukesh27. Fixes #56206. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54172 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 0b2f05a - Browse repository at this point
Copy the full SHA 0b2f05aView commit details -
Docs: Use third-person singular verbs in Media API function descripti…
…ons, as per docblocks standards. See #55646. git-svn-id: https://develop.svn.wordpress.org/trunk@54173 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 7991edb - Browse repository at this point
Copy the full SHA 7991edbView commit details -
Editor: Backport
wp_theme_element_class_name()
alias.This changeset backports the `wp_theme_element_class_name()` alias for the "internal" `WP_Theme_JSON::get_element_class_name()` function. This is a backport of [WordPress/gutenberg#44099 gutenberg/PR44099]. Note: this changeset doesn't replace calls to `WP_Theme_JSON::get_element_class_name` in the tests, since those are specifically for the `WP_Theme_JSON` class. Props bernhard-reiter, cbravobernal, costdev. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54174 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for d0a7711 - Browse repository at this point
Copy the full SHA d0a7711View commit details -
Editor: Backport
build_query_vars_from_query_block
changes from Gut……enberg repository. This changeset backports changes from the following Gutenberg pull requests: - [WordPress/gutenberg#43590 gutenberg#43590] Add a filter to `build_query_vars_from_query_block` - [WordPress/gutenberg#40933 gutenberg#40933] Block Library - Query Loop: Add parents filter Props ntsekouras, bernhard-reiter. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54175 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for b98a8bb - Browse repository at this point
Copy the full SHA b98a8bbView commit details -
Themes: Introduces block-based template parts for Classic themes.
Allows Classic / Hybrid themes to use block-based template parts without using complete block-based templates. * Exposes the Site Editor's template parts UI * Adds Appearance > "Template Parts" menu * Enabled within the theme via adding a theme support for `'block-template-parts'` {{{#!php add_theme_support( 'block-template-parts' ); }}} This is a backport from Gutenberg.[WordPress/gutenberg#42729 See WordPress/gutenberg PR 42729]. Follow-up to [52330], [52069], [52178]. Props mamaduka, fabiankaegy, poena, scruffian, manfcarlo, bernhard-reiter, hellofromTonya. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54176 602fd350-edb4-49c9-b593-d223f7449a82
Configuration menu - View commit details
-
Copy full SHA for 98cfa29 - Browse repository at this point
Copy the full SHA 98cfa29View commit details -
Backporting block supports filter callback and registrations
Configuration menu - View commit details
-
Copy full SHA for db90f69 - Browse repository at this point
Copy the full SHA db90f69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d10a6e - Browse repository at this point
Copy the full SHA 8d10a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 311df00 - Browse repository at this point
Copy the full SHA 311df00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c3a710 - Browse repository at this point
Copy the full SHA 3c3a710View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23a38f8 - Browse repository at this point
Copy the full SHA 23a38f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ca40bbb - Browse repository at this point
Copy the full SHA ca40bbbView commit details