Opened 8 years ago
Closed 7 years ago
#3019 closed defect (bug) (fixed)
Searching dynamic hooks returns no results
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | Developer Hub | Keywords: | needs-patch |
| Cc: |
Change History (6)
#2
follow-up:
↓ 3
@
8 years ago
@pbiron Nice research, it's only about the >. A search for rest_{$this->post_type}_query does work.
#3
in reply to:
↑ 2
@
8 years ago
Replying to ocean90:
@pbiron Nice research, it's only about the
>. A search forrest_{$this->post_type}_querydoes work.
That's really odd, because that search does not work on my local clone...but yes, it does work on the real code reference :-(
#4
@
8 years ago
My results are the same as @pbiron.
On my local machine the search for rest_{$this->post_type}_query works and is redirected to /reference/hooks/rest_this-post_type_query/
And the search for rest_{$this->post_type}_query does not work.
The only way I can replicate this issue locally is if I rename the post title to rest_{$this->post_type}_query in the database.
I'm seeing this too. However, it isn't all searches for dynamic hooks.
Doing a few "random" searches for dynamic hooks suggests that the problem only surfaces when the search contains
$object->.For instance:
{$old_status}_to_{$new_status}worksterm_{$field}worksmanage_{$screen->id}_columnsdoes NOT workrest_{$this->post_type}_querydoes NOT workThe odd thing is that it works correctly on my local clone of the Code Reference (I did an SVN update on
wporg-developerthis morning, so my local has the latest code).Hope the above helps someone track down the problem.