[wp-trac] [WordPress Trac] #39741: Hook of 'media_send_to_editor' filter causes no output.
WordPress Trac
noreply at wordpress.org
Tue Jan 31 14:51:48 UTC 2017
#39741: Hook of 'media_send_to_editor' filter causes no output.
-------------------------------+------------------------------
Reporter: slancio | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 4.7.2
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by slancio):
I've made it as simple as
{{{
function filter_media_send_to_editor( $html, $id, $attachment ) {
return $html;
}
add_filter( 'media_send_to_editor', 'filter_media_send_to_editor', 10, 3
);
}}}
in functions.php. No output. If I set a breakpoint within the body of
that function, my debugger doesn't catch it. The only other thing unusual
about my setups that I can think of is that all of my WordPress installs
are on Vagrant boxes or Homestead.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39741#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list