#25468 closed defect (bug) (fixed)
Hook Docs: wp-includes/bookmark.php
Reported by: | ShinichiN | Owned by: | rzen |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Inline Docs | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Inserting inline documents for all the hooks in wp-includes/bookmark.php
Attachments (5)
Change History (12)
#2
@
11 years ago
- Keywords needs-patch added; has-patch removed
- Type changed from enhancement to defect (bug)
Version 0, edited 11 years ago
by
(next)
#3
follow-up:
↓ 4
@
11 years ago
- Keywords has-patch added; needs-patch removed
Thank you for the review.
Is it ok to make change as below to the hooks?
before
apply_filters('get_bookmarks', $results, $r);
after
apply_filters( 'get_bookmarks', $results, $r );
just inserting spaces before and after the arguments.
#4
in reply to:
↑ 3
@
11 years ago
Replying to ShinichiN:
Thank you for the review.
Is it ok to make change as below to the hooks?
before
apply_filters('get_bookmarks', $results, $r);
after
apply_filters( 'get_bookmarks', $results, $r );
just inserting spaces before and after the arguments.
Yep, sure is :)
Note: See
TracTickets for help on using
tickets.
Hi, thanks for the patch. Some notes on 25468.diff:
get_bookmarks
filter:$r
is an array of arguments passed toget_bookmarks()
so just back-reference that, like this:edit_$field
filter:$field
portion of the dynamic hook name refers to.pre_$field
filter:$field
portion of the dynamic hook name refers to.$field
filter is a//duplicate_hook