wp_localize_script Parameters Example need to be updated.
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 116
- Forks
- 54
- PR merge metrics
- No merged PRs in 30d
Description
Issue Description
The Parameter called $object_name has an example. The example is confusing (especially for the beginner). it is shown as a Regular Expression. The value of the regular expression is a type here. not the object name.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the wp_localize_script documentation and review the $object_name parameter example shown in the issue. Replace the confusing regular-expression-style value with an example that clearly represents an object name, then verify that the parameter description and example are consistent.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100