#37701 closed defect (bug) (fixed)
Update documentation for wp_register_style
| Reported by: | rklis | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | WordPress.org |
| Component: | WordPress.org Site | Version: | 4.6 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | docs |
Description
Documentation for https://codex.wordpress.org/Function_Reference/wp_register_style needs to be updated.
It is returning (bool) true/false instead of void. It is very helpful for duplicate IDs, it would be good if it reminds us in doc :)
Change History (4)
#2
@
10 years ago
- Component Help/About → Script Loader
Hi @rklis, welcome to Trac!
Codex is a wiki (like Wikipedia), which means anyone with a WordPress.org account (including you!) can edit content themselves if information is outdated or incorrect.
#3
@
10 years ago
- Component Script Loader → WordPress.org site
- Keywords needs-codex 2nd-opinion removed
- Milestone Awaiting Review → WordPress.org
- Resolution → fixed
- Status new → closed
@tareiking has updated the codex.
@rklis The codex is a Wiki, any logged in user can update the codex when you find a bug in the documentation there, especially if you'd like to improve upon the documentation that's already there.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The function return value is correctly referenced as bool https://developer.wordpress.org/reference/functions/wp_register_style#return
Codex return value needs to be updated to match.