Opened 12 years ago
Closed 11 years ago
#25588 closed defect (bug) (fixed)
Hook Docs: wp-includes/theme.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
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
@
11 years ago
- Keywords needs-patch added; has-patch removed
- Milestone changed from Awaiting Review to 3.8
- Type changed from enhancement to defect (bug)
#3
@
11 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.
@
11 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
@
11 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
@
11 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.
Hey, thanks for the patch. This is a really great start. Here are some notes on 25588.diff:
Overall:
template_directory_uri
filter:$theme_root_url
is nice, but it might fit better in a long description for the filterwp_cache_themes_persistently
filter:theme_root_uri
filter:switch_theme
filter:$new_theme
parameter should have a type ofWP_Theme
validate_current_theme
filter:theme_mod_$name
filter:$current_mod
$name
, refers toThe second use of the
theme_mod_$name
filter should be marked a duplicate as follows:current_theme_supports-$feature
filter:$feature
, refers toafter_switch_theme
action:The second use of the
after_switch_theme
action should be marked a duplicate as follows: