Skip to content
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

Try: bundle the WP_Theme_JSON_Resolver class instead of inheriting per WordPress version #46750

Merged
merged 30 commits into from
Dec 22, 2022

Commits on Dec 22, 2022

  1. Configuration menu
    Copy the full SHA
    96c0239 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    13185e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f5ad2d View commit details
    Browse the repository at this point in the history
  4. Rename WP_Theme_JSON_Resolver to WP_Theme_JSON_Resolver_Base

    The goal is to use it as base to inherit from, until we are able
    to remove all the children.
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    fa996f4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a6e00ce View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bd03602 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3d13fa9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e2d54a4 View commit details
    Browse the repository at this point in the history
  9. 6.1: remove get_user_data

    Missed core changes and does not do anything differently from core.
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    1f0ca1d View commit details
    Browse the repository at this point in the history
  10. 6.1: remove get_user_data_from_wp_global_styles

    It misses core changes and does not do anything differently.
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    7f48e7d View commit details
    Browse the repository at this point in the history
  11. 6.2: inherit from WP_Theme_JSON_Resolver_Base instead of 6.1

    This makes the WP_Theme_JSON_Resover_6_1 class unused.
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    6858a77 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    811fc7d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f4c6c01 View commit details
    Browse the repository at this point in the history
  14. 6.2: substitute WP_Theme_JSON_Resolver::theme_has_support

    by wp_theme_has_theme_json()
    
    #45168
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    fc639bc View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    fe37493 View commit details
    Browse the repository at this point in the history
  16. 6.2: update get_merged_data

    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    a5bdc76 View commit details
    Browse the repository at this point in the history
  17. 6.2: remove get_user_data

    Same code as core. There's a check for detecting whether the class
    is an instance of WP_Theme_JSON_Gutenberg that was not ported.
    This check was introduced to make sure the cache of the core class
    didn't interfere with the cache of the Gutenberg class,
    so it's no longer necessary.
    
    See #42756
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    897c355 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    edf3fb0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    afb4aa0 View commit details
    Browse the repository at this point in the history
  20. experimental: delete remove_json_comments

    It's already part of the base class.
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    486162d View commit details
    Browse the repository at this point in the history
  21. experimental: remove get_block_data

    It's already part of the base class and it didn't have
    the changes from core.
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    6551ec8 View commit details
    Browse the repository at this point in the history
  22. experimental: appearanceTools

    Port changes to the base class that were meant to be part of 6.1.
    See #43337
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    31e4b00 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    26bf599 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    78c51b3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    f18b7b8 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    9335dbc View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    9e1336a View commit details
    Browse the repository at this point in the history
  28. Fix lint issue: rename class-wp-theme-json-resolver.php to class-wp-t…

    …heme-json-resolver-gutenberg.php
    oandregal committed Dec 22, 2022
    Configuration menu
    Copy the full SHA
    1b16af4 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    9938731 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    703ccaf View commit details
    Browse the repository at this point in the history