Changeset 3822774
- Timestamp:
- 11/25/2026 12:21:23 PM (less than one hour ago)
- Location:
- wowstudio-accessibility-remediation
- Files:
-
- 10 edited
- 1 copied
-
tags/1.0.6 (copied) (copied from wowstudio-accessibility-remediation/trunk )
-
tags/1.0.6/languages/wowstudio-accessibility-remediation.pot (modified) (2 diffs)
-
tags/1.0.6/readme.txt (modified) (2 diffs)
-
tags/1.0.6/src/SiteFixes/Fixes/SkipLink.php (modified) (4 diffs)
-
tags/1.0.6/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.0.6/wowstudio-accessibility-remediation.php (modified) (2 diffs)
-
trunk/languages/wowstudio-accessibility-remediation.pot (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/SiteFixes/Fixes/SkipLink.php (modified) (4 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wowstudio-accessibility-remediation.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wowstudio-accessibility-remediation/tags/1.0.6/languages/wowstudio-accessibility-remediation.pot
r3741937 r3822774 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WOWStudio Accessibility Remediation 1.0. 5\n"5 "Project-Id-Version: WOWStudio Accessibility Remediation 1.0.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wowstudio-accessibility-remediation\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 2039 2039 msgstr "" 2040 2040 2041 #: src/SiteFixes/Fixes/SkipLink.php: 892041 #: src/SiteFixes/Fixes/SkipLink.php:119 2042 2042 msgid "Add a skip link" 2043 2043 msgstr "" 2044 2044 2045 #: src/SiteFixes/Fixes/SkipLink.php:1 002045 #: src/SiteFixes/Fixes/SkipLink.php:130 2046 2046 msgid "Puts a \"Skip to content\" link at the very start of every page, visible only while it has keyboard focus, and places the target it jumps to at the start of your content. Without one, reaching the article past a large menu can take dozens of key presses on every page." 2047 2047 msgstr "" 2048 2048 2049 #: src/SiteFixes/Fixes/SkipLink.php:1222050 msgid "Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme may not, and then nothing is printed. The link lands at the start of your post content rather than at your theme's own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two."2051 msgstr ""2052 2053 2049 #: src/SiteFixes/Fixes/SkipLink.php:152 2050 msgid "Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme, or a page builder supplying its own page template, may not, and then nothing is printed at all. The link lands at the start of your post content rather than at your theme's own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two." 2051 msgstr "" 2052 2053 #: src/SiteFixes/Fixes/SkipLink.php:197 2054 2054 msgid "Skip to content" 2055 2055 msgstr "" -
wowstudio-accessibility-remediation/tags/1.0.6/readme.txt
r3741937 r3822774 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.1 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 162 162 == Changelog == 163 163 164 = 1.0.6 = 165 * Fixed: the skip link pointed at nothing on pages built with Elementor. The target it jumps to was added to your content before the page builder rendered, and the builder then replaced that content with its own, taking the target with it. The link was printed either way, so the result was a skip link that looked right and did nothing — which is the same fault this plugin reports on other people's sites. The target is now placed after any builder has finished. 166 164 167 = 1.0.5 = 165 168 * The listing now says what the plugin does rather than only what it is called. Nobody searches for "remediation". -
wowstudio-accessibility-remediation/tags/1.0.6/src/SiteFixes/Fixes/SkipLink.php
r3708637 r3822774 44 44 * navigation the reader was trying to escape. 45 45 * 46 * **The pair came apart once, and it is worth knowing how.** The target was 47 * filtered onto `the_content` at priority 1, which is before a page builder 48 * gets to it. Elementor renders from its own stored data and replaces the 49 * content string wholesale at priority 9, so on a page built with it the link 50 * was printed and the target was thrown away: precisely the broken skip link 51 * this plugin reports on other people's sites, shipped by the fix meant to 52 * prevent it. Filtering last instead of first fixes it for any builder that 53 * works this way, not only that one. 54 * 55 * **"Printed as a pair or not at all" is not something this class can 56 * guarantee, and it used to say that it could.** The two hooks do not fire in 57 * a fixed order. Under a classic template `wp_body_open` comes first and the 58 * content follows; under a block theme the template is assembled before the 59 * body is emitted, so `the_content` runs *first* — measured, not assumed, with 60 * a probe on a stock Twenty Twenty-Five install: 61 * 62 * the_content len=137 via render_block<do_blocks 63 * wp_body_open fired 64 * 65 * So neither half can wait to see whether the other happened. An attempt to 66 * make the target conditional on the link having been printed removed the 67 * target from every block-theme page, which is how the ordering came to light. 68 * 69 * What that leaves is one benign asymmetry: a template that renders content 70 * without ever opening the body — Elementor's header-footer template on a 71 * block theme is one — gets a target with no link pointing at it. That is an 72 * empty span of zero height, outside the tab order, and no checker reports it. 73 * The harmful asymmetry, a link with no target, is the one that is fixed. 74 * 46 75 * @since 0.19.0 47 76 */ … … 68 97 private bool $target_placed = false; 69 98 99 70 100 /** 71 101 * {@inheritDoc} … … 120 150 */ 121 151 public function caveat(): string { 122 return __( 'Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme may not, and then nothing is printed. The link lands at the start of your post content rather than at your theme\'s own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two.', 'wowstudio-accessibility-remediation' );152 return __( 'Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme, or a page builder supplying its own page template, may not, and then nothing is printed at all. The link lands at the start of your post content rather than at your theme\'s own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two.', 'wowstudio-accessibility-remediation' ); 123 153 } 124 154 … … 132 162 public function hooks(): void { 133 163 add_action( 'wp_body_open', array( $this, 'print_link' ), 1 ); 134 add_filter( 'the_content', array( $this, 'place_target' ), 1 ); 164 165 /* 166 * Last, not first. 167 * 168 * This ran at priority 1 until 1.0.6, which put the target into the 169 * raw post content before anything else saw it. A page builder that 170 * renders from its own storage then replaces that string outright and 171 * the target goes with it, leaving the link pointing at an id that is 172 * not on the page. Elementor does exactly this, at priority 9. 173 * 174 * Running last means the target is prepended to whatever the content 175 * finally became, builder output included, so it cannot be discarded 176 * by anything downstream. It also puts the span after wpautop, which 177 * at priority 1 was free to wrap it in a paragraph of its own. 178 */ 179 add_filter( 'the_content', array( $this, 'place_target' ), PHP_INT_MAX ); 135 180 } 136 181 -
wowstudio-accessibility-remediation/tags/1.0.6/vendor/composer/installed.php
r3741937 r3822774 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 0a141329866259786464ee0cfa5952375656fe0c',6 'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-main', 24 24 'version' => 'dev-main', 25 'reference' => ' 0a141329866259786464ee0cfa5952375656fe0c',25 'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
wowstudio-accessibility-remediation/tags/1.0.6/wowstudio-accessibility-remediation.php
r3741937 r3822774 12 12 * Plugin URI: https://wowstudio.dev/accessibility-remediation/ 13 13 * Description: Helps you find, fix and document WCAG accessibility issues at the code level. Real markup fixes with preview and undo — not an overlay. 14 * Version: 1.0. 514 * Version: 1.0.6 15 15 * Requires at least: 6.8 16 16 * Requires PHP: 8.1 … … 33 33 defined( 'ABSPATH' ) || exit; 34 34 35 define( 'WSAK_VERSION', '1.0. 5' );35 define( 'WSAK_VERSION', '1.0.6' ); 36 36 define( 'WSAK_FILE', __FILE__ ); 37 37 define( 'WSAK_PATH', plugin_dir_path( __FILE__ ) ); -
wowstudio-accessibility-remediation/trunk/languages/wowstudio-accessibility-remediation.pot
r3741937 r3822774 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WOWStudio Accessibility Remediation 1.0. 5\n"5 "Project-Id-Version: WOWStudio Accessibility Remediation 1.0.6\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wowstudio-accessibility-remediation\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 2039 2039 msgstr "" 2040 2040 2041 #: src/SiteFixes/Fixes/SkipLink.php: 892041 #: src/SiteFixes/Fixes/SkipLink.php:119 2042 2042 msgid "Add a skip link" 2043 2043 msgstr "" 2044 2044 2045 #: src/SiteFixes/Fixes/SkipLink.php:1 002045 #: src/SiteFixes/Fixes/SkipLink.php:130 2046 2046 msgid "Puts a \"Skip to content\" link at the very start of every page, visible only while it has keyboard focus, and places the target it jumps to at the start of your content. Without one, reaching the article past a large menu can take dozens of key presses on every page." 2047 2047 msgstr "" 2048 2048 2049 #: src/SiteFixes/Fixes/SkipLink.php:1222050 msgid "Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme may not, and then nothing is printed. The link lands at the start of your post content rather than at your theme's own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two."2051 msgstr ""2052 2053 2049 #: src/SiteFixes/Fixes/SkipLink.php:152 2050 msgid "Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme, or a page builder supplying its own page template, may not, and then nothing is printed at all. The link lands at the start of your post content rather than at your theme's own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two." 2051 msgstr "" 2052 2053 #: src/SiteFixes/Fixes/SkipLink.php:197 2054 2054 msgid "Skip to content" 2055 2055 msgstr "" -
wowstudio-accessibility-remediation/trunk/readme.txt
r3741937 r3822774 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.1 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 162 162 == Changelog == 163 163 164 = 1.0.6 = 165 * Fixed: the skip link pointed at nothing on pages built with Elementor. The target it jumps to was added to your content before the page builder rendered, and the builder then replaced that content with its own, taking the target with it. The link was printed either way, so the result was a skip link that looked right and did nothing — which is the same fault this plugin reports on other people's sites. The target is now placed after any builder has finished. 166 164 167 = 1.0.5 = 165 168 * The listing now says what the plugin does rather than only what it is called. Nobody searches for "remediation". -
wowstudio-accessibility-remediation/trunk/src/SiteFixes/Fixes/SkipLink.php
r3708637 r3822774 44 44 * navigation the reader was trying to escape. 45 45 * 46 * **The pair came apart once, and it is worth knowing how.** The target was 47 * filtered onto `the_content` at priority 1, which is before a page builder 48 * gets to it. Elementor renders from its own stored data and replaces the 49 * content string wholesale at priority 9, so on a page built with it the link 50 * was printed and the target was thrown away: precisely the broken skip link 51 * this plugin reports on other people's sites, shipped by the fix meant to 52 * prevent it. Filtering last instead of first fixes it for any builder that 53 * works this way, not only that one. 54 * 55 * **"Printed as a pair or not at all" is not something this class can 56 * guarantee, and it used to say that it could.** The two hooks do not fire in 57 * a fixed order. Under a classic template `wp_body_open` comes first and the 58 * content follows; under a block theme the template is assembled before the 59 * body is emitted, so `the_content` runs *first* — measured, not assumed, with 60 * a probe on a stock Twenty Twenty-Five install: 61 * 62 * the_content len=137 via render_block<do_blocks 63 * wp_body_open fired 64 * 65 * So neither half can wait to see whether the other happened. An attempt to 66 * make the target conditional on the link having been printed removed the 67 * target from every block-theme page, which is how the ordering came to light. 68 * 69 * What that leaves is one benign asymmetry: a template that renders content 70 * without ever opening the body — Elementor's header-footer template on a 71 * block theme is one — gets a target with no link pointing at it. That is an 72 * empty span of zero height, outside the tab order, and no checker reports it. 73 * The harmful asymmetry, a link with no target, is the one that is fixed. 74 * 46 75 * @since 0.19.0 47 76 */ … … 68 97 private bool $target_placed = false; 69 98 99 70 100 /** 71 101 * {@inheritDoc} … … 120 150 */ 121 151 public function caveat(): string { 122 return __( 'Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme may not, and then nothing is printed. The link lands at the start of your post content rather than at your theme\'s own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two.', 'wowstudio-accessibility-remediation' );152 return __( 'Needs your theme to call wp_body_open(), which themes have done since WordPress 5.2; a much older theme, or a page builder supplying its own page template, may not, and then nothing is printed at all. The link lands at the start of your post content rather than at your theme\'s own main element, so on a page built entirely out of widgets it may skip less than you expect. If your theme already has a skip link, you will now have two.', 'wowstudio-accessibility-remediation' ); 123 153 } 124 154 … … 132 162 public function hooks(): void { 133 163 add_action( 'wp_body_open', array( $this, 'print_link' ), 1 ); 134 add_filter( 'the_content', array( $this, 'place_target' ), 1 ); 164 165 /* 166 * Last, not first. 167 * 168 * This ran at priority 1 until 1.0.6, which put the target into the 169 * raw post content before anything else saw it. A page builder that 170 * renders from its own storage then replaces that string outright and 171 * the target goes with it, leaving the link pointing at an id that is 172 * not on the page. Elementor does exactly this, at priority 9. 173 * 174 * Running last means the target is prepended to whatever the content 175 * finally became, builder output included, so it cannot be discarded 176 * by anything downstream. It also puts the span after wpautop, which 177 * at priority 1 was free to wrap it in a paragraph of its own. 178 */ 179 add_filter( 'the_content', array( $this, 'place_target' ), PHP_INT_MAX ); 135 180 } 136 181 -
wowstudio-accessibility-remediation/trunk/vendor/composer/installed.php
r3741937 r3822774 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' 0a141329866259786464ee0cfa5952375656fe0c',6 'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-main', 24 24 'version' => 'dev-main', 25 'reference' => ' 0a141329866259786464ee0cfa5952375656fe0c',25 'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
wowstudio-accessibility-remediation/trunk/wowstudio-accessibility-remediation.php
r3741937 r3822774 12 12 * Plugin URI: https://wowstudio.dev/accessibility-remediation/ 13 13 * Description: Helps you find, fix and document WCAG accessibility issues at the code level. Real markup fixes with preview and undo — not an overlay. 14 * Version: 1.0. 514 * Version: 1.0.6 15 15 * Requires at least: 6.8 16 16 * Requires PHP: 8.1 … … 33 33 defined( 'ABSPATH' ) || exit; 34 34 35 define( 'WSAK_VERSION', '1.0. 5' );35 define( 'WSAK_VERSION', '1.0.6' ); 36 36 define( 'WSAK_FILE', __FILE__ ); 37 37 define( 'WSAK_PATH', plugin_dir_path( __FILE__ ) );
Note:
See TracChangeset
for help on using the changeset viewer.