Ticket #37188: 37188.diff
File 37188.diff, 3.8 KB (added by , 7 years ago) |
---|
-
src/wp-admin/css/media.css
526 526 left: auto; 527 527 bottom: auto; 528 528 padding-top: 0; 529 margin-top: 0;529 margin-top: 20px; 530 530 border: 4px dashed #b4b9be; 531 531 } 532 532 -
src/wp-admin/upload.php
77 77 78 78 <?php 79 79 if ( current_user_can( 'upload_files' ) ) { ?> 80 <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action "><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php80 <a href="<?php echo admin_url( 'media-new.php' ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 81 81 } 82 82 ?> 83 83 -
src/wp-includes/js/media/views/attachments/browser.js
40 40 41 41 this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this ); 42 42 this.controller.on( 'edit:selection', this.editSelection ); 43 this.createUploader(); 43 44 this.createToolbar(); 44 this.createUploader();45 45 this.createAttachments(); 46 46 if ( this.options.sidebar ) { 47 47 this.createSidebar(); -
src/wp-includes/js/media/views/frame/manage.js
38 38 this.$body = $( document.body ); 39 39 this.$window = $( window ); 40 40 this.$adminBar = $( '#wpadminbar' ); 41 this.$toggleBtn = $( '.page-title-action' ); 42 this.$toggleBtn.attr( 'aria-expanded', 'false' ); 41 43 this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) ); 42 44 $( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) ); 43 45 … … 188 190 */ 189 191 addNewClickHandler: function( event ) { 190 192 event.preventDefault(); 193 this.$toggleBtn.attr( 'aria-expanded', $( '.uploader-inline').hasClass( 'hidden' ) ); 191 194 this.trigger( 'toggle:upload:attachment' ); 192 195 193 196 if ( this.uploader ) { -
src/wp-includes/js/media-grid.js
623 623 this.$body = $( document.body ); 624 624 this.$window = $( window ); 625 625 this.$adminBar = $( '#wpadminbar' ); 626 this.$toggleBtn = $( '.page-title-action' ); 627 this.$toggleBtn.attr( 'aria-expanded', 'false' ); 626 628 this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) ); 627 629 $( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) ); 628 630 … … 773 775 */ 774 776 addNewClickHandler: function( event ) { 775 777 event.preventDefault(); 778 this.$toggleBtn.attr( 'aria-expanded', $( '.uploader-inline').hasClass( 'hidden' ) ); 776 779 this.trigger( 'toggle:upload:attachment' ); 777 780 778 781 if ( this.uploader ) { -
src/wp-includes/js/media-views.js
3771 3771 3772 3772 this.controller.on( 'toggle:upload:attachment', this.toggleUploader, this ); 3773 3773 this.controller.on( 'edit:selection', this.editSelection ); 3774 this.createUploader(); 3774 3775 this.createToolbar(); 3775 this.createUploader();3776 3776 this.createAttachments(); 3777 3777 if ( this.options.sidebar ) { 3778 3778 this.createSidebar();