edit_form_image_editor( WP_Post $post )
- Since
- 3.5.0
- Source
wp-admin/includes/media.php:3139
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
- Scaling
- Constant
- Instructions
- 96–203
- Plugin surface
- 2 hooks
- Called by
- 0
Reaches the database via get_post().
No loop in the body: the same number of instructions runs whatever you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 299.
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.
Nothing in core calls this; the cost is only what you spend yourself.
What it touches
- hookthird-party callbacks
do_action()called directly - querycontent query
get_post()one call below edit_form_image_editor() - transienttransient
get_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.
| When | Instructions | Calls it makes |
|---|---|---|
!wp_attachment_is_image() && !isset($thumb_url) | 96–100 | 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() && !isset($thumb_url) | 101–105 | 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) | 102–106 | 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() && !isset($thumb_url) | 102–106 | wp_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–108 | 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() && isset($thumb_url) | 105–109 | 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) | 107–111 | 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) | 107–111 | 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() && !isset($thumb_url) | 107–111 | wp_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–112 | wp_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–113 | 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() && isset($thumb_url) | 110–114 | 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() |
108 further outcomes, up to 194 instructions
!wp_attachment_is_image() && wp_attachment_is() | 110–111 | wp_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–115 | 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() && isset($thumb_url) | 111–115 | wp_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–116 | 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) | 113–117 | wp_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–117 | wp_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–116 | wp_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–120 | 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) | 116–120 | 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() && isset($thumb_url) | 116–120 | wp_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–121 | wp_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–122 | wp_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–125 | 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() && !wp_attachment_is() && isset($thumb_url) | 122–126 | wp_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–126 | wp_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–130 | 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() && isset($thumb_url) | 127–131 | wp_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–133 | 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() && !isset($thumb_url) | 128–132 | 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() | 130–135 | 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() && !mime_type() | 131–133 | wp_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–148 | 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() | 133–138 | 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() && !isset($thumb_url) | 133–137 | 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() | 134–136 | wp_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–138 | 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() && !isset($thumb_url) | 134–138 | wp_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–138 | wp_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–140 | 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() && empty($thumb_id) | 137–153 | 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) | 137–153 | 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() && isset($thumb_url) | 137–141 | 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() && empty($thumb_id) | 138–153 | wp_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–141 | wp_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–143 | 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) | 139–143 | 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() && !isset($thumb_url) | 139–143 | wp_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–144 | wp_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–145 | 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() && !empty($thumb_id) | 142–158 | 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() && isset($thumb_url) | 142–146 | 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() | 142–143 | wp_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–156 | 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() && empty($thumb_id) | 143–158 | wp_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–158 | wp_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–147 | 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() && isset($thumb_url) | 143–147 | wp_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–148 | 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() && !wp_attachment_is() && !isset($thumb_url) | 145–149 | wp_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–149 | wp_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–151 | 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() && wp_attachment_is() | 147–148 | wp_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–161 | 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) | 148–161 | 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() && !empty($thumb_id) | 148–163 | wp_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–152 | 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) | 148–152 | 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() && isset($thumb_url) | 148–152 | wp_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–154 | 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() && $w && empty($thumb_id) | 149–161 | wp_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–153 | wp_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–154 | wp_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–156 | 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() | 152–154 | wp_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–166 | 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) | 153–157 | 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() | 154–159 | 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() && $w && empty($thumb_id) | 154–166 | wp_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–166 | wp_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–158 | wp_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–158 | wp_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–157 | wp_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–159 | wp_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–162 | 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() && $w && !empty($thumb_id) | 159–171 | wp_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–163 | wp_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–162 | wp_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–165 | 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() | 162–167 | 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() && !mime_type() | 163–165 | wp_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–180 | 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() | 165–170 | 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() | 166–168 | wp_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–170 | wp_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–185 | 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) | 169–185 | 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() && empty($thumb_id) | 170–185 | wp_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–173 | wp_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–190 | 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() && $w && empty($thumb_id) | 175–188 | 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() && empty($thumb_id) | 175–190 | wp_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–190 | wp_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–183 | 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) | 180–193 | 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) | 180–193 | 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() && !empty($thumb_id) | 180–195 | wp_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–186 | 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() && $w && empty($thumb_id) | 181–193 | wp_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–188 | 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() && mime_type() | 184–186 | wp_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–198 | 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() | 186–191 | 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() && $w && empty($thumb_id) | 186–198 | wp_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–198 | wp_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–189 | wp_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–191 | wp_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–203 | wp_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–194 | wp_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
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 299 | 96–203 | 21 | |
| 8.5 | 299 | 96–203 | 21 | |
| 8.4 | 299 | 96–203 | 21 | 11 fewer instructions than PHP 8.3 |
| 8.3 | 310 | 102–212 | 21 | |
| 8.2 | 310 | 102–212 | 21 | |
| 8.1 | 310 | 102–212 | 21 | 2 fewer instructions than PHP 7.4 |
| 7.4 | 312 | 103–214 | 21 |
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:
- 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.
- 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
- wp_get_attachment_image_src()Retrieves an image to represent an attachment.
- get_post_meta()Retrieves a post meta field for the given post ID.
- wp_get_attachment_url()Retrieves the URL for an attachment.
- wp_attachment_is_image()Determines whether an attachment is an image.
- wp_image_editor_supports()Tests whether there is an editor that supports a given mime type or methods.
- wp_create_nonce()Creates a cryptographic token tied to a specific action, user, user session, and window of time.
- esc_attr__()Retrieves the translation of $text and escapes it for safe use in an attribute.
- set_url_scheme()Sets the scheme for a URL.
- wp_image_editor()Loads the WP image-editing interface.
- wp_attachment_is()Verifies an attachment is of a given type.
- wp_maybe_generate_attachment_metadata()Maybe attempts to generate attachment metadata, if missing.
- wp_audio_shortcode()Builds the Audio shortcode output.
Show all 26
- wp_get_attachment_metadata()Retrieves attachment metadata for attachment ID.
- get_post_thumbnail_id()Retrieves the post thumbnail ID.
- wp_video_shortcode()Builds the Video shortcode output.
- do_action()Calls the callback functions that have been added to an action hook.
- str_starts_with()Polyfill for `str_starts_with()` function added in PHP 8.0.
- _e()Displays translated text.
- esc_attr()Escaping for HTML attributes.
- __()Retrieves the translation of $text.
- esc_url()Checks and cleans a URL.
- esc_html_e()Displays translated text that has been escaped for safe use in HTML output.
- apply_filters()Calls the callback functions that have been added to a filter hook.
- wp_editor()Renders an editor.
- format_to_edit()Acts on text which is about to be edited.
- get_compat_media_markup()Retrieves the media markup for an attachment.
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.
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.