Skip to content

Plugin: Backport PHP changes for WordPress 6.1 release #43440

Closed

Description

@ockham

Description

Related Trac ticket 56467.

This is the tracking issue to coordinate the process of backporting all PHP changes added in the Gutenberg plugin that needs to be backported for the WordPress 6.1 release.

Files listed for WP 6.1

lib/block-supports

lib/compat/wordpress-6.1

lib/experimental

Legend:

🟢 – confirmed for WP 6.1
🟡 – needs decision
🔴 – moved to future WP release

Getting Involved

If you are interested in helping with the effort, can you comment (or edit the issue's description) with your name next to the file if you plan to help with backporting. It would also help to link to Track issues / GitHub PRs in WordPress core when they are available.

Action items when working on backports:

  • Update the files to follow best practices. Mostly rename functions/classes to use wp_ prefix instead of gutenberg_ and guard with declaration checks for code that needs to be backported to WordPress core.
  • Identify files and functionality that need to be backported to WordPress core.
  • Ensure all files, classes, methods, properties, and functions have @since 6.1.0 documentation tag included.
  • Ensure all functionality backported to WordPress core has unit tests written.

Note that @hellofromtonya has started work to smoothen the backporting process, by adjusting Gutenberg's test and lint structure to more closely resemble Core's (to avoid having to fix code in backport PRs when they don't pass wordpress-develop's tests even though they did pass Gutenberg's): #43333


Issue modeled after #39889.

Activity

  1. added
    Gutenberg Plugin
    [Type] Tracking Issue
    on Aug 19, 2022
  2. Mamaduka commented on Aug 25, 2022

    @Mamaduka
    Member

    I'll create a patch for changes in edit-form-blocks.php file.

    The gutenberg_add_site_icon_url_to_index feature backport from rest-api.php depends if we merge #43514 or not.

    @ntsekouras, correct me if I'm wrong, but the wp-theme-get-post-templates.php doesn't need to be ported into the core.

  3. Aljullu commented on Aug 25, 2022

    @Aljullu
    Contributor

    Heads-up that I opened a PR in wordpress-develop: WordPress/wordpress-develop#3131 which implements the same fix as #43597 in block-template-utils.php.

    Related track issue: https://core.trac.wordpress.org/ticket/55881#ticket

  4. ntsekouras commented on Aug 26, 2022

    @ntsekouras
    Contributor

    @ntsekouras, correct me if I'm wrong, but the wp-theme-get-post-templates.php doesn't need to be ported into the core.

    Good catch @Mamaduka ! It seems so.

  5. ockham commented on Aug 26, 2022

    @ockham
    ContributorAuthor

    Apologies for the mass ping -- I'd like to get the backports work off the ground 😊

    tl;dr: If you've added PHP code to Gutenberg's lib/ directory since the WP 6.0 release, it will need backporting to wordpress-develop in order to be included in WP 6.1. Backporting is typically easiest for the people who originally implemented the relevant feature. Please refer to the list in the issue description and leave a comment if you're willing to backport code. If you're unfamiliar with the process of backporting, don't hesitate to ping me (@ockham) or @michalczaplinski -- we're happy to help!

    PRs that are strickenthrough are already merged in WordPress Core

    lib/block-supports/

    lib/compat/wordpress-6.1/

    lib/experimental/


    List modeled after #39889 (comment). Created using the script from #43360.

  6. glendaviesnz commented on Aug 29, 2022

    @glendaviesnz
    Contributor

    I can take care of all the spacing size preset related changes.

  7. Mamaduka commented on Aug 30, 2022

    @Mamaduka
    Member

    @ockham, @michalczaplinski, do we have a core tracking ticket to reference in Core PRs?

  8. ockham commented on Aug 30, 2022

    @ockham
    ContributorAuthor

    @ockham, @michalczaplinski, do we have a core tracking ticket to reference in Core PRs?

    @Mamaduka Ah, we didn't -- my apologies! I've filed one now: https://core.trac.wordpress.org/ticket/56467

  9. andrewserong commented on Aug 30, 2022

    @andrewserong
    Contributor

    I'm happy to help out with Layout backports. I'm travelling at the moment but can start looking at some of them next week when I'm back. Some of them might have a couple of challenges — layout.php currently depends on the style engine work in the style engine package (so just CCing @ramonjd there), which might need to land first?

    Also, I was wondering how we deal with PHP changes that require JS changes to be shipped at the same time? I think some of the Layout work might need to happen all at once 🤔. There's definitely pieces that can be done in separate PRs first, though, so I'll give it a bit more thought to see what sort of order might work.

    Just linking a couple of other pre-requisites for Layout in Gutenberg being merged to core:

    I believe the above two tickets/PRs will need to land prior to the layout.php changes being backported.

  10. Mamaduka commented on Aug 31, 2022

    @Mamaduka
    Member

    @ockham,

    My backport PRs are ready:

    The #40416 should already be in Core, cherry-picked for a minor release - WordPress/wordpress-develop#2600.

    I've only done a minor code quality work for class-wp-theme-json-6-1.php, but happy to help as needed.

  11. 34 remaining items

  12. oandregal commented on Sep 15, 2022

    @oandregal
    Member

    Prepared WordPress/wordpress-develop#3261 to backport #44189 (which is approved but I'm waiting for the tests to pass and will backport to 14.1).

  13. moved this from Triage to In Progress in WordPress 6.1 Editor Taskson Sep 19, 2022
  14. andrewserong commented on Sep 19, 2022

    @andrewserong
    Contributor

    Just looking over the theme JSON file and saw that box-shadow support hadn't been backported yet. I've opened up a PR in WordPress/wordpress-develop#3274, which should pull in the final bits for that.

  15. ramonjd commented on Sep 19, 2022

    @ramonjd
    Member

    Block supports scripts loading

    Added WordPress/wordpress-develop#3273 as an extension of WordPress/wordpress-develop#3259 cc @ockham

  16. oandregal commented on Sep 22, 2022

    @oandregal
    Member

    I've prepared WordPress/wordpress-develop#3313 to backport the changes at #44363

  17. gziolo commented on Sep 23, 2022

    @gziolo
    Member

    I have an update for the lib/compat/wordpress-6.1/blocks.php file:

    • there is an open Trac ticket and PR for backporting gutenberg_block_type_metadata_render_template to WordPress core
    • there is also an open PR (still in progress) to backport support for multiple view scripts to WordPress core (gutenberg_block_type_metadata_multiple_view_scripts)

    I can confirm that all the changes are present in WordPress core.

    • I'm not sure if we immediately need wp_enqueue_block_view_script in WordPress core, @aristath should know better why we need it, but it might depend on how we land support for multiple view scripts

    We didn't include this new API in WP core in 6.1. PR that reflects that in the plugin is ready for review: #44414.

  18. scruffian commented on Sep 23, 2022

    @scruffian
    Contributor

    I think this one is missing from some of the backports above: WordPress/wordpress-develop#3319

  19. hellofromtonya commented on Sep 27, 2022

    @hellofromtonya
    Contributor

    I removed all of the Webfonts API files from the backport list. Why? The API is being re-architected, ie still in development. It will not be ready for WP 6.1. 🔴

    Please leave these files in the lib/experimental/ directory. Thanks.

  20. cbravobernal commented on Nov 2, 2022

    @cbravobernal
    Contributor

    Now that the 6.1 release is out, I think we can close this issue.

  21. Repository owner moved this from In Progress to Done in WordPress 6.1 Editor Taskson Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Gutenberg Plugin[Type] Tracking Issue

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions