Make WordPress Core

Changeset 51111


Ignore:
Timestamp:
06/08/2021 10:06:32 PM (3 years ago)
Author:
whyisjake
Message:

Media: Ensure that post_id variable is initiated ahead of usage.

This prevents warnings when using custom bulk actions in the media library.

Props gitlost, achbed, Boniu91, wpgurudev, hellofromTonya.

Fixes #39589.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package-lock.json

    r51101 r51111  
    82598259        "create-hash": {
    82608260            "version": "1.2.0",
    8261             "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz",
     8261            "resolved": "http://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz",
    82628262            "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==",
    82638263            "dev": true,
     
    82728272        "create-hmac": {
    82738273            "version": "1.1.7",
    8274             "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz",
     8274            "resolved": "http://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz",
    82758275            "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==",
    82768276            "dev": true,
     
    83528352        "css-color-names": {
    83538353            "version": "0.0.4",
    8354             "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz",
     8354            "resolved": "http://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz",
    83558355            "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=",
    83568356            "dev": true
     
    91859185        "diffie-hellman": {
    91869186            "version": "5.0.3",
    9187             "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",
     9187            "resolved": "http://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",
    91889188            "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==",
    91899189            "dev": true,
     
    2228822288        "sha.js": {
    2228922289            "version": "2.4.11",
    22290             "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",
     22290            "resolved": "http://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",
    2229122291            "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==",
    2229222292            "dev": true,
  • trunk/src/wp-admin/upload.php

    r49286 r51111  
    120120if ( $doaction ) {
    121121    check_admin_referer( 'bulk-media' );
     122    $post_ids = array();
    122123
    123124    if ( 'delete_all' === $doaction ) {
Note: See TracChangeset for help on using the changeset viewer.