WordPress.org

Make WordPress Core

Ticket #42239: 42239.2.diff

File 42239.2.diff, 922 bytes (added by adamsilverstein, 3 years ago)
  • src/wp-includes/js/media-views.js

    diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
    index 2e462971e2..4aac4f5b44 100644
    Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{ 
    64156415                } else {
    64166416                        selection.add( this.model );
    64176417                }
     6418
     6419                // Trigger an action button update.
     6420                this.controller.trigger( 'selection:toggle' );
    64186421        }
    64196422});
    64206423
  • src/wp-includes/js/media/views/attachment.js

    diff --git src/wp-includes/js/media/views/attachment.js src/wp-includes/js/media/views/attachment.js
    index 3c93d597b1..240f05c0ee 100644
    Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{ 
    509509                } else {
    510510                        selection.add( this.model );
    511511                }
     512
     513                // Trigger an action button update.
     514                this.controller.trigger( 'selection:toggle' );
    512515        }
    513516});
    514517