Problem
The All Snippets screen does not show where each snippet runs. Users must open individual snippets to determine whether they run everywhere, only in the administration area, only on the site front end, or in another applicable location.
This is particularly difficult on sites with many snippets, where the execution context is important for maintenance and debugging.
Earlier versions through 3.6.8 displayed an icon beside non-global snippet names. That indicator was removed in 3.6.9. The current 3.10 table and card views show snippet type but not run location.
Reported on WordPress.org:
https://wordpress.org/support/topic/3-10-please-add-back-run-location-badge/
Proposed change
Add a clear run-location indicator to every snippet in the All Snippets table and card views.
Reuse the existing human-readable location labels from the snippet editor so terminology remains consistent. The indicator should be distinguishable from the snippet type badge and should not require opening the snippet or interpreting an unlabeled icon.
Acceptance criteria
- Each applicable snippet shows its saved run location on the All Snippets screen.
- The indicator is present in table, card, and responsive/mobile presentations.
- Global/everywhere snippets are identified explicitly rather than represented by the absence of an icon.
- Labels match the location options shown in the snippet editor.
- Icons, if used, include an accessible text label or tooltip.
- The location remains understandable without relying only on colour.
- Automated component coverage verifies the rendered labels for the supported locations.
Problem
The All Snippets screen does not show where each snippet runs. Users must open individual snippets to determine whether they run everywhere, only in the administration area, only on the site front end, or in another applicable location.
This is particularly difficult on sites with many snippets, where the execution context is important for maintenance and debugging.
Earlier versions through 3.6.8 displayed an icon beside non-global snippet names. That indicator was removed in 3.6.9. The current 3.10 table and card views show snippet type but not run location.
Reported on WordPress.org:
https://wordpress.org/support/topic/3-10-please-add-back-run-location-badge/
Proposed change
Add a clear run-location indicator to every snippet in the All Snippets table and card views.
Reuse the existing human-readable location labels from the snippet editor so terminology remains consistent. The indicator should be distinguishable from the snippet type badge and should not require opening the snippet or interpreting an unlabeled icon.
Acceptance criteria