Make WordPress Core

Changeset 57515

Timestamp:
02/01/2024 04:26:47 PM (6 months ago)
Author:
joedolson
Message:

Media: Prevent local edits during media upload.

Prevent options.allowLocalEdits from toggling to true during the upload cycle. Otherwise, media meta fields can be edited, but the data will be lost as soon as the upload process is completed.

Props codepo8, oglekler, nicolefurlan, antpb, syamraj24, joedolson.
Fixes #58783, #23374.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/media/views/attachment.js

    r48650 r57515  
    121121        }
    122122
    123         if ( this.controller.state().get('allowLocalEdits') ) {
     123        if ( this.controller.state().get('allowLocalEdits') ) {
    124124            options.allowLocalEdits = true;
    125125        }
Note: See TracChangeset for help on using the changeset viewer.