Title: media | Make WordPress Core

---

#  Tag Archives: media

 [  ](https://profiles.wordpress.org/tyxla/) [Marin Atanasov](https://profiles.wordpress.org/tyxla/)
9:30 am _on_ July 23, 2026     
Tags: [7.1 ( 68 )](https://make.wordpress.org/core/tag/7-1/),
[dev-notes ( 654 )](https://make.wordpress.org/core/tag/dev-notes/), [dev-notes-7-1 ( 28 )](https://make.wordpress.org/core/tag/dev-notes-7-1/),
media, [media library ( 4 )](https://make.wordpress.org/core/tag/media-library/),
[media-grid ( 2 )](https://make.wordpress.org/core/tag/media-grid/)   

# 󠀁[Media Library infinite scrolling is now enabled by default, with a per-user opt-out](https://make.wordpress.org/core/2026/07/23/media-library-infinite-scrolling-is-now-enabled-by-default-with-a-per-user-opt-out/)󠁿

## **Background**

The grid view of the Media Library (including the Media Modal) has supported infinite
scrolling for a long time, where attachments load automatically as you scroll instead
of behind a **Load more** button. That behavior was controlled by the [`media_library_infinite_scrolling`](https://developer.wordpress.org/reference/hooks/media_library_infinite_scrolling/)
filterFilter Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output., which **defaulted to** `false` since [WordPress 5.8](https://make.wordpress.org/core/2021/07/03/wordpress-5-8-field-guide/)
due to accessibilityAccessibility Accessibility (commonly shortened to a11y) refers
to the design of products, devices, services, or environments for people with disabilities.
The concept of accessible design ensures both “direct access” (i.e. unassisted) 
and “indirect access” meaning compatibility with a person’s assistive technology(
for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility),
performance, and usability concerns ([#50105](https://core.trac.wordpress.org/ticket/50105)/
[r50829](https://core.trac.wordpress.org/changeset/50829) / [#40330](https://core.trac.wordpress.org/ticket/40330)).
As a result, infinite scrolling was effectively off for everyone unless a pluginPlugin
A plugin is a piece of software containing a group of functions that can be added
to a WordPress website. They can extend functionality or add new features to your
WordPress websites. WordPress plugins are written in the PHP programming language
and integrate seamlessly with WordPress. These can be free in the WordPress.org 
Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. or theme opted in via the filter.

The **Load more** button has long been a friction point for users managing large
media libraries, and the smoother infinite-scroll experience was hidden behind code
that most sites never enabled.

## **What changed**

In WordPress 7.1 ([#65564](https://core.trac.wordpress.org/ticket/65564)):

 1. **Infinite scrolling is now enabled by default.** The `media_library_infinite_scrolling`
    filter now defaults to `true`, so the grid view auto-loads attachments on scroll
    out of the box. This applies to both the Grid view of the Media Library, and the
    Media Modal.
 2. **Users can opt out individually.** A new **Infinite Scrolling** personal option
    appears on the profile screen (**Users > Profile**), with a checkbox labeled _“
    Disable infinite scrolling in the Media Library grid view”_ (unchecked by default).
    The option is only shown to users who have the `upload_files` capabilitycapability
    A **capability** is permission to perform one or more types of task. Checking if
    a user has a capability is performed by the `current_user_can` function. Each user
    of a WordPress site might have some permissions but not others, depending on their
    role. For example, users who have the Author role usually have permission to edit
    their own posts (the “edit_posts” capability), but not permission to edit other
    users’ posts (the “edit_others_posts” capability)., since the attachment grid is
    unreachable without it.

## **Precedence**

The effective setting is resolved in this order, from highest priority to lowest:

 1. **The** `media_library_infinite_scrolling` **filter**: a hooked filter callback
    always wins.
 2. **The user’s opt-out preference**: applies when no filter is hooked.
 3. **The default (**`true`**)**: applies when neither of the above is set.

In other words: **filter > user preference > default**.

## **Developer-facing details**

### **The filter’s default changed**

If your plugin or theme relies on the previous behavior (infinite scrolling off 
unless explicitly enabled), be aware that the default is now `true`. To force the
previous behavior for all users regardless of their preference, you can use the 
filter, as it takes precedence over everything:

    ```notranslate
    // Force infinite scrolling OFF for all users (restores to the behavior that was default between 5.8 and 7.1).

    add_filter( 'media_library_infinite_scrolling', '__return_false' );

    // Force infinite scrolling ON for all users, ignoring per-user opt-out.

    add_filter( 'media_library_infinite_scrolling', '__return_true' );
    ```

Because the filter runs _after_ the per-user preference is read, adding a callback
overrides any individual user’s choice.

### **The new user option**

The preference is stored as a user option under the metaMeta Meta is a term that
refers to the inside workings of a group. For us, this is the team that works on
internal WordPress sites like WordCamp Central and Make WordPress. key `infinite_scrolling`,
as the string `'true'` or `'false'`, consistent with how existing options such as`
syntax_highlighting` and `rich_editing` are persisted. It is also wired consistently
through the profile form (`user-edit.php`), the save handler (`edit_user()`), and
persistence in `wp_insert_user()` and `_get_additional_user_keys()`.

You can read a user’s preference programmatically:

    ```notranslate
    // The user setting is 'false' if the user has disabled infinite scrolling, 'true' (or empty) otherwise.

    $infinite_scrolling_disabled = 'false' === get_user_option( 'infinite_scrolling', $user_id );
    ```

Note the direction of the stored value: `'false'` means the user has **disabled**
infinite scrolling. `wp_enqueue_media()` reads this option to determine the pre-
filter default.

## **Backwards compatibility**

 * The `media_library_infinite_scrolling` filter is unchanged in signature; only
   its default value changed (from `false` to `true`). Existing callbacks continue
   to work exactly as before and still take precedence.
 * Sites that had already opted in via `__return_true` see no change.
 * Sites that never touched the filter now get infinite scrolling by default; users
   who prefer the **Load more** button can opt out from their profile.

---

_Props to [@youknowriad](https://profiles.wordpress.org/youknowriad/), [@khokansardar](https://profiles.wordpress.org/khokansardar/),_
[@wildworks](https://profiles.wordpress.org/wildworks/), [@davidbaumwald](https://profiles.wordpress.org/davidbaumwald/),
[@joedolson](https://profiles.wordpress.org/joedolson/), [@sabernhardt](https://profiles.wordpress.org/sabernhardt/)_
for reviewing._

[#7-1](https://make.wordpress.org/core/tag/7-1/), [#dev-notes](https://make.wordpress.org/core/tag/dev-notes/),
[#dev-notes-7-1](https://make.wordpress.org/core/tag/dev-notes-7-1/), [#media](https://make.wordpress.org/core/tag/media/),
[#media-library](https://make.wordpress.org/core/tag/media-library/), [#media-grid](https://make.wordpress.org/core/tag/media-grid/)

 * [Login to Reply](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fmake.wordpress.org%2Fcore%2F2026%2F07%2F23%2Fmedia-library-infinite-scrolling-is-now-enabled-by-default-with-a-per-user-opt-out%2F%23respond&locale=en_US)

 [  ](https://profiles.wordpress.org/adamsilverstein/) [Adam Silverstein](https://profiles.wordpress.org/adamsilverstein/)
8:16 am _on_ June 4, 2026     
Tags: [call for testing ( 7 )](https://make.wordpress.org/core/tag/call-for-testing/),
media   

# 󠀁[Call for Testing: client-side media processing](https://make.wordpress.org/core/2026/06/04/call-for-testing-client-side-media-processing/)󠁿

Client-side media processing is a progressive enhancementenhancement Enhancements
are simple improvements to WordPress, such as the addition of a hook, a new feature,
or an improvement to an existing feature. to WordPress’s existing server-based media
pipeline. When a user uploads an image in the blockBlock Block is the abstract term
used to describe units of markup that, composed together, form the content or layout
of a webpage using the WordPress editor. The idea combines concepts of what in the
past may have achieved with shortcodes, custom HTML, and embed discovery into a 
single consistent API and user experience. editor, their browser decodes, resizes,
and encodes all sub-sizes locally using the VIPS image processing library running
in WebAssembly (via[ wasm-vips](https://github.com/kleisauke/wasm-vips)) before 
sending them to the server. Browsers that can’t handle the work silently fall back
to the existing server-side path without user-visible errors.

The advantage of this approach is that we can provide a uniform, modern image processing
experience across all WordPress sites without relying on server-side capabilitiescapability
A **capability** is permission to perform one or more types of task. Checking if
a user has a capability is performed by the `current_user_can` function. Each user
of a WordPress site might have some permissions but not others, depending on their
role. For example, users who have the Author role usually have permission to edit
their own posts (the “edit_posts” capability), but not permission to edit other 
users’ posts (the “edit_others_posts” capability).. The client-side pipeline supports
modern formats (AVIF, WebP, HEIC, UltraHDR, JPEG XL), offering better compression,
and more consistent resizing quality regardless of hosting environment. It also 
_reduces CPU and memory load on the server during image uploads_ by offloading the
work to capable devices.

The feature graduated from a GutenbergGutenberg The Gutenberg project is the new
Editor Interface for WordPress. The editor improves the process and experience of
creating new content, making writing rich content much simpler. It uses ‘blocks’
to add richness rather than shortcodes, custom HTML etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
experiment to a coreCore Core is the set of software required to run WordPress. 
The Core Development Team builds WordPress. Gutenberg feature during the 7.0 cycle
and is now targeting **WordPress 7.1** as a core capabilitycapability A **capability**
is permission to perform one or more types of task. Checking if a user has a capability
is performed by the `current_user_can` function. Each user of a WordPress site might
have some permissions but not others, depending on their role. For example, users
who have the Author role usually have permission to edit their own posts (the “edit_posts”
capability), but not permission to edit other users’ posts (the “edit_others_posts”
capability)..

With 7.1 on the horizon, the feature could use testing to help us shake out bugs,
validate performance on real content and devices, and stress-test the new capabilities.

### **Tracking issues:**

[#76756 — Client Side Media iteration for WordPress 7.1](https://github.com/WordPress/gutenberg/issues/76756)

[#74333 — Client Side Media iteration for WordPress 7.0](https://github.com/WordPress/gutenberg/issues/74333)(
previous cycle, closed)

## **What’s included in this round of testing**

The 7.1 iteration tracked in [#76756](https://github.com/WordPress/gutenberg/issues/76756)
builds on the 7.0 groundwork and adds several new capabilities. Highlights include
improved format support, error handling and upload resilience.

### A note on bundle size

Download weight and the lack of new capabilities was the biggest piece of feedback
during the 7.0 cycle, so it has been a focus this iteration. Client-side processing
now _exceeds_ the format and quality capabilities of the best server-side setups,
while loading less ahead of time than the 7.0 prototype

 * **Nothing heavy loads up front.** The WebAssembly image pipeline (wasm-vips and
   friends) is fetched on demand the first time a user uploads media – it is _not_
   part of the editor’s initial bundle.
 * **New capabilities** UltraHDR, HEIC and JPEGXL support, as well as the new GIF
   →video conversion feature, are all new capabilities and added minimal weight.

## **How to test**

Please run through as many of the scenarios below as your environment allows, and
report anything that looks wrong — slow, broken, unexpectedly falling back to server-
side, visibly lower quality, etc. Test with the latest Gutenberg pluginPlugin A 
plugin is a piece of software containing a group of functions that can be added 
to a WordPress website. They can extend functionality or add new features to your
WordPress websites. WordPress plugins are written in the PHP programming language
and integrate seamlessly with WordPress. These can be free in the WordPress.org 
Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. and in a chromium browser for the
feature to be active.

### System and Browser Requirements

 * **Non-Chromium browsers**: Disabled by default because Firefox and Safari don’t
   support `Document-Isolation-Policy`. The HEIC canvas fallback still runs in Safari.
 * **Low-memory devices**: Devices reporting 2 GB of RAM or less are excluded.
 * **2g / slow-2g / Browsers sending the [Save-Data header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Save-Data)**:
   Excluded because of the large worker download and increased upload bandwidth.
 * **CSP restrictions**: Sites with `worker-src` directives that don’t allow `blob:`
   fall back to server-side.

You can verify that the feature is active by checking `window.__clientSideMediaProcessing`
in the browser console (should be `true`), or by looking for networknetwork (versus
site, blog) requests to the sideload endpoint. You can also use [this mini plugin](https://gist.github.com/adamsilverstein/3f5d2a38916198573f543fc6ce643764)
to check the upload processing type (client or server) – it shows a label on the
front end and adds a column to the Media library list view.

### **1. Baseline upload flow**

 * Upload a handful of JPEGs, WebPs, HEICs, AVIFs, GIFs and PNGs (mix of sizes: 
   ~500 KB, ~5 MB, and a >20 MB original) in the editor.
 * Confirm the Image block renders the uploaded image.
 * Verify all expected sub-sizes exist on disk.
 * Compare file sizes and visual quality to the same image uploaded using the media
   library (which uses server processing).
 * Test uploading avif, webp, heic, png (with various transparency and bit depths),
   and jpg files and confirm they are processed correctly.

### **2. HEIC (iPhone photos)**

 * Upload a `.heic` image from an iPhone. Use your computer to do the upload (the
   iPhone’s uploader will automatically convert to JPEG before upload, so you won’t
   be testing the client-side features if you upload directly from the phone).
 * Confirm it is transcoded to a web format (JPEG/WebP/AVIF depending on your settings)
   and that sub-sizes are generated.
 * Confirm the original HEIC is also uploaded and preserved.
 * Confirm Portrait and Landscape HEICs work correctly.
 * Try a browser that lacks native HEIC decoding to verify the canvas fallback –
   see [#76731](https://github.com/WordPress/gutenberg/pull/76731) for browser support
   details.

### **3. Modern output formats (AVIF / WebP)**

 * use the `image_editor_output_format` filterFilter Filters are one of the two 
   types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
   They provide a way for functions to modify data of other functions. They are 
   the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
   manner, and should never have side effects such as affecting global variables
   and output. to output different formats from jpeg uploads.
 * test uploading avif, webp, heic, png (with various transparency and bit depths),
   and jpg files and confirm they are processed correctly according to the configured
   output format.
 * Upload a large JPEG and confirm sub-sizes are emitted in the configured format,
   including the `-scaled` variant.

### **4. Ultra HDR**

 * Testable in [#74873](https://github.com/WordPress/gutenberg/pull/74873)
 * Upload an Ultra HDR image (you can capture one on a recent Pixel or iPhone, or
   download samples from [gainmap-js demos](https://github.com/MONOGRID/gainmap-js)).
 * Confirm the gain map is preserved through resizing and that sub-sizes still render
   as HDR on a capable display/browser.

### **5. JPEG XL (JXL)**

 * Testable in [#77584](https://github.com/WordPress/gutenberg/pull/77584).
 * Upload a `.jxl` image ([sample gallery](https://jpegxl.info/resources/gallery/)).
 * Confirm it is accepted and processed. Report any unexpected behavior.

### **6. Animated GIF → video**

 * Ready to test once [#76946](https://github.com/WordPress/gutenberg/pull/76946)
   merges
 * Upload a large animated GIF.
 * Confirm it is converted to an MP4 or WebM (depending on implementation), and 
   that the resulting block plays correctly in the editor and on the front end.

### **7. Batch and concurrent uploads**

 * Drag-and-drop 10–20 images at once into the Image block or Media Library.
 * Watch for progress UIUI User interface, confirm all uploads complete, and check
   timing against a baseline where client-side is disabled.

### **8. Resilience**

 * Test in [#76765](https://github.com/WordPress/gutenberg/pull/76765).
 * Use browser dev-tools to simulate a slow/flaky network during a batch upload 
   and confirm retry behavior.
 * Try to save a post mid-upload and confirm the editor prevents or defers the save
   [#76973](https://github.com/WordPress/gutenberg/pull/76973).
 * Upload something, then refresh mid-upload — confirm the editor recovers cleanly.

### **9. Fallback paths**

 * Test in a browser that does **not** meet capability requirements (Safari, Firefox)
 * Confirm the upload succeeds via the server-side path without user-visible errors.
   The only signal should be a developer-console message.

### **10. Extensibility**

 * If you maintain a media-related plugin (image optimizers, DAM integrations, custom
   workflows), try it against a site with client-side media enabled.
 * Exercise the new filters/actions from [#74913](https://github.com/WordPress/gutenberg/pull/74913)
   and report any gaps.
 * Test disabling Client-side media.

### **11. Low-powered devices**

 * Test on a low-end laptop, older Chromebook, or mid-range phone.
 * Confirm that the capability detection correctly gates the feature off when the
   device is underpowered and that processing does not lock up the browser.

## Questions & bugs

Please report bugs by opening issues on the Gutenberg repo tagged with `[Feature:
Client Side Media]`. Or, leave questions or comments on [the tracking issue](https://github.com/WordPress/gutenberg/issues/76756).

## **Thank you**

Client-side media is a substantial shift in how WordPress handles images, and it
only ships well with real-world testing across the full diversity of WordPress sites,
browsers, and devices. Every report helps!

## **Props**

Thanks to [@jorbin](https://profiles.wordpress.org/jorbin/) and [@ozgursar](https://profiles.wordpress.org/ozgursar/)
for reviewing this post!

[#call-for-testing](https://make.wordpress.org/core/tag/call-for-testing/), [#media](https://make.wordpress.org/core/tag/media/)

 [  ](https://profiles.wordpress.org/ramonopoly/) [ramonopoly](https://profiles.wordpress.org/ramonopoly/)
11:57 pm _on_ May 21, 2026     
Tags: [core-editor ( 764 )](https://make.wordpress.org/core/tag/core-editor/),
[gutenberg ( 555 )](https://make.wordpress.org/core/tag/gutenberg/), media, [media modal ( 4 )](https://make.wordpress.org/core/tag/media-modal/)

# 󠀁[Media Editor Modal: call for testing](https://make.wordpress.org/core/2026/05/21/media-editor-modal-call-for-testing/)󠁿

The addition of a free-form image cropper in the BlockBlock Block is the abstract
term used to describe units of markup that, composed together, form the content 
or layout of a webpage using the WordPress editor. The idea combines concepts of
what in the past may have achieved with shortcodes, custom HTML, and embed discovery
into a single consistent API and user experience. Editor has been a [long-standing feature request](https://github.com/WordPress/gutenberg/issues/22582).
A GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress.
The editor improves the process and experience of creating new content, making writing
rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes,
custom HTML etc. [https://wordpress.org/gutenberg/](https://wordpress.org/gutenberg/)
experiment that integrates this and other image editing features in a [“Media Editor](https://github.com/WordPress/gutenberg/issues/73771)
[Modal”](https://github.com/WordPress/gutenberg/issues/73771) is ready for testing
and feedback.

## What is it?

The Media Editor Modal replaces the existing inline cropping tool in the Block Editor.
The modal pattern keeps the familiar Crop button entry point, and brings freeform
and aspect-ratio cropping, flip, fine-grained and snap rotation, and metadata editing
into one dedicated workflow.

Under the hood, the modal consumes a coreCore Core is the set of software required
to run WordPress. The Core Development Team builds WordPress. collection custom 
tools and components that will eventually live in a WordPress package. This will
remove the reliance on third-party cropping libraries.

## Why the change?

Image cropping in the Block Editor hasn’t changed much since its [introduction](https://github.com/WordPress/gutenberg/pull/21024).
The existing inline image cropper is built on top of the [react-easy-crop](https://github.com/ValentinH/react-easy-crop)
library. This implementation has a couple of constraints:

 * it’s limited by what’s achievable in the editor canvas and block toolbar, and
 * the library itself has a narrow set of features.

Why build our own library? Well-maintained, open sourceOpen Source Open Source denotes
software for which the original source code is made freely available and may be 
redistributed and modified. Open Source **must be** delivered via a licensing model,
see GPL. alternatives that do most of what users expect are few and far between.
Furthermore, there’s a general preference for a WordPress-native surface that:

 * has all the features we want “out of the box” such as aspect ratios, freeform
   cropping handles, intuitive zooming, flip and rotation,
 * includes all the usability features we’d expect such as touch and keyboard support,
   and
 * is extensibleExtensible This is the ability to add additional functionality to
   the code. Plugins extend the WordPress core software. in ways idiomatic to the
   WordPress ecosystem.

There was an attempt to build a custom, [editor-first cropper component](https://github.com/WordPress/gutenberg/pull/63335),
but it was abandoned. Rather than developing separate, one-off flows across blocks,
the Media Editor Modal aims to provide a consistent foundation for both a [new Media Library experience](https://github.com/WordPress/gutenberg/issues/55238)
and various [editor contexts](https://github.com/WordPress/gutenberg/issues/72734),
and also serve as platform for building more sophisticated experiences later.

## How to test

~If you’re familiar with the [Gutenberg plugin](https://github.com/WordPress/gutenberg)
development environment, you can check out trunktrunk A directory in Subversion 
containing the latest development code in preparation for the next major release
cycle. If you are running "trunk", then you are on the latest revision. right now
and enable the Media Modal experiment from the experiments page at `/wp-admin/admin.
php?page=experiments-wp-admin`~

**Update**: [#78653](https://github.com/WordPress/gutenberg/pull/78653) merged, 
which makes the modal the default experience. No requirement to enable any experiment.

The quickest way to test is via Playground. Here’s a link that loads up Playground
with Gutenberg Trunk and the Media Editor Modal active:

[Test the Media Editor Modal in Playground](https://playground.wordpress.net/?gutenberg-branch=trunk#ewoJIiRzY2hlbWEiOiAiaHR0cHM6Ly9wbGF5Z3JvdW5kLndvcmRwcmVzcy5uZXQvYmx1ZXByaW50LXNjaGVtYS5qc29uIiwKCSJwbHVnaW5zIjogW10sCgkic3RlcHMiOiBbCgkJewoJCQkic3RlcCI6ICJta2RpciIsCgkJCSJwYXRoIjogIi90bXAvZ3V0ZW5iZXJnIgoJCX0sCgkJewoJCQkic3RlcCI6ICJ3cml0ZUZpbGUiLAoJCQkicGF0aCI6ICIvdG1wL2d1dGVuYmVyZy9hcnRpZmFjdC56aXAiLAoJCQkiZGF0YSI6IHsKCQkJCSJyZXNvdXJjZSI6ICJ1cmwiLAoJCQkJInVybCI6ICIvcGx1Z2luLXByb3h5LnBocD9vcmc9V29yZFByZXNzJnJlcG89Z3V0ZW5iZXJnJndvcmtmbG93PUJ1aWxkJTIwR3V0ZW5iZXJnJTIwUGx1Z2luJTIwWmlwJmFydGlmYWN0PWd1dGVuYmVyZy1wbHVnaW4mYnJhbmNoPXRydW5rIiwKCQkJCSJjYXB0aW9uIjogIkRvd25sb2FkaW5nIEd1dGVuYmVyZyBicmFuY2ggdHJ1bmsiCgkJCX0KCQl9LAoJCXsKCQkJInN0ZXAiOiAidW56aXAiLAoJCQkiemlwUGF0aCI6ICIvdG1wL2d1dGVuYmVyZy9hcnRpZmFjdC56aXAiLAoJCQkiZXh0cmFjdFRvUGF0aCI6ICIvdG1wL2d1dGVuYmVyZyIKCQl9LAoJCXsKCQkJInN0ZXAiOiAiaW5zdGFsbFBsdWdpbiIsCgkJCSJwbHVnaW5EYXRhIjogewoJCQkJInJlc291cmNlIjogInZmcyIsCgkJCQkicGF0aCI6ICIvdG1wL2d1dGVuYmVyZy9ndXRlbmJlcmcuemlwIgoJCQl9CgkJfSwKCQl7CgkJCSJzdGVwIjogIndyaXRlRmlsZSIsCgkJCSJwYXRoIjogIi90bXAvd2MtY2hpY2xhbmEtMjAxNy1zd2FnLmpwZWciLAoJCQkiZGF0YSI6IHsKCQkJCSJyZXNvdXJjZSI6ICJ1cmwiLAoJCQkJInVybCI6ICJodHRwczovL3BkLncub3JnLzIwMjEvMTIvODc4NjFiMWNiNWJkNjVlMTUuNjczMjkxMDcuanBlZyIKCQkJfQoJCX0sCgkJewoJCQkic3RlcCI6ICJydW5QSFAiLAoJCQkiY29kZSI6ICI8P3BocFxucmVxdWlyZSAnL3dvcmRwcmVzcy93cC1sb2FkLnBocCc7XG5yZXF1aXJlX29uY2UgQUJTUEFUSCAuICd3cC1hZG1pbi9pbmNsdWRlcy9maWxlLnBocCc7XG5yZXF1aXJlX29uY2UgQUJTUEFUSCAuICd3cC1hZG1pbi9pbmNsdWRlcy9tZWRpYS5waHAnO1xucmVxdWlyZV9vbmNlIEFCU1BBVEggLiAnd3AtYWRtaW4vaW5jbHVkZXMvaW1hZ2UucGhwJztcblxuJGV4cGVyaW1lbnRzID0gKGFycmF5KSBnZXRfb3B0aW9uKCAnZ3V0ZW5iZXJnLWV4cGVyaW1lbnRzJywgYXJyYXkoKSApO1xuJGV4cGVyaW1lbnRzWydndXRlbmJlcmctbWVkaWEtZWRpdG9yLW1vZGFsJ10gPSB0cnVlO1xudXBkYXRlX29wdGlvbiggJ2d1dGVuYmVyZy1leHBlcmltZW50cycsICRleHBlcmltZW50cyApO1xuXG4kaW1hZ2VfcGF0aCA9ICcvdG1wL3djLWNoaWNsYW5hLTIwMTctc3dhZy5qcGVnJztcbiRhbHQgPSAnQ0MwIGxpY2Vuc2VkIHBob3RvIGJ5IFBhYmxvIE1vcmF0aW5vcyBmcm9tIHRoZSBXb3JkUHJlc3MgUGhvdG8gRGlyZWN0b3J5OiBodHRwczovL3dvcmRwcmVzcy5vcmcvcGhvdG9zL3Bob3RvLzg3ODYxYjFjYjUnO1xuXG4kYXR0YWNobWVudF9pZCA9IG1lZGlhX2hhbmRsZV9zaWRlbG9hZChcblx0YXJyYXkoXG5cdFx0J25hbWUnID0+ICd3Yy1jaGljbGFuYS0yMDE3LXN3YWcuanBlZycsXG5cdFx0J3RtcF9uYW1lJyA9PiAkaW1hZ2VfcGF0aCxcblx0KSxcblx0MCxcblx0J01lZGlhIEVkaXRvciBNb2RhbCdcbik7XG5cbmlmICggaXNfd3BfZXJyb3IoICRhdHRhY2htZW50X2lkICkgKSB7XG5cdHRocm93IG5ldyBFeGNlcHRpb24oICRhdHRhY2htZW50X2lkLT5nZXRfZXJyb3JfbWVzc2FnZSgpICk7XG59XG5cbnVwZGF0ZV9wb3N0X21ldGEoICRhdHRhY2htZW50X2lkLCAnX3dwX2F0dGFjaG1lbnRfaW1hZ2VfYWx0JywgJGFsdCApO1xuXG4kaW1hZ2Vfc3JjID0gd3BfZ2V0X2F0dGFjaG1lbnRfaW1hZ2Vfc3JjKCAkYXR0YWNobWVudF9pZCwgJ2xhcmdlJyApO1xuJGltYWdlX3VybCA9ICRpbWFnZV9zcmMgPyAkaW1hZ2Vfc3JjWzBdIDogd3BfZ2V0X2F0dGFjaG1lbnRfdXJsKCAkYXR0YWNobWVudF9pZCApO1xuXG4kcG9zdF9pZCA9IDEyMzQ7XG4kcG9zdF9jb250ZW50ID0gc3ByaW50Zihcblx0JzwhLS0gd3A6cGFyYWdyYXBoIC0tPjxwPkNsaWNrIG9uIHRoZSBpbWFnZSBibG9jayBhbmQgdGhlbiBvbiB0aGUgY3JvcCBpY29uIGluIHRoZSBibG9jayB0b29sYmFyIHRvIG9wZW4gdGhlIG1vZGFsLjwvcD48IS0tIC93cDpwYXJhZ3JhcGggLS0+PCEtLSB3cDppbWFnZSB7XCJpZFwiOiUxJGQsXCJzaXplU2x1Z1wiOlwibGFyZ2VcIixcImxpbmtEZXN0aW5hdGlvblwiOlwibm9uZVwifSAtLT48ZmlndXJlIGNsYXNzPVwid3AtYmxvY2staW1hZ2Ugc2l6ZS1sYXJnZVwiPjxpbWcgc3JjPVwiJTIkc1wiIGFsdD1cIiUzJHNcIiBjbGFzcz1cIndwLWltYWdlLSUxJGRcIi8+PC9maWd1cmU+PCEtLSAvd3A6aW1hZ2UgLS0+Jyxcblx0JGF0dGFjaG1lbnRfaWQsXG5cdGVzY191cmwoICRpbWFnZV91cmwgKSxcblx0ZXNjX2F0dHIoICRhbHQgKVxuKTtcblxud3BfaW5zZXJ0X3Bvc3QoXG5cdGFycmF5KFxuXHRcdCdpbXBvcnRfaWQnID0+ICRwb3N0X2lkLFxuXHRcdCdwb3N0X3RpdGxlJyA9PiAnTWVkaWEgRWRpdG9yIE1vZGFsJyxcblx0XHQncG9zdF9zdGF0dXMnID0+ICdwdWJsaXNoJyxcblx0XHQncG9zdF9hdXRob3InID0+IDEsXG5cdFx0J3Bvc3RfY29udGVudCcgPT4gJHBvc3RfY29udGVudCxcblx0KSxcblx0dHJ1ZVxuKTtcbiIKCQl9CgldLAoJInByZWZlcnJlZFZlcnNpb25zIjogewoJCSJwaHAiOiAiOC4zIiwKCQkid3AiOiAibGF0ZXN0IgoJfSwKCSJmZWF0dXJlcyI6IHt9LAoJImxhbmRpbmdQYWdlIjogIi93cC1hZG1pbi9wb3N0LnBocD9wb3N0PTEyMzQmYWN0aW9uPWVkaXQiLAoJImxvZ2luIjogdHJ1ZQp9)

### Suggested testing flows

The steps are provided just in case you need structure. Don’t feel any need to follow
any or all of them._ _

_The important question is whether the modal is solid enough as a replacement for
the Image block crop flow, and whether you notice any bugs, UXUX User experience
gaps or unexpected behaviors._

#### Basic crop flow

 1. Open the modal from an Image block.
 2. Resize the crop area.
 3. Pan and zoom the image.
 4. Rotate or flip the image.
 5. Save.
 6. Confirm the block updates to use the edited image.

#### Details editing

 1. In a saved post with a title, upload or insert an image.
 2. Open the modal from the Image block.
 3. Switch to the **Details** tab.
 4. Confirm Author and Attached to fields are populated with your author handle and
    the current post’s title.
 5. Update alt text and caption.
 6. Save.
 7. Confirm the media item updates.
 8. Confirm the Image block updates when its existing alt/caption values were empty
    or matched the original media values.

#### Existing custom block values

 1. Add an Image block.
 2. Manually enter custom alt text or a custom caption in the block.
 3. Open the media editor modal.
 4. Change the attachment’s alt text or caption.
 5. Save.
 6. Confirm custom block-level values are not unexpectedly overwritten.

#### Keyboard

 1. Open the modal.
 2. Use Tab to move through the crop area, crop handles, toolbar controls, sidebarSidebar
    A sidebar in WordPress is referred to a widget-ready area used by WordPress themes
    to display information that is not a part of the main content. It is not always
    a vertical column on the side. It can be a horizontal rectangle below or above 
    the content area, footer, header, or any where in the theme. controls, Save, Cancel,
    and Close.
 3. Use arrow keys to move or resize the crop area.
 4. Confirm focus is visible and does not get lost.
 5. Try undo/redo with keyboard shortcuts.
 6. Confirm Escape behaves as expected when there are unsaved changes.

#### **Touch gesture**s

 1. On a touch device, open the modal from an Image block.
 2. Test drag panning, pinch zoom, and crop area handle dragging for responsiveness
    and smoothness.
 3. Ensure toolbar actions like rotate, flip, undo, redo, and reset are tappable.

## Sharing your feedback

Comments on this post are a great way to share feedback, but if you’d like to jump
into Gutenberg feel free to leave feedback on [this tracking issue](https://github.com/WordPress/gutenberg/issues/73771)
as it’s the main one covering current tasks for the experimental modal. We’d love
to know for example:

 * Did the modal open where you expected it to?
 * Was cropping understandable without extra instruction?
 * Did anything feel slower, confusing, or broken?
 * Did the image tools, including Save and Cancel behave as you’d expect?

## Out of scope

The goal is to make the basic crop/edit workflow solid first, not to ship every 
image editing feature. Some related work is still being explored separately, for
example:

 * Manual pixel crop controls.
 * Restoring original image.
 * Improving undo/redo history states.
 * Broader image editor extensibility for image filterFilter Filters are one of 
   the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
   They provide a way for functions to modify data of other functions. They are 
   the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
   manner, and should never have side effects such as affecting global variables
   and output. and/or AI integration options.

Thank you for making it this far, and thanks in advance for testing.

Props to [@andrewserong](https://profiles.wordpress.org/andrewserong/) and [@isabel_brison](https://profiles.wordpress.org/isabel_brison/)
for helping to write this post.

[#core-editor](https://make.wordpress.org/core/tag/core-editor/), [#gutenberg](https://make.wordpress.org/core/tag/gutenberg/),
[#media](https://make.wordpress.org/core/tag/media/), [#media-modal](https://make.wordpress.org/core/tag/media-modal/)

 [  ](https://profiles.wordpress.org/antpb/) [Anthony Burchell](https://profiles.wordpress.org/antpb/)
4:51 pm _on_ January 17, 2024     
Tags: [agenda ( 1,154 )](https://make.wordpress.org/core/tag/agenda/),
media, [media library ( 4 )](https://make.wordpress.org/core/tag/media-library/),
[meeting ( 405 )](https://make.wordpress.org/core/tag/meeting/), [phase 3 ( 18 )](https://make.wordpress.org/core/tag/phase-3/)

# 󠀁[Phase 3 Media Meeting: February 7, 2024](https://make.wordpress.org/core/2024/01/17/media-phase-3-meeting-feb-7/)󠁿

**Date and time:** [February 7, 2024 at 24:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20240208T0000)
**
Location:** [#core-media](http://wordpress.slack.com/messages/core-media/)**Duration:**
1:00 hr

The Media Component team is coordinating a meeting with the Editor team and other
interested stakeholders to work on planning for the proposed Phase 3 Media Library.
There are a few issues already open about the Media Library proposal, but this major
development depends on close coordination between the Media and Editor teams to 
work effectively together.

In a recent Media Component meeting it was suggested that there should be a dedicated
meeting time to kick off a round table discussion about some of the opportunities
and challenges ahead in the development of Phase 3. The Media Component Maintainers
hope to find areas of focus where contributors can lean in to align efforts with
folks working on Phase 3.

In previous meetings the team has gone through the backlog of over 600 issues and
categorized tickets as `phase-3-media-triage` for discussion around how Phase 3 
could potentially solve these tickets alongside a rebuild of the Media Library. 
Some of these tickets are an opportunity to change lower level issues like db structure,
but the redesign is a good time to address these possibilities.

## Relevant Pull Requests, Issues, and Posts:

[Phase 3: Collaboration > Media Library](https://github.com/WordPress/gutenberg/issues/55238)

[PR Dataview: media view](https://github.com/WordPress/gutenberg/pull/56237)

> [Media Library](https://make.wordpress.org/core/2023/07/07/media-library/)

## Proposed meeting agenda:

 1. Introductions
 2. Brief presentation on the goals and vision of Phase 3 redesign for the Media Library
 3. Discussion on alignment of CoreCore Core is the set of software required to run
    WordPress. The Core Development Team builds WordPress. Media focus to help the 
    process
 4. Agree on communication channels and checkpoints for regular updates
 5. Review of [Phase-3-Triage Tickets](https://core.trac.wordpress.org/query?status=accepted&status=assigned&status=new&status=reopened&status=reviewing&keywords=~phase-3-media-triage&col=id&col=summary&col=status&col=owner&col=type&col=priority&col=milestone&order=priority)

A more detailed agenda will be published prior to the meeting.

If you would like to join this meeting please join the [#core-media](http://wordpress.slack.com/messages/core-media/)__
channel [February 7, 2024 at 24:00 UTC](https://www.timeanddate.com/worldclock/fixedtime.html?iso=20240208T0000).
This time seems to align with most of the world as a decent hour to meet for stakeholders
and folks active in Media.

---

_This meeting happens in the _[#core-media](http://wordpress.slack.com/messages/core-media/)_
channel. To join the meeting, you’ll need an account on the [Make WordPress Slack](https://make.wordpress.org/chat/)_._
Props [@joedolson](https://profiles.wordpress.org/joedolson/) for helping prepare
and proofread this post._

[#agenda](https://make.wordpress.org/core/tag/agenda/), [#media](https://make.wordpress.org/core/tag/media/),
[#media-library](https://make.wordpress.org/core/tag/media-library/), [#meeting](https://make.wordpress.org/core/tag/meeting/),
[#phase-3](https://make.wordpress.org/core/tag/phase-3/)

 [  ](https://profiles.wordpress.org/flixos90/) [Felix Arntz](https://profiles.wordpress.org/flixos90/)
2:35 pm _on_ May 2, 2023     
Tags: fetchpriority, [images ( 10 )](https://make.wordpress.org/core/tag/images/),
media, [performance ( 420 )](https://make.wordpress.org/core/tag/performance/), 
[performance-lab ( 6 )](https://make.wordpress.org/core/tag/performance-lab/)   

# 󠀁[Proposal for enhancing LCP image performance with the fetchpriority attribute in WordPress core](https://make.wordpress.org/core/2023/05/02/proposal-for-enhancing-lcp-image-performance-with-fetchpriority/)󠁿

This post proposes adding the `fetchpriority=”high”` attribute to [LCP](https://web.dev/lcp/)
images in WordPress coreCore Core is the set of software required to run WordPress.
The Core Development Team builds WordPress. to enhance LCP performance. The proposal
was created as a collaboration between members of the Core Performance Team.

## **Context**

The `fetchpriority` attribute is a [standard HTML attribute](https://html.spec.whatwg.org/multipage/urls-and-fetching.html#fetch-priority-attributes)
that can be used to indicate to the browser that a given resource should have a 
particular priority for when it should be considered for loading. Most commonly,
using the attribute is recommended with a value of “high”, only on the most important
image on a page.

It is a performance best practice to provide `fetchpriority=”high”` on the single
image that is the “Largest Contentful Paint element” in the HTMLHTML HyperText Markup
Language. The semantic scripting language primarily used for outputting content 
in web browsers. markup, to indicate to the browser that this image should be prioritized
over other resources that would compete with it for networknetwork (versus site,
blog) bandwidth.

> [Largest Contentful Paint (LCP)](https://web.dev/lcp/) is one of the three [Core Web Vitals](https://web.dev/vitals/#core-web-vitals)
> metrics, and it represents how quickly the main content of a web page is loaded.
> Specifically, LCP measures the time from when the user initiates loading the page
> until the largest image or text blockBlock Block is the abstract term used to 
> describe units of markup that, composed together, form the content or layout of
> a webpage using the WordPress editor. The idea combines concepts of what in the
> past may have achieved with shortcodes, custom HTML, and embed discovery into 
> a single consistent API and user experience. is rendered within the viewport.
>  Quoted from [this article about optimizing LCP](https://web.dev/optimize-lcp/)

As mentioned above, the Largest Contentful Paint element can take different forms,
it may be an image, text, video, or other resource. However, most commonly the LCP
element on WordPress sites is an image, concretely 42.4% on desktop and 38.2% on
mobile based on [HTTP Archive data from February 2023](https://github.com/GoogleChromeLabs/wpp-research/pull/49).
Of those sites, less than 0.03% have `fetchpriority=”high”` on their LCP image, 
so it is safe to say that introducing support in WordPress core will benefit almost
all of them.

You can learn more about the `fetchpriority` attribute and how it should be used
to optimize image performance in [this article](https://web.dev/priority-hints/#the-fetchpriority-attribute).

## **Proposed solution**

WordPress core already comes with a mechanism to detect which image(s) not to lazy-
load because they are likely in the viewport, which includes the potential LCP image.
Bringing `fetchpriority=”high”` to images in WordPress core should make use of that
existing logic for the `loading` attribute, which was [added in WordPress 5.9](https://make.wordpress.org/core/2021/12/29/enhanced-lazy-loading-performance-in-5-9/).
However, the two attributes should still function independently of each other. Furthermore,
a few additional aspects need to be taken into consideration and implemented as 
additional heuristics that only apply to the `fetchpriority` attribute, but not 
the `loading` attribute.

Initially, the two attributes may seem like they are opposites. An image that should
be lazy-loaded should not have a high priority, and vice-versa. The usage of `fetchpriority
=”high”` however needs to be a bit more nuanced: It should only be loaded on the
single most important image on the page. This is different from `loading=”lazy”`
which should be omitted on any image above the fold — which sometimes may be just
the LCP image, while in other cases it may be multiple images.

In other words, `fetchpriority=”high”` should only ever appear **on a single image**
at most.

### **Scope**

While the `fetchpriority` attribute is available on a few different HTML elements,
the scope of this proposal is only to use the attribute on images, specifically 
to add it to the likely LCP image of a page so that the browser knows to load it
earlier than other resources that may be competing with it.

### **Performance impact**

Based on benchmarks conducted by members of the Core Performance Team, adding `fetchpriority
=”high”` to the LCP image typically improves LCP performance by 5-10%, which is 
a notable win for adding a simple attribute to an image tagtag A directory in Subversion.
WordPress uses tags to store a single snapshot of a version (3.6, 3.6.1, etc.), 
the common convention of tags in version control systems. (Not to be confused with
post tags.). In some instances the enhancements can even be close to 30%, like in
an [example from the aforementioned article](https://web.dev/priority-hints/#increase-the-priority-of-the-lcp-image).

### **Browser compatibility**

While the `fetchpriority` attribute is a relatively new attribute first introduced
in 2022, it was [standardized in February 2023](https://github.com/whatwg/html/pull/8470)
and is supported by all Chromium based browsers, which make up for ~70% of browser
usage [based on ](https://caniuse.com/mdn-html_elements_img_fetchpriority)[caniuse.com](http://caniuse.com).
Support was [recently added in WebKit](https://bugs.webkit.org/show_bug.cgi?id=252739),
and is currently [available in the Safari 167 Tech Preview](https://developer.apple.com/documentation/safari-technology-preview-release-notes/stp-release-167#Web-API).
[Firefox has expressed positive feedback](https://mozilla.github.io/standards-positions/#priority-hints)
on the feature, and a [ticket](https://bugzilla.mozilla.org/show_bug.cgi?id=1797715)
to support it is available. Despite not every major browser supporting the attribute,
it is a progressive enhancementenhancement Enhancements are simple improvements 
to WordPress, such as the addition of a hook, a new feature, or an improvement to
an existing feature., i.e. fully backward compatible: A browser that does not understand
the attribute will ignore it, and its presence won’t cause any adverse effects.

Effectively, this enhancement is only about adding the `fetchpriority=”high”` attribute
to the LCP image, which does not pose any risk of breaking backward compatibility.

### **Default behavior and customization**

Similar to how WordPress core handles omitting the `loading` attribute on specific
images, it should add the `fetchpriority` attribute by default on the LCP image 
based on server-side heuristics. While the exact heuristics are still being defined,
it should be noted that the two attributes will never be used on the same image 
as they should be mutually exclusive.

Developers will be able to customize where the attribute should be used, e.g. when
using the functions [`wp_get_attachment_image()`](https://developer.wordpress.org/reference/functions/wp_get_attachment_image/)
and [`get_the_post_thumbnail()`](https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/),
both of which should receive support for the attribute. The default addition of 
the attribute to in-content images will also be customizable using a new filterFilter
Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output., which will likely be similar to existing image attribute filters like [`wp_img_tag_add_loading_attr`](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_loading_attr/)
or [`wp_img_tag_add_width_and_height_attr`](https://developer.wordpress.org/reference/hooks/wp_img_tag_add_width_and_height_attr/).

## **Alternatives considered**

Alternatively to `fetchpriority=”high”`, images can also be prioritized through 
other means, e.g. a `link[rel=”preload”]` tag in the head, or a `Link` response 
headerHeader The header of your site is typically the first thing people will experience.
The masthead or header art located across the top of your page is part of the look
and feel of your website. It can influence a visitor’s opinion about your content
and you/ your organization’s brand. It may also look different on different screen
sizes.. While those two approaches in principle allow the browser to know about 
loading the image even earlier, in practice there isn’t a notable difference, especially
when using the tag, as at that point the entire HTML will already be loaded.

Either of the alternative approaches would furthermore require WordPress core knowing
about the image in the page load lifecycle before it is even included in the output,
which makes them more complex to implement in a way that is not justifiable given
the little benefits it would bring over using `fetchpriority=”high”` on the actual
image tag.

## **Contributing and testing this enhancement**

An early version of the proposed enhancement can already be tested through the [Performance Lab plugin](https://wordpress.org/plugins/performance-lab/),
by enabling its [Fetchpriority module](https://github.com/WordPress/performance/issues?q=is%3Aissue+label%3A%22%5BModule%5D+fetchpriority%22),
or alternatively through the [Fetchpriority standalone plugin](https://wordpress.org/plugins/fetchpriority/)
which uses the same underlying logic. It should be noted that the implementation
is still being refined with additional heuristics to detect the LCP image, and since
it is part of a pluginPlugin A plugin is a piece of software containing a group 
of functions that can be added to a WordPress website. They can extend functionality
or add new features to your WordPress websites. WordPress plugins are written in
the PHP programming language and integrate seamlessly with WordPress. These can 
be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party. rather than within WordPress core,
the customization options outlined above cannot be part of this early implementation.
It should furthermore be noted that the plugin implementation relies heavily on 
WordPress core’s lazy-loading heuristics, whereas the plan for the eventual core
implementation would be to decouple the two.

A WordPress Core TracTrac An open source project by Edgewall Software that serves
as a bug tracker and project management tool for WordPress. ticketticket Created
for both bug reports and feature development on the bug tracker. [#58235](https://core.trac.wordpress.org/ticket/58235)
has been opened, and a pull request for WordPress core, including the aforementioned
customization options will be worked on soon.
Your testing and feedback is much 
appreciated. Please share your ideas, questions and thoughts either in a comment
on this post, in the [plugin’s support forum](https://wordpress.org/support/plugin/performance-lab/)
on wordpress.orgWordPress.org The community site where WordPress code is created
and shared by the users. This is where you can download the source code for WordPress
core, plugins and themes as well as the central location for community conversations
and organization. [https://wordpress.org/](https://wordpress.org/), or on the [GitHub repository](https://github.com/WordPress/performance/issues).

_Props to [@tweetythierry](https://profiles.wordpress.org/tweetythierry/) [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/)
[@addyosmani](https://profiles.wordpress.org/addyosmani/) [@joemcgill](https://profiles.wordpress.org/joemcgill/)
[@thekt12](https://profiles.wordpress.org/thekt12/) for review and proofreading._

[#fetchpriority](https://make.wordpress.org/core/tag/fetchpriority/), [#images](https://make.wordpress.org/core/tag/images/),
[#media](https://make.wordpress.org/core/tag/media/), [#performance](https://make.wordpress.org/core/tag/performance/),
[#performance-lab](https://make.wordpress.org/core/tag/performance-lab/)

 [  ](https://profiles.wordpress.org/adamsilverstein/) [Adam Silverstein](https://profiles.wordpress.org/adamsilverstein/)
8:53 pm _on_ June 30, 2022     
Tags: [core-images ( 9 )](https://make.wordpress.org/core/tag/core-images/),
media, [performance ( 420 )](https://make.wordpress.org/core/tag/performance/)  

# 󠀁[Plan for adding WebP & multiple MIME support for images](https://make.wordpress.org/core/2022/06/30/plan-for-adding-webp-multiple-mime-support-for-images/)󠁿

This post is a follow up to the “[Enabling WebP by default](https://make.wordpress.org/core/2022/03/28/enabling-webp-by-default/)”
proposal post (and the [follow up](https://make.wordpress.org/core/2022/04/12/follow-up-on-webp-by-default-proposal/)
to that post). 

TL;DR – The Performance Team has reviewed feedback, conducted research, and reassessed
the approach based on our findings. Our new approach – outlined below – aims to 
address the concerns raised on the original proposal.

### **Overview**

The Performance Team takes community feedback very seriously. As a result of the
concerns around our previously proposed approach to serving WebP, we took a step
back to reassess and dig deeper into the specific issues raised in post comments,
chat, and elsewhere. This work has included:

 * Reviewing comments from the original and follow-up posts
 * Engaging in research (as noted in [#289](https://github.com/WordPress/performance/issues/289)&
   [#290](https://github.com/WordPress/performance/issues/290)) on the storage impact
   of additional WebP images being created on upload and WebP compatibility across
   browsers, email clients, etc.
 * Sharing a survey with hosting providers to gather information about their storage
   and disk space infrastructure

### **What we found**

Our goal with this research and reassessment was to collect data and additional 
context about each of the concerns raised by the community. With this additional
information, we were then able to better understand and prioritize concerns, as 
well as determine how and why our approach to adding WebP should be modified.

#### _WebP Compatibility_

The team did [additional research on WebP compatibility](https://github.com/WordPress/performance/issues/290)
to better understand where compatibility issues might cause issues for users. Our
research indicated that most compatibility issues were very minor and/or addressable:

 * **Web browser compatibility**: Only Safari on Mac OS < 11 and iOSiOS The operating
   system used on iPhones and iPads. < 14 do not support WebP, which is < 3% of 
   all browser usage. This small percentage of non-supporting browsers will be served
   JPEG images. 
 * **Email clients**: > 97% of clients support WebP.
 * **Mobile apps (web views)**: iOS 14+ supports WebP (and otherwise will be served
   JPEG images with the new approach). Android supports WebP natively from Android
   4.0.
 * **RSS readers:** Top RSS readers all support WebP, so RSS feeds can likely leverage
   WebP.
 * **Other: **Open Graph tagtag A directory in Subversion. WordPress uses tags to
   store a single snapshot of a version (3.6, 3.6.1, etc.), the common convention
   of tags in version control systems. (Not to be confused with post tags.) consumers
   have mixed support, so OG tags should remain JPEGs for compatibility.

#### _Storage_

To assess the overall [impact of generating WebP images on site storage](https://github.com/WordPress/performance/issues/289),
the team surveyed hosting providers. With a total of 17 responses, the [results](https://docs.google.com/document/d/1_si5UPkjC9R5yPPL6FPWfx7jahB8GPb2lrxGpdigYDM/edit?usp=sharing)
show that the number of stored files is generally not an issue for most hosts/sites,
although storage space could become an issue for some users over time. Still, for
large hosts (with 1,000 or more hosted sites), the vast majority of sites (> 86%)
would be unaffected, even if their storage requirements doubled. We also learned
that some lower-end hosting plans with limited storage also lack WebP support in
their hosting stack, which means they won’t get extra image generation anyway.

### **The revised approach**

Based on the results of the research outlined above, our new proposed approach addresses
compatibility issues by:

 * Providing a tiny (355 bytes uncompressed) JavaScriptJavaScript JavaScript or 
   JS is an object-oriented computer programming language commonly used to create
   interactive effects within web browsers. WordPress makes extensive use of JS 
   for a better user experience. While PHP is executed on the server, JS executes
   within a user’s browser. [https://www.javascript.com](https://www.javascript.com/)
   snippet that detects browsers that lack WebP support and loads JPEGs instead [
   tracking [issue](https://github.com/WordPress/performance/issues/341)]
 * Only using WebP for user-facing content in the front-end (template) context. 
   Images in other contexts like Open Graph tags, RSS feeds, and REST endpoints 
   would continue to use JPEGs [tracking [issue](https://github.com/WordPress/performance/issues/379)]
 * Adding a new parameter to the `add_image_size()` function that lets developers
   control whether to generate additional MIME types for each size registered. For
   the vast majority of image sizes this should be set to `true`; the only exceptions
   are image sizes that are being used exclusively outside of user-facing front-
   end content, such as Open Graph tags. Only for those special cases should the
   parameter be set to `false` to _not_ generate additional MIME types. Developers
   registering custom image sizes with `add_image_size` will need to specify if 
   the size should generate secondary MIME types by version 6.2, when we plan to
   make this behavior the default in coreCore Core is the set of software required
   to run WordPress. The Core Development Team builds WordPress..

This new approach also addresses concerns around storage requirements by:

 * **Automatically generating WebP versions of _only _core image sizes in 6.1 by
   default.** Custom image sizes will initially have to opt in to receive automatically
   generated WebP versions, or opt out if they are exclusively used for special 
   cases where WebP is not beneficial or supported.
 * Keeping secondary (WebP) sub-sizes _only_ if they are smaller than the primary
   MIME type.
 * Only generating WebP images for image sizes that are intended for use in user-
   facing front-end content. This avoids wasting storage space for WebP images that
   will never be used.
 * Introducing a filterFilter Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
   They provide a way for functions to modify data of other functions. They are 
   the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
   manner, and should never have side effects such as affecting global variables
   and output. to control the generation of additional MIME types based on image
   sub-sizes. This enables developers to exclude certain image sizes, such as those
   that are not used in front-end content. 

### **Next Steps**

The approach in the [core patch](https://github.com/WordPress/wordpress-develop/pull/2393)
is being updated to reflect the revisionsRevisions The WordPress revisions system
stores a record of each saved draft or published update. The revision system allows
you to see what changes were made in each revision by dragging a slider (or using
the Next/Previous buttons). The display indicates what has changed in each revision.
outlined above. The current plan is to merge this change early in the 6.1 release
cycle so that it can be thoroughly tested. Additional feedback regarding this revised
approach can be left on this post or the [Trac ticket](https://core.trac.wordpress.org/ticket/55443).

[#core-images](https://make.wordpress.org/core/tag/core-images/), [#media](https://make.wordpress.org/core/tag/media/),
[#performance](https://make.wordpress.org/core/tag/performance/)

 [  ](https://profiles.wordpress.org/spacedmonkey/) [Jonny Harris](https://profiles.wordpress.org/spacedmonkey/)
9:27 am _on_ May 2, 2022     
Tags: [6.0 ( 76 )](https://make.wordpress.org/core/tag/6-0/),
[dev-notes ( 654 )](https://make.wordpress.org/core/tag/dev-notes/), [dev-notes-6.0 ( 20 )](https://make.wordpress.org/core/tag/dev-notes-6-0/),
media   

# 󠀁[Media: storing file size as part of metadata](https://make.wordpress.org/core/2022/05/02/media-storing-file-size-as-part-of-metadata/)󠁿

In [#49412](https://core.trac.wordpress.org/ticket/49412) a tweak was made to the
upload process. When files are uploaded to the WordPress media library, the file’s
size is now stored as part of the metadata. This means that when calling the `wp_get_attachment_metadata`
function, developers will easily be able to receive the file size of a selected 
image without having to call the php function filesize. This change is especially
useful in situations when media is being offloaded to a third party, such as cloud
services like Amazon’s S3 and Google cloud storage or a networknetwork (versus site,
blog) share like NFS; as a call to get the file’s size can result in slow calls 
to an external server. 

Along with saving the file size to the attachment’s metadata, a new function and
filterFilter Filters are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output. have been added. The new `wp_filesize` function is useful when storing attachments
on a third party source. It means that value can be filtered, preventing a possibility
of a slow call to an external server. 

It is recommended that authors and maintainers of plugins designed to offload attachments
to external services review this change and check that it does not affect your pluginPlugin
A plugin is a piece of software containing a group of functions that can be added
to a WordPress website. They can extend functionality or add new features to your
WordPress websites. WordPress plugins are written in the PHP programming language
and integrate seamlessly with WordPress. These can be free in the WordPress.org 
Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
or can be cost-based plugin from a third-party..

_Props to _[@milana_cap](https://profiles.wordpress.org/milana_cap/)_ for review
and proofreading._

[#6-0](https://make.wordpress.org/core/tag/6-0/), [#dev-notes](https://make.wordpress.org/core/tag/dev-notes/),
[#dev-notes-6-0](https://make.wordpress.org/core/tag/dev-notes-6-0/), [#media](https://make.wordpress.org/core/tag/media/)

 [  ](https://profiles.wordpress.org/adamsilverstein/) [Adam Silverstein](https://profiles.wordpress.org/adamsilverstein/)
1:45 pm _on_ April 12, 2022     
Tags: [core-images ( 9 )](https://make.wordpress.org/core/tag/core-images/),
media, [performance ( 420 )](https://make.wordpress.org/core/tag/performance/)  

# 󠀁[Follow-up on WebP by default proposal](https://make.wordpress.org/core/2022/04/12/follow-up-on-webp-by-default-proposal/)󠁿

This post is a follow up to last month’s [Enabling WebP by default](https://make.wordpress.org/core/2022/03/28/enabling-webp-by-default/),
which proposed a feature that would generate both JPEG and WebP images and output
WebP sub-sized images in WordPress coreCore Core is the set of software required
to run WordPress. The Core Development Team builds WordPress.. The post received
quite a bit of feedback, primarily in regards to technical concerns questioning 
if this feature should be included in core in its current state.

**TL;DR – The performance team has heard the feedback and takes the community’s 
concerns seriously. With the help of the community, we will work on conducting additional
data-driven research. Based on our findings, we will reassess our proposed approach
to enabling WebP by default.**

The performance team wants to see WordPress continue to innovate and improve. The
main goal of this feature is to set the foundation for WordPress to be able to process
and deliver more performant formats in the same way other CMS like [Duda](https://blog.duda.co/core-web-vitals-update-how-duda-leads-the-way),
[Wix](https://www.smashingmagazine.com/2021/11/improving-performance-wix-websites-case-study/),
and [Shopify](https://www.shopify.com/partners/blog/progressive-jpeg-and-webp) are
already doing.

To ensure that we’re implementing this feature as effectively as possible, we will
investigate the main points of concern that have been raised within the community,
including continuing our [research and testing on image size & quality](https://github.com/WordPress/performance/issues/7).
We will continue to share updates about our work as part of the weekly chat summaries
posted to the Make Core blogblog (versus network, site). 

In addition, we’ve created two issues in the [Performance Lab GitHub repository](https://github.com/WordPress/performance)
for tracking analysis related to the main concerns raised by the community:

 1. Research: Impact of additional WebP images on upload [[Issue #289](https://github.com/WordPress/performance/issues/289)]
 2. Research: WebP compatibility [[Issue #290](https://github.com/WordPress/performance/issues/290)]

Within these GitHubGitHub GitHub is a website that offers online implementation 
of git repositories that can easily be shared, copied and modified by other developers.
Public repositories are free to host, private repositories require a paid subscription.
GitHub introduced the concept of the ‘pull request’ where code changes done in branches
by contributors can be reviewed and discussed before being merged by the repository
owner. [https://github.com/](https://github.com/) issues, the performance team will
track testing and investigation related to these concerns to ensure that we have
a full and data-driven picture of this feature’s impact. Please feel free to share
your own research in these GitHub issues, as well.

Once we’ve completed our investigation and determined next steps on these two issues,
we will work with the community to reassess two other concerns that were raised:

 1. Having the feature on/off by default
 2. Having a UIUI User interface-based control to turn the feature on/off

Thank you all for your feedback so far. We look forward to continuing to collaborate
to move this proposal forward.

---

Many thanks to [@tweetythierry](https://profiles.wordpress.org/tweetythierry/), 
[@flixos90](https://profiles.wordpress.org/flixos90/), [@mitogh](https://profiles.wordpress.org/mitogh/),
[@mxbclang](https://profiles.wordpress.org/mxbclang/), and [@jjgrainger](https://profiles.wordpress.org/jjgrainger/)
for their help with this post.

[#core-images](https://make.wordpress.org/core/tag/core-images/), [#media](https://make.wordpress.org/core/tag/media/),
[#performance](https://make.wordpress.org/core/tag/performance/)

 [  ](https://profiles.wordpress.org/adamsilverstein/) [Adam Silverstein](https://profiles.wordpress.org/adamsilverstein/)
10:56 pm _on_ March 28, 2022     
Tags: [core-images ( 9 )](https://make.wordpress.org/core/tag/core-images/),
media, [performance ( 420 )](https://make.wordpress.org/core/tag/performance/)  

# 󠀁[Enabling WebP by default](https://make.wordpress.org/core/2022/03/28/enabling-webp-by-default/)󠁿

**_Note_**_: A [follow-up post](https://make.wordpress.org/core/2022/04/12/follow-up-on-webp-by-default-proposal/)
has been published with next steps on this proposal._

### Feature Overview

This proposal seeks to integrate WebP by default into WordPress coreCore Core is
the set of software required to run WordPress. The Core Development Team builds 
WordPress.. WordPress supports WebP since version 5.8 and users can already upload
and place WebP images just like they can JPEG images.  This proposal enhances that
support in two significant ways. First, WebP images are now generated by default
for new JPEG uploads (in addition to the default format WordPress already generates).
Second, these WebP images are now used by default for the website content.

### Advantages of using WebP

WebP was developed as a modern image format that provides superior compression on
the web. Images are often some of the largest resources used by websites, and using
WebP creates websites that are lighter and faster. Compared to JPEG images, WebP
images generated by WordPress are almost always smaller, with a [~30% file size reduction](https://github.com/WordPress/performance/issues/7#issuecomment-1080901577)
on average (with the same visual quality).  

WordPress websites can benefit from WebP today because WebP is [supported in all browsers WordPress supports](https://caniuse.com/webp)
and by both the GD and Imagick image handling libraries WordPress relies on. With
this new feature, users can continue uploading and using the same JPEG images they
do today and behind the scenes WordPress will create the more performant WebP images
and use them for the website. By switching from JPEG to WebP as our default output
format, WordPress sites across the web will benefit from improved performance – 
the primary goal of the Performance team.

### How will WordPress enable “WebP by default”?

When users upload JPEG images, WordPress will now create WebP versions of the image
and its sub sizes in addition to the JPEG sub sizes it already creates (while keeping
the original). When rendering the website, WordPress will use the WebP versions 
of images when they are available. 

The new support for multiple mime types in core media is designed to be flexible,
enabling developers to customize which image formats to generate for a given source
image format. The feature is completely customizable via filters, so hosts or developers
can adjust the behavior for both image generation (for example only generating JPEG
or WebP subsizes) and image display.

Finally, this feature is backwards compatible, extending existing behavior with 
additional types and data. JPEG images continue to be generated as usual, and stored
in the same way as previous versions.

### Testing this feature

Please test this feature to help catch and accommodate as many use cases as possible!
You can test this feature out using the [Performance Lab plugin](https://wordpress.org/plugins/performance-lab/)“
WebP Uploads” module.  Developers can review code and give technical feedback by
testing the latest patchpatch A special text file that describes changes to code,
by identifying the files and lines which are added, removed, and altered. It may
also be referred to as a **diff**. A patch can be _applied_ to a codebase for testing.
on the [Trac ticket](https://core.trac.wordpress.org/ticket/55443) or [Pull Request](https://github.com/WordPress/wordpress-develop/pull/2393).

### Next Steps

The TracTrac An open source project by Edgewall Software that serves as a bug tracker
and project management tool for WordPress. ticketticket Created for both bug reports
and feature development on the bug tracker. targets WordPress 6.0 to land this feature,
as long as image component and core maintainers agree the patch is ready. Landing
this feature in core will provide significant benefits to WordPress users,  so **
please help us by testing the feature and leaving your feedback on the **[**Trac ticket**](https://core.trac.wordpress.org/ticket/55443)**
or **[**Pull Request**](https://github.com/WordPress/wordpress-develop/pull/2393)**!**

---

Thanks to [@mitogh](https://profiles.wordpress.org/mitogh/), [@flixos90](https://profiles.wordpress.org/flixos90/),
[@tweetythierry](https://profiles.wordpress.org/tweetythierry/), [@addyosmani](https://profiles.wordpress.org/addyosmani/)
and [@joemcgill](https://profiles.wordpress.org/joemcgill/) for reviewing this proposal
and to the many contributors who helped develop and test this feature.

---

### Frequently Asked Questions

 * How can I disable or control the behavior of this feature?
    - Two new filters control mime type(s) output (`wp_upload_image_mime_transforms`)
      and output( `image_editor_output_format`). See Trac ticket for full details
      on using these filters. Non-developers can use plugins to adjust the behavior.
 * Can WordPress generate **only** WebP images? 
    - Yes! Output type(s) are completely controllable with code (filters) and non-
      developers can use plugins to adjust the behavior.
 * Will WordPress create sub-sized PNG or GIF animated, transparent or lossless 
   images?
    - This feature currently only handles **lossy **JPEG or WebP images, although
      it can be expanded in the future.. The WebP format does support lossless, 
      transparency and animation, however support in the GD and Imagick libraries
      that WordPress relies on for images are limited to only certain features. 
 * I’ve heard WebP images are sometimes larger than JPEGs, how does WordPress address
   that?
    - WordPress now tracks the size of images it creates, so WordPress can directly
      compare the sizes and potentially choose the smallest size. However, in the
      research so far on  issue: [https://github.com/WordPress/performance/issues/7](https://github.com/WordPress/performance/issues/7)
      indicates every lossy WebP winds up being smaller than the equivalent JPEG.
    - When comparing image sizes it is important to use actual images generated 
      by typical WordPress servers, which is different from what you can achieve
      using dedicated image tools. For example, most servers don’t support “MozJPEG”
      compression which is more efficient than standard JPEG compression.
 * What happens if I upload a WebP image to WordPress
    - WordPress will now generate both WebP and JPEG sub sizes when you upload a
      WebP. WebP will be used as the default for front end display and you will 
      have JPEG versions available if you need them.
 * What if my server doesn’t support WebP
    - This feature requires server-side WebP support: if your server lacks support,
      images will continue to work as they always have.
 * What if my website visitor’s browsers don’t support WebP
    - If you know your website visitors commonly use one of the very few browsers
      that lack WebP support (for example Internet Explorer 11 or Safari on MacOS
      < v11 Big Sur) you can disable this feature using a few code lines or a simple
      mini pluginPlugin A plugin is a piece of software containing a group of functions
      that can be added to a WordPress website. They can extend functionality or
      add new features to your WordPress websites. WordPress plugins are written
      in the PHP programming language and integrate seamlessly with WordPress. These
      can be free in the WordPress.org Plugin Directory [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
      or can be cost-based plugin from a third-party. (more details before launch).
 * How will this affect server resource usage?
    - When users upload images, WordPress will have to work twice as hard to generate
      both WebP and JPEG images and will use an additional ~70% of the storage space
      to store both file types. On the other hand, bandwidth consumption from website
      visitor image loads will decrease by approximately 30%. Hosting environments
      with constrained resources may want to disable this feature, or generate only
      WebP images.
 * Does this feature work with existing plugins that generate WebP images?
    - Yes. Core will provide extension points so existing plugins can serve already
      generated WebP images, and/or use core’s new generation capabilitiescapability
      A **capability** is permission to perform one or more types of task. Checking
      if a user has a capability is performed by the `current_user_can` function.
      Each user of a WordPress site might have some permissions but not others, 
      depending on their role. For example, users who have the Author role usually
      have permission to edit their own posts (the “edit_posts” capability), but
      not permission to edit other users’ posts (the “edit_others_posts” capability).(
      work ongoing in this [issue](https://github.com/WordPress/performance/issues/160)).

[#core-images](https://make.wordpress.org/core/tag/core-images/), [#media](https://make.wordpress.org/core/tag/media/),
[#performance](https://make.wordpress.org/core/tag/performance/)

 [  ](https://profiles.wordpress.org/hongnizzle/) [Hong Nga Nguyen](https://profiles.wordpress.org/hongnizzle/)
7:30 pm _on_ May 6, 2021     
Tags: [core ( 762 )](https://make.wordpress.org/core/tag/core/),
[core-media ( 116 )](https://make.wordpress.org/core/tag/core-media/), media, [summary ( 983 )](https://make.wordpress.org/core/tag/summary/)

# 󠀁[Media Meeting Recap – May 6, 2021](https://make.wordpress.org/core/2021/05/06/media-meeting-recap-may-6/)󠁿

The following is a summary of the weekly Media component meeting that occurred on
Thursday, May 6, 2021 at 14:00 UTC. Weekly media meetings are held every Thursday
at 14:00 UTC. A full transcript can be found [here](https://wordpress.slack.com/archives/C02SX62S6/p1620309628063400)
in the [#core-media](https://make.wordpress.org/core/tag/core-media/) room in the
[ Make WordPress Slack](https://make.wordpress.org/chat/).

Attendees: [@antpb](https://profiles.wordpress.org/antpb/), [@mista-flo](https://profiles.wordpress.org/mista-flo/),
[@chaion07](https://profiles.wordpress.org/chaion07/), [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/),
[@paaljoachim](https://profiles.wordpress.org/paaljoachim/), [@hellofromtonya](https://profiles.wordpress.org/hellofromtonya/),
[@sergeybiryukov](https://profiles.wordpress.org/sergeybiryukov/), [@desrosj](https://profiles.wordpress.org/desrosj/)

## Media 5.8 tickets

This meeting’s discussion focused around WebP and 5.8 Media features.

[[[#35725:](https://core.trac.wordpress.org/ticket/35725) _Add WebP support_ – WebP
support has been merged! Please test on all configurations possible to ensure there
are no edge case issues. Big props to [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/) and all
who helped make this happen! Adam mentioned that a post is in progress that will
provide an overview to the new WebP supports.

[#52876](https://core.trac.wordpress.org/ticket/52867) _Add capabilitycapability
A **capability** is permission to perform one or more types of task. Checking if
a user has a capability is performed by the `current\_user\_can` function. Each 
user of a WordPress site might have some permissions but not others, depending on
their role. For example, users who have the Author role usually have permission 
to edit their own posts (the “edit\_posts” capability), but not permission to edit
other users’ posts (the “edit\_others\_posts” capability). to set default format
for image sub-sizes. _– This ticketticket Created for both bug reports and feature
development on the bug tracker. is in progress and adds a new filterFilter Filters
are one of the two types of Hooks [https://codex.wordpress.org/Plugin_API/Hooks](https://codex.wordpress.org/Plugin_API/Hooks).
They provide a way for functions to modify data of other functions. They are the
counterpart to Actions. Unlike Actions, filters are meant to work in an isolated
manner, and should never have side effects such as affecting global variables and
output. where people can set a default image type such as WebP. [@adamsilverstein](https://profiles.wordpress.org/adamsilverstein/)
has asked for some testing assistance to ensure everything works as intended. Testing
instructions can be found [here](https://core.trac.wordpress.org/ticket/52867#comment:26).

[#50105](https://core.trac.wordpress.org/ticket/50105): _Remove infinite scrolling
behavior from the Media grid – _It was agreed during the meeting that for the button
that moves focus to the first newly loaded media item_, “Jump to first loaded item”
_is a great way to make this not focus on images or any other specific media type
and still be clear. [@hellofromtonya](https://profiles.wordpress.org/hellofromtonya/)
mentioned in the meeting on the pending count issue, “I think it would be a better
experience for users if we could solve it before 5.8 betaBeta A pre-release of software
that is given out to a large group of users to trial under real conditions. Beta
versions have gone through alpha testing in-house and are generally fairly close
in look, feel and function to the final product; however, design changes often occur
as part of the process.. That said, it would be good to get the patchpatch A special
text file that describes changes to code, by identifying the files and lines which
are added, removed, and altered. It may also be referred to as a **diff**. A patch
can be _applied_ to a codebase for testing. committed and then work on that specific
issue as a follow-up.” It was agreed by multiple participants in the meeting that
landing this sooner and iterating is ideal.

[#37255](https://core.trac.wordpress.org/ticket/37255): _Update attachment functions
to accept a post object in addition to ID_ – [@hellofromtonya](https://profiles.wordpress.org/hellofromtonya/)
mentioned keeping this ticket focused on resolving the issues that were identified
and moving any broader scope to a separate issue to avoid this being punted to a
future release again.

_Props [@antpb](https://profiles.wordpress.org/antpb/) for proofreading and final
review_.

[#core](https://make.wordpress.org/core/tag/core/), [#media](https://make.wordpress.org/core/tag/media/),
[#summary](https://make.wordpress.org/core/tag/summary/)

# Post navigation

[← Older posts](https://make.wordpress.org/core/tag/media/page/2/?output_format=md)