Skip to content

Instantly share code, notes, and snippets.

View westonruter's full-sized avatar

Weston Ruter westonruter

View GitHub Profile
<?php
/**
* Cache WP AI Generate Responses Plugin for WordPress
*
* @package CacheWpAiGenerateResponses
* @author Weston Ruter
* @license GPL-2.0-or-later
* @copyright Copyleft 2026, Weston Ruter
*
* @wordpress-plugin

This is combined list of CodeMirror v5 changes across all 76 releases (5.30.0 through 5.65.18) which are included in WordPress 7.0 due to #48456. Gathered by Claude Code with Opus 4.6.


Bug fixes (282 items)

Core editor

  • [5.65.16] Fix focus tracking in shadow DOM.
  • [5.65.9] Add a workaround for a regression in Chrome 105 that could cause content below the editor to not receive mouse events.
  • [5.65.8] Include direction override and isolate characters in the default set of special characters.
--- before.txt 2026-02-28 11:28:52
+++ after.txt 2026-02-28 11:43:42
@@ -9,12 +9,6 @@
string, false given.
πŸͺͺ argument.type
at src/wp-activate.php:40
- 55 Cannot call method get_error_code() on array|WP_Error.
- πŸͺͺ method.nonObject
- at src/wp-activate.php:55
- 58 Cannot call method get_error_code() on array|WP_Error.
@westonruter
westonruter / symlink-js-enqueues.sh
Created January 28, 2026 06:38
Using symlinks to bypass having to run build:dev in wordpress-develop
@westonruter
westonruter / README.md
Last active December 19, 2025 20:32
Test plugin to ensure that a stylesheet enqueued in the footer will get printed and moved to the head in WordPress 6.9. See https://wordpress.org/support/topic/wordpress-6-9-broke-site-layout-crewbloom/page/3/#post-18758001
#late-enqueued-style-info {
position: fixed;
bottom: 0;
right: 0;
padding: 1em;
}
@westonruter
westonruter / README.md
Created November 17, 2025 17:31
Benchmarking web vitals for the "Block category: Common" with all the core themes in WordPress 6.8 versus 6.9-RC1
@westonruter
westonruter / README.md
Created November 16, 2025 00:12
Benchmarking web vitals for the Sample Page with all the core themes in WordPress 6.8 versus 6.9-RC1
@westonruter
westonruter / README.md
Last active November 18, 2025 06:20
WordPress 6.9 Performance Improvments

πŸ‘‰ Dev note published: WordPress 6.9 Frontend Performance Field Guide


I'm working on a Dev Note which will detail all of the performance improvements in WordPress 6.9. See full list in Trac. In the mean time, here are a couple outlines:

Links below either point to a specific ticket or a Trac query for the group of tickets:

4-bullet highlights

The two sites are running on LocalWP with PHP 8.2, MySQL 8, Nginx. They both have the theme unit test data installed. The Twenty Twenty-One theme is active. In the Customizer, the theme is configured to show full content instead of excerpts on archive pages.

benchmark-server-timing on Sample Page

npm run research -- benchmark-server-timing --url=http://wp68.local/sample-page/ --url=http://wp69beta4.local/sample-page/ --number=100 --diff --output=md
URL http://wp68.local/sample-page/ http://wp69beta4.local/sample-page/ Diff (ms) Diff (%)