Opened 13 years ago
Closed 13 years ago
#25588 closed defect (bug) (fixed)
Hook Docs: wp-includes/theme.php
| Reported by: | ShinichiN | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.8 |
| Component: | Inline Docs | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
I added inline documentations to all the filter and action hooks in wp-includes/theme.php
Attachments (3)
Change History (11)
#2
follow-up:
↓ 5
@
13 years ago
- Keywords needs-patch added; has-patch removed
- Milestone Awaiting Review → 3.8
- Type enhancement → defect (bug)
#3
@
13 years ago
stylesheet, template, theme_root, switch_theme, and some other filters were added in 1.5.0, not in 1.5.2. Minor releases generally don't contain new hooks.
Looks like the database on http://adambrown.info/p/wp_hooks doesn't include 1.5.0 for some reason.
@
13 years ago
'after_switch_theme' action fires multiple times and has different parameter(s) depending on the context. I didn't know if I should document about the parameter "$stylesheet" for the second one. In the patch, I wrote it in the long description field of the first one.
#5
in reply to: ↑ 2
@
13 years ago
Replying to DrewAPicture:
(if you're confused, we changed our approach to this a couple of weeks ago)
Thank you for the notification.
Where can I read the discussion about this? Should I resend patches for the old ones which I've sent for the WP version 3.7?
#7
@
13 years ago
- Keywords commit added
25588.2.diff is a comprehensive third pass. Notably, it minimizes changed code wherever possible. Also adds a bunch of missing parameter types, and fixes some descriptions.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hey, thanks for the patch. This is a really great start. Here are some notes on 25588.diff:
Overall:
template_directory_urifilter:$theme_root_urlis nice, but it might fit better in a long description for the filterwp_cache_themes_persistentlyfilter:theme_root_urifilter:switch_themefilter:$new_themeparameter should have a type ofWP_Themevalidate_current_themefilter:theme_mod_$namefilter:$current_mod$name, refers toThe second use of the
theme_mod_$namefilter should be marked a duplicate as follows:current_theme_supports-$featurefilter:$feature, refers toafter_switch_themeaction:The second use of the
after_switch_themeaction should be marked a duplicate as follows: