Plugin Directory

Changeset 3822774


Ignore:
Timestamp:
11/25/2026 12:21:23 PM (less than one hour ago)
Author:
wowstudioplugin
Message:

Release 1.0.6: the skip link points at something that is still there on builder pages

Location:
wowstudio-accessibility-remediation
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wowstudio-accessibility-remediation/tags/1.0.6/languages/wowstudio-accessibility-remediation.pot

    r3741937 r3822774  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WOWStudio Accessibility Remediation 1.0.5\n"
     5"Project-Id-Version: WOWStudio Accessibility Remediation 1.0.6\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wowstudio-accessibility-remediation\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    20392039msgstr ""
    20402040
    2041 #: src/SiteFixes/Fixes/SkipLink.php:89
     2041#: src/SiteFixes/Fixes/SkipLink.php:119
    20422042msgid "Add a skip link"
    20432043msgstr ""
    20442044
    2045 #: src/SiteFixes/Fixes/SkipLink.php:100
     2045#: src/SiteFixes/Fixes/SkipLink.php:130
    20462046msgid "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."
    20472047msgstr ""
    20482048
    2049 #: src/SiteFixes/Fixes/SkipLink.php:122
    2050 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 
    20532049#: src/SiteFixes/Fixes/SkipLink.php:152
     2050msgid "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."
     2051msgstr ""
     2052
     2053#: src/SiteFixes/Fixes/SkipLink.php:197
    20542054msgid "Skip to content"
    20552055msgstr ""
  • wowstudio-accessibility-remediation/tags/1.0.6/readme.txt

    r3741937 r3822774  
    55Tested up to: 7.1
    66Requires PHP: 8.1
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    162162== Changelog ==
    163163
     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
    164167= 1.0.5 =
    165168* 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  
    4444 * navigation the reader was trying to escape.
    4545 *
     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 *
    4675 * @since 0.19.0
    4776 */
    … …  
    6897        private bool $target_placed = false;
    6998
     99
    70100        /**
    71101         * {@inheritDoc}
    … …  
    120150         */
    121151        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' );
    123153        }
    124154
    … …  
    132162        public function hooks(): void {
    133163                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 );
    135180        }
    136181
  • wowstudio-accessibility-remediation/tags/1.0.6/vendor/composer/installed.php

    r3741937 r3822774  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '0a141329866259786464ee0cfa5952375656fe0c',
     6        'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
    … …  
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => '0a141329866259786464ee0cfa5952375656fe0c',
     25            'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • wowstudio-accessibility-remediation/tags/1.0.6/wowstudio-accessibility-remediation.php

    r3741937 r3822774  
    1212 * Plugin URI:        https://wowstudio.dev/accessibility-remediation/
    1313 * 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.5
     14 * Version:           1.0.6
    1515 * Requires at least: 6.8
    1616 * Requires PHP:      8.1
    … …  
    3333defined( 'ABSPATH' ) || exit;
    3434
    35 define( 'WSAK_VERSION', '1.0.5' );
     35define( 'WSAK_VERSION', '1.0.6' );
    3636define( 'WSAK_FILE', __FILE__ );
    3737define( 'WSAK_PATH', plugin_dir_path( __FILE__ ) );
  • wowstudio-accessibility-remediation/trunk/languages/wowstudio-accessibility-remediation.pot

    r3741937 r3822774  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WOWStudio Accessibility Remediation 1.0.5\n"
     5"Project-Id-Version: WOWStudio Accessibility Remediation 1.0.6\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wowstudio-accessibility-remediation\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    20392039msgstr ""
    20402040
    2041 #: src/SiteFixes/Fixes/SkipLink.php:89
     2041#: src/SiteFixes/Fixes/SkipLink.php:119
    20422042msgid "Add a skip link"
    20432043msgstr ""
    20442044
    2045 #: src/SiteFixes/Fixes/SkipLink.php:100
     2045#: src/SiteFixes/Fixes/SkipLink.php:130
    20462046msgid "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."
    20472047msgstr ""
    20482048
    2049 #: src/SiteFixes/Fixes/SkipLink.php:122
    2050 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 
    20532049#: src/SiteFixes/Fixes/SkipLink.php:152
     2050msgid "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."
     2051msgstr ""
     2052
     2053#: src/SiteFixes/Fixes/SkipLink.php:197
    20542054msgid "Skip to content"
    20552055msgstr ""
  • wowstudio-accessibility-remediation/trunk/readme.txt

    r3741937 r3822774  
    55Tested up to: 7.1
    66Requires PHP: 8.1
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    162162== Changelog ==
    163163
     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
    164167= 1.0.5 =
    165168* 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  
    4444 * navigation the reader was trying to escape.
    4545 *
     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 *
    4675 * @since 0.19.0
    4776 */
    … …  
    6897        private bool $target_placed = false;
    6998
     99
    70100        /**
    71101         * {@inheritDoc}
    … …  
    120150         */
    121151        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' );
    123153        }
    124154
    … …  
    132162        public function hooks(): void {
    133163                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 );
    135180        }
    136181
  • wowstudio-accessibility-remediation/trunk/vendor/composer/installed.php

    r3741937 r3822774  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => '0a141329866259786464ee0cfa5952375656fe0c',
     6        'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
    … …  
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => '0a141329866259786464ee0cfa5952375656fe0c',
     25            'reference' => '2541939fc8deda3c2b04eb242dd298578cf2fbfd',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • wowstudio-accessibility-remediation/trunk/wowstudio-accessibility-remediation.php

    r3741937 r3822774  
    1212 * Plugin URI:        https://wowstudio.dev/accessibility-remediation/
    1313 * 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.5
     14 * Version:           1.0.6
    1515 * Requires at least: 6.8
    1616 * Requires PHP:      8.1
    … …  
    3333defined( 'ABSPATH' ) || exit;
    3434
    35 define( 'WSAK_VERSION', '1.0.5' );
     35define( 'WSAK_VERSION', '1.0.6' );
    3636define( 'WSAK_FILE', __FILE__ );
    3737define( 'WSAK_PATH', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.