Issue #3632921 by tbcs: Drupal 12 compatibility.

  • move every hook from wp_admin.theme and theme-settings.php into Drupal\wp_admin\Hook\WpAdminHooks and Drupal\wp_admin\Hook\ParagraphsHooks: core 12 no longer runs the settings alter in theme-settings.php, and .theme files are deprecated in 11.5.
  • read the columns setting through ThemeSettingsProvider instead of the deprecated theme_get_setting(), in all three places.
  • declare core ^12 in wp_admin.info.yml, wp_admin_bar.info.yml and wp_dashicons.info.yml, and drupal/core ^11.4 || ^12 in composer.json.
  • suggest drupal/claro in composer.json and document it in the README, since core 12 no longer ships Claro, the base theme.
  • point the README, CSS, JS and preview template at the hook methods instead of the removed functions.

I used an LLM in the production of this code. Should be reviewed on Drupal 12 before tagging; Go ahead once the pipeline passes.

Merge request reports

Loading
Loading