wppaste
WordPress

edit_form_image_editor( WP_Post $post )

Since
3.5.0
Source
wp-admin/includes/media.php:3139
Displays the image and editor in the post editor

Compatibility

WordPress
since 3.5.0
PHP
7.4–8.6-dev
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.

Parameters

$postWP_Post
A post object.

Performance profile

How much work a call to edit_form_image_editor() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.

Cost class
Heavy

Reaches the database via get_post().

Scaling
Constant

No loop in the body: the same number of instructions runs whatever you pass in.

Instructions
96–203

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 299.

Plugin surface
2 hooks

Third-party callbacks on 'wp_edit_form_attachment_display', 'activate_tinymce_for_media_description' run inside this call, and their cost is not bounded by anything here.

Called by
0

Nothing in core calls this; the cost is only what you spend yourself.

What it touches

  • hookthird-party callbacksdo_action()called directly
  • querycontent queryget_post()one call below edit_form_image_editor()
  • transienttransientget_transient()one call below edit_form_image_editor()

Further down the call graph this can also reach cache, option and serialize. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.

What one call costs · 120 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost edit_form_image_editor() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
!wp_attachment_is_image() && !isset($thumb_url)96–100get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !isset($thumb_url)101–105get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)102–106get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !isset($thumb_url)102–106wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && wp_attachment_is()104–108get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)105–109get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)107–111get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)107–111get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !isset($thumb_url)107–111wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)108–112wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && wp_attachment_is()109–113get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)110–114get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
108 further outcomes, up to 194 instructions
!wp_attachment_is_image() && wp_attachment_is()110–111wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)111–115get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)111–115wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)112–116get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)113–117wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)113–117wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && wp_attachment_is()115–116wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)116–120get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)116–120get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)116–120wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)117–121wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)118–122wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)121–125get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)122–126wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)122–126wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()125–130get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)127–131wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()128–133get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !isset($thumb_url)128–132get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()130–135get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()131–133wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)132–148get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()133–138get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !isset($thumb_url)133–137get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()134–136wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)134–138get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !isset($thumb_url)134–138wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()136–138wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && wp_attachment_is()136–140get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)137–153get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)137–153get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)137–141get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)138–153wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()139–141wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)139–143get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)139–143get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !isset($thumb_url)139–143wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)140–144wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && wp_attachment_is()141–145get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)142–158get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)142–146get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && wp_attachment_is()142–143wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)143–156get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)143–158wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)143–158wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)143–147get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)143–147wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)144–148get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)145–149wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)145–149wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()146–151get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && wp_attachment_is()147–148wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), src(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)148–161get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)148–161get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)148–163wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)148–152get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)148–152get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && isset($thumb_url)148–152wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()149–154get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)149–161wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)149–153wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && !isset($thumb_url)150–154wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), do_action(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()151–156get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()152–154wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)153–166get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)153–157get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()154–159get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)154–166wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)154–166wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)154–158wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)154–158wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()155–157wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()157–159wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()157–162get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)159–171wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !wp_attachment_is() && isset($thumb_url)159–163wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()160–162wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()160–165get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()162–167get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()163–165wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)164–180get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()165–170get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()166–168wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()168–170wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)169–185get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)169–185get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)170–185wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && !mime_type()171–173wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)174–190get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)175–188get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && empty($thumb_id)175–190wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)175–190wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()178–183get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)180–193get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)180–193get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && !empty($thumb_id)180–195wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()181–186get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)181–193wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()183–188get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()184–186wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)185–198get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()186–191get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && empty($thumb_id)186–198wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)186–198wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()187–189wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()189–191wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
!wp_attachment_is_image() && $w && !empty($thumb_id)191–203wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), wp_attachment_is(), wp_attachment_is(), wp_maybe_generate_attachment_metadata(), wp_get_attachment_metadata(), round(), get_post_thumbnail_id(), wp_get_attachment_url(), wp_video_shortcode(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()
wp_attachment_is_image() && mime_type()192–194wp_get_attachment_image_src(), get_post_meta(), wp_get_attachment_url(), wp_attachment_is_image(), mime_type(), wp_create_nonce(), esc_attr__(), set_url_scheme(), wp_image_editor(), _e(), esc_attr(), __(), __(), esc_url(), __(), printf(), wp_attachment_is(), esc_html_e(), apply_filters(), _e(), __(), format_to_edit(), wp_editor(), get_compat_media_markup()

This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.

Across PHP versions

PHPCompiledExecutedBranchesNotes
8.6-dev29996–20321
8.529996–20321
8.429996–2032111 fewer instructions than PHP 8.3
8.3310102–21221
8.2310102–21221
8.1310102–212212 fewer instructions than PHP 7.4
7.4312103–21421

An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.

Hooks and filters fired · 2

2 hooks fire while edit_form_image_editor() runs, in this order:

  1. do_action( wp_edit_form_attachment_display )actionline 3244 (+105 into the body)

    Fires when an attachment type can't be rendered in the edit form.

  2. apply_filters( activate_tinymce_for_media_description )filterline 3303 (+164 into the body)

    Filters the TinyMCE argument for the media description field on the attachment details screen.

Uses · 26

Show all 26

Source code

function edit_form_image_editor( $post ) {	$open = isset( $_GET['image-editor'] ); 	if ( $open ) {		require_once ABSPATH . 'wp-admin/includes/image-edit.php';	} 	$thumb_url     = false;	$attachment_id = (int) $post->ID; 	if ( $attachment_id ) {		$thumb_url = wp_get_attachment_image_src( $attachment_id, array( 900, 450 ), true );	} 	$alt_text = get_post_meta( $post->ID, '_wp_attachment_image_alt', true ); 	$att_url = wp_get_attachment_url( $post->ID );	?>	<div class="wp_attachment_holder wp-clearfix">	<?php 	if ( wp_attachment_is_image( $post->ID ) ) :		$image_edit_button = '';		if ( wp_image_editor_supports( array( 'mime_type' => $post->post_mime_type ) ) ) {			$nonce             = wp_create_nonce( "image_editor-$post->ID" );			$image_edit_button = "<input type='button' id='imgedit-open-btn-$post->ID' onclick='imageEdit.open( $post->ID, \"$nonce\" )' class='button' value='" . esc_attr__( 'Edit Image' ) . "' /> <span class='spinner'></span>";		} 		$open_style     = '';		$not_open_style = ''; 		if ( $open ) {			$open_style = ' style="display:none"';		} else {			$not_open_style = ' style="display:none"';		} 		?>		<div class="imgedit-response" id="imgedit-response-<?php echo $attachment_id; ?>"></div> 		<div<?php echo $open_style; ?> class="wp_attachment_image wp-clearfix" id="media-head-<?php echo $attachment_id; ?>">			<p id="thumbnail-head-<?php echo $attachment_id; ?>"><img class="thumbnail" src="<?php echo set_url_scheme( $thumb_url[0] ); ?>" style="max-width:100%" alt="" /></p>			<p><?php echo $image_edit_button; ?></p>		</div>		<div<?php echo $not_open_style; ?> class="image-editor" id="image-editor-<?php echo $attachment_id; ?>">		<?php 		if ( $open ) {			wp_image_editor( $attachment_id );		} 		?>		</div>		<?php	elseif ( $attachment_id && wp_attachment_is( 'audio', $post ) ) : 		wp_maybe_generate_attachment_metadata( $post ); 		echo wp_audio_shortcode( array( 'src' => $att_url ) ); 	elseif ( $attachment_id && wp_attachment_is( 'video', $post ) ) : 		wp_maybe_generate_attachment_metadata( $post ); 		$meta = wp_get_attachment_metadata( $attachment_id );		$w    = ! empty( $meta['width'] ) ? min( $meta['width'], 640 ) : 0;		$h    = ! empty( $meta['height'] ) ? $meta['height'] : 0; 		if ( $h && $w < $meta['width'] ) {			$h = round( ( $meta['height'] * $w ) / $meta['width'] );		} 		$attr = array( 'src' => $att_url ); 		if ( ! empty( $w ) && ! empty( $h ) ) {			$attr['width']  = $w;			$attr['height'] = $h;		} 		$thumb_id = get_post_thumbnail_id( $attachment_id );

Changelog

Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-admin/includes/media.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.