WordPress / WordPress/WordPress-Coding-Standards

Enhancement: check for prefixed script/style handles and image size names

Open
#929 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Focus: WP interoperability Type: Enhancement
Dominant language
PHP
Stars
2.8k
Forks
521
Avg merge
5d 20h
Merged PRs (30d)
1

Description

From https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/900#issuecomment-290970192:

@grappler
Would it make sense to check for prefixing the following items or a new issue and sniff would be better?

  • Script handles.
  • Style handles.
  • Image size names.

@jrfnl
... might be possible to add a later stage, however, it would need to be very clearly defined what should be checked for in those cases, so please follow up with some code example, reference links etc.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked discussion in WordPress-Coding-Standards issue #900 and gather the requested code examples and reference links. Define precisely what prefixing means for script handles, style handles, and image size names before identifying an implementation entry point; the work is done when the scope is agreed and testable requirements are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.