WordPress.org

Make WordPress Core

Ticket #47749: 47749.diff

File 47749.diff, 23.3 KB (added by azaozz, 2 years ago)
  • Gruntfile.js

     
    105105                        files: buildFiles.map( function( file ) {
    106106                                return BUILD_DIR + file;
    107107                        }),
     108
     109                        // Clean both /build and /src.
    108110                        css: [
    109                                 WORKING_DIR + 'wp-admin/css/*.min.css',
    110                                 WORKING_DIR + 'wp-admin/css/*rtl*',
    111                                 WORKING_DIR + 'wp-includes/css/*.min.css',
    112                                 WORKING_DIR + 'wp-includes/css/*rtl*',
    113                                 WORKING_DIR + 'wp-admin/css/colors/**/*.css'
     111                                BUILD_DIR + 'wp-admin/css/*.min.css',
     112                                BUILD_DIR + 'wp-admin/css/*rtl*',
     113                                BUILD_DIR + 'wp-includes/css/*.min.css',
     114                                BUILD_DIR + 'wp-includes/css/*rtl*',
     115                                BUILD_DIR + 'wp-admin/css/colors/**/*.css',
     116
     117                                SOURCE_DIR + 'wp-admin/css/*.min.css',
     118                                SOURCE_DIR + 'wp-admin/css/*rtl*',
     119                                SOURCE_DIR + 'wp-includes/css/*.min.css',
     120                                SOURCE_DIR + 'wp-includes/css/*rtl*',
     121                                SOURCE_DIR + 'wp-admin/css/colors/**/*.css'
    114122                        ],
    115123                        js: [
    116                                 WORKING_DIR + 'wp-admin/js/',
    117                                 WORKING_DIR + 'wp-includes/js/'
     124                                BUILD_DIR + 'wp-admin/js/',
     125                                BUILD_DIR + 'wp-includes/js/',
     126
     127                                SOURCE_DIR + 'wp-admin/js/',
     128                                SOURCE_DIR + 'wp-includes/js/'
    118129                        ],
    119130                        dynamic: {
    120131                                dot: true,
     
    634645                                }
    635646                        }
    636647                },
    637                 jsdoc : {
    638                         dist : {
     648                jsdoc: {
     649                        dist: {
    639650                                dest: 'jsdoc',
    640651                                options: {
    641                                         configure : 'jsdoc.conf.json'
     652                                        configure: 'jsdoc.conf.json'
    642653                                }
    643654                        }
    644655                },
     
    864875                                        'src/wp-includes/js/wpdialog.js': 'src/js/_enqueues/lib/dialog.js',
    865876                                        'src/wp-includes/js/wplink.js': 'src/js/_enqueues/lib/link.js',
    866877                                        'src/wp-includes/js/zxcvbn-async.js': 'src/js/_enqueues/lib/zxcvbn-async.js',
    867                                         'src/wp-includes/js/media/controllers/audio-details.js' : 'src/js/media/controllers/audio-details.js',
    868                                         'src/wp-includes/js/media/controllers/collection-add.js' : 'src/js/media/controllers/collection-add.js',
    869                                         'src/wp-includes/js/media/controllers/collection-edit.js' : 'src/js/media/controllers/collection-edit.js',
    870                                         'src/wp-includes/js/media/controllers/cropper.js' : 'src/js/media/controllers/cropper.js',
    871                                         'src/wp-includes/js/media/controllers/customize-image-cropper.js' : 'src/js/media/controllers/customize-image-cropper.js',
    872                                         'src/wp-includes/js/media/controllers/edit-attachment-metadata.js' : 'src/js/media/controllers/edit-attachment-metadata.js',
    873                                         'src/wp-includes/js/media/controllers/edit-image.js' : 'src/js/media/controllers/edit-image.js',
    874                                         'src/wp-includes/js/media/controllers/embed.js' : 'src/js/media/controllers/embed.js',
    875                                         'src/wp-includes/js/media/controllers/featured-image.js' : 'src/js/media/controllers/featured-image.js',
    876                                         'src/wp-includes/js/media/controllers/gallery-add.js' : 'src/js/media/controllers/gallery-add.js',
    877                                         'src/wp-includes/js/media/controllers/gallery-edit.js' : 'src/js/media/controllers/gallery-edit.js',
    878                                         'src/wp-includes/js/media/controllers/image-details.js' : 'src/js/media/controllers/image-details.js',
    879                                         'src/wp-includes/js/media/controllers/library.js' : 'src/js/media/controllers/library.js',
    880                                         'src/wp-includes/js/media/controllers/media-library.js' : 'src/js/media/controllers/media-library.js',
    881                                         'src/wp-includes/js/media/controllers/region.js' : 'src/js/media/controllers/region.js',
    882                                         'src/wp-includes/js/media/controllers/replace-image.js' : 'src/js/media/controllers/replace-image.js',
    883                                         'src/wp-includes/js/media/controllers/site-icon-cropper.js' : 'src/js/media/controllers/site-icon-cropper.js',
    884                                         'src/wp-includes/js/media/controllers/state-machine.js' : 'src/js/media/controllers/state-machine.js',
    885                                         'src/wp-includes/js/media/controllers/state.js' : 'src/js/media/controllers/state.js',
    886                                         'src/wp-includes/js/media/controllers/video-details.js' : 'src/js/media/controllers/video-details.js',
    887                                         'src/wp-includes/js/media/models/attachment.js' : 'src/js/media/models/attachment.js',
    888                                         'src/wp-includes/js/media/models/attachments.js' : 'src/js/media/models/attachments.js',
    889                                         'src/wp-includes/js/media/models/post-image.js' : 'src/js/media/models/post-image.js',
    890                                         'src/wp-includes/js/media/models/post-media.js' : 'src/js/media/models/post-media.js',
    891                                         'src/wp-includes/js/media/models/query.js' : 'src/js/media/models/query.js',
    892                                         'src/wp-includes/js/media/models/selection.js' : 'src/js/media/models/selection.js',
    893                                         'src/wp-includes/js/media/routers/manage.js' : 'src/js/media/routers/manage.js',
    894                                         'src/wp-includes/js/media/utils/selection-sync.js' : 'src/js/media/utils/selection-sync.js',
    895                                         'src/wp-includes/js/media/views/attachment-compat.js' : 'src/js/media/views/attachment-compat.js',
    896                                         'src/wp-includes/js/media/views/attachment-filters.js' : 'src/js/media/views/attachment-filters.js',
    897                                         'src/wp-includes/js/media/views/attachment-filters/all.js' : 'src/js/media/views/attachment-filters/all.js',
    898                                         'src/wp-includes/js/media/views/attachment-filters/date.js' : 'src/js/media/views/attachment-filters/date.js',
    899                                         'src/wp-includes/js/media/views/attachment-filters/uploaded.js' : 'src/js/media/views/attachment-filters/uploaded.js',
    900                                         'src/wp-includes/js/media/views/attachment.js' : 'src/js/media/views/attachment.js',
    901                                         'src/wp-includes/js/media/views/attachment/details-two-column.js' : 'src/js/media/views/details-two-column.js',
    902                                         'src/wp-includes/js/media/views/attachment/details.js' : 'src/js/media/views/details.js',
    903                                         'src/wp-includes/js/media/views/attachment/edit-library.js' : 'src/js/media/views/edit-library.js',
    904                                         'src/wp-includes/js/media/views/attachment/edit-selection.js' : 'src/js/media/views/edit-selection.js',
    905                                         'src/wp-includes/js/media/views/attachment/library.js' : 'src/js/media/views/library.js',
    906                                         'src/wp-includes/js/media/views/attachment/selection.js' : 'src/js/media/views/selection.js',
    907                                         'src/wp-includes/js/media/views/attachment/attachments.js' : 'src/js/media/views/attachments.js',
    908                                         'src/wp-includes/js/media/views/attachments/browser.js' : 'src/js/media/views/attachments/browser.js',
    909                                         'src/wp-includes/js/media/views/attachments/selection.js' : 'src/js/media/views/attachments/selection.js',
    910                                         'src/wp-includes/js/media/views/attachments/audio-details.js' : 'src/js/media/views/attachments/audio-details.js',
    911                                         'src/wp-includes/js/media/views/attachments/button-group.js' : 'src/js/media/views/attachments/button-group.js',
    912                                         'src/wp-includes/js/media/views/attachments/button.js' : 'src/js/media/views/attachments/button.js',
    913                                         'src/wp-includes/js/media/views/button/delete-selected-permanently.js' : 'src/js/media/views/button/delete-selected-permanently.js',
    914                                         'src/wp-includes/js/media/views/button/delete-selected.js' : 'src/js/media/views/button/delete-selected.js',
    915                                         'src/wp-includes/js/media/views/button/select-mode-toggle.js' : 'src/js/media/views/button/select-mode-toggle.js',
    916                                         'src/wp-includes/js/media/views/cropper.js' : 'src/js/media/views/cropper.js',
    917                                         'src/wp-includes/js/media/views/edit-image-details.js' : 'src/js/media/views/edit-image-details.js',
    918                                         'src/wp-includes/js/media/views/edit-image.js' : 'src/js/media/views/edit-image.js',
    919                                         'src/wp-includes/js/media/views/embed.js' : 'src/js/media/views/embed.js',
    920                                         'src/wp-includes/js/media/views/embed/image.js' : 'src/js/media/views/embed/image.js',
    921                                         'src/wp-includes/js/media/views/embed/link.js' : 'src/js/media/views/embed/link.js',
    922                                         'src/wp-includes/js/media/views/embed/url.js' : 'src/js/media/views/embed/url.js',
    923                                         'src/wp-includes/js/media/views/focus-manager.js' : 'src/js/media/views/focus-manager.js',
    924                                         'src/wp-includes/js/media/views/frame.js' : 'src/js/media/views/frame.js',
    925                                         'src/wp-includes/js/media/views/frame/audio-details.js' : 'src/js/media/views/frame/audio-details.js',
    926                                         'src/wp-includes/js/media/views/frame/edit-attachments.js' : 'src/js/media/views/frame/edit-attachments.js',
    927                                         'src/wp-includes/js/media/views/frame/image-details.js' : 'src/js/media/views/frame/image-details.js',
    928                                         'src/wp-includes/js/media/views/frame/manage.js' : 'src/js/media/views/frame/manage.js',
    929                                         'src/wp-includes/js/media/views/frame/media-details.js' : 'src/js/media/views/frame/media-details.js',
    930                                         'src/wp-includes/js/media/views/frame/post.js' : 'src/js/media/views/frame/post.js',
    931                                         'src/wp-includes/js/media/views/frame/select.js' : 'src/js/media/views/frame/select.js',
    932                                         'src/wp-includes/js/media/views/frame/video-details.js' : 'src/js/media/views/frame/video-details.js',
    933                                         'src/wp-includes/js/media/views/iframe.js' : 'src/js/media/views/iframe.js',
    934                                         'src/wp-includes/js/media/views/image-details.js' : 'src/js/media/views/image-details.js',
    935                                         'src/wp-includes/js/media/views/label.js' : 'src/js/media/views/label.js',
    936                                         'src/wp-includes/js/media/views/media-details.js' : 'src/js/media/views/media-details.js',
    937                                         'src/wp-includes/js/media/views/media-frame.js' : 'src/js/media/views/media-frame.js',
    938                                         'src/wp-includes/js/media/views/menu-item.js' : 'src/js/media/views/menu-item.js',
    939                                         'src/wp-includes/js/media/views/menu.js' : 'src/js/media/views/menu.js',
    940                                         'src/wp-includes/js/media/views/modal.js' : 'src/js/media/views/modal.js',
    941                                         'src/wp-includes/js/media/views/priority-list.js' : 'src/js/media/views/priority-list.js',
    942                                         'src/wp-includes/js/media/views/router-item.js' : 'src/js/media/views/router-item.js',
    943                                         'src/wp-includes/js/media/views/router.js' : 'src/js/media/views/router.js',
    944                                         'src/wp-includes/js/media/views/search.js' : 'src/js/media/views/search.js',
    945                                         'src/wp-includes/js/media/views/selection.js' : 'src/js/media/views/selection.js',
    946                                         'src/wp-includes/js/media/views/settings.js' : 'src/js/media/views/settings.js',
    947                                         'src/wp-includes/js/media/views/settings/attachment-display.js' : 'src/js/media/views/settings/attachment-display.js',
    948                                         'src/wp-includes/js/media/views/settings/gallery.js' : 'src/js/media/views/settings/gallery.js',
    949                                         'src/wp-includes/js/media/views/settings/playlist.js' : 'src/js/media/views/settings/playlist.js',
    950                                         'src/wp-includes/js/media/views/sidebar.js' : 'src/js/media/views/sidebar.js',
    951                                         'src/wp-includes/js/media/views/site-icon-cropper.js' : 'src/js/media/views/site-icon-cropper.js',
    952                                         'src/wp-includes/js/media/views/site-icon-preview.js' : 'src/js/media/views/site-icon-preview.js',
    953                                         'src/wp-includes/js/media/views/spinner.js' : 'src/js/media/views/spinner.js',
    954                                         'src/wp-includes/js/media/views/toolbar.js' : 'src/js/media/views/toolbar.js',
    955                                         'src/wp-includes/js/media/views/toolbar/embed.js' : 'src/js/media/views/toolbar/embed.js',
    956                                         'src/wp-includes/js/media/views/toolbar/select.js' : 'src/js/media/views/toolbar/select.js',
    957                                         'src/wp-includes/js/media/views/uploader/editor.js' : 'src/js/media/views/uploader/editor.js',
    958                                         'src/wp-includes/js/media/views/uploader/inline.js' : 'src/js/media/views/uploader/inline.js',
    959                                         'src/wp-includes/js/media/views/uploader/status-error.js' : 'src/js/media/views/uploader/status-error.js',
    960                                         'src/wp-includes/js/media/views/uploader/status.js' : 'src/js/media/views/uploader/status.js',
    961                                         'src/wp-includes/js/media/views/uploader/window.js' : 'src/js/media/views/uploader/window.js',
    962                                         'src/wp-includes/js/media/views/video-details.js' : 'src/js/media/views/video-details.js',
    963                                         'src/wp-includes/js/media/views/view.js' : 'src/js/media/views/view.js'
     878                                        'src/wp-includes/js/media/controllers/audio-details.js': 'src/js/media/controllers/audio-details.js',
     879                                        'src/wp-includes/js/media/controllers/collection-add.js': 'src/js/media/controllers/collection-add.js',
     880                                        'src/wp-includes/js/media/controllers/collection-edit.js': 'src/js/media/controllers/collection-edit.js',
     881                                        'src/wp-includes/js/media/controllers/cropper.js': 'src/js/media/controllers/cropper.js',
     882                                        'src/wp-includes/js/media/controllers/customize-image-cropper.js': 'src/js/media/controllers/customize-image-cropper.js',
     883                                        'src/wp-includes/js/media/controllers/edit-attachment-metadata.js': 'src/js/media/controllers/edit-attachment-metadata.js',
     884                                        'src/wp-includes/js/media/controllers/edit-image.js': 'src/js/media/controllers/edit-image.js',
     885                                        'src/wp-includes/js/media/controllers/embed.js': 'src/js/media/controllers/embed.js',
     886                                        'src/wp-includes/js/media/controllers/featured-image.js': 'src/js/media/controllers/featured-image.js',
     887                                        'src/wp-includes/js/media/controllers/gallery-add.js': 'src/js/media/controllers/gallery-add.js',
     888                                        'src/wp-includes/js/media/controllers/gallery-edit.js': 'src/js/media/controllers/gallery-edit.js',
     889                                        'src/wp-includes/js/media/controllers/image-details.js': 'src/js/media/controllers/image-details.js',
     890                                        'src/wp-includes/js/media/controllers/library.js': 'src/js/media/controllers/library.js',
     891                                        'src/wp-includes/js/media/controllers/media-library.js': 'src/js/media/controllers/media-library.js',
     892                                        'src/wp-includes/js/media/controllers/region.js': 'src/js/media/controllers/region.js',
     893                                        'src/wp-includes/js/media/controllers/replace-image.js': 'src/js/media/controllers/replace-image.js',
     894                                        'src/wp-includes/js/media/controllers/site-icon-cropper.js': 'src/js/media/controllers/site-icon-cropper.js',
     895                                        'src/wp-includes/js/media/controllers/state-machine.js': 'src/js/media/controllers/state-machine.js',
     896                                        'src/wp-includes/js/media/controllers/state.js': 'src/js/media/controllers/state.js',
     897                                        'src/wp-includes/js/media/controllers/video-details.js': 'src/js/media/controllers/video-details.js',
     898                                        'src/wp-includes/js/media/models/attachment.js': 'src/js/media/models/attachment.js',
     899                                        'src/wp-includes/js/media/models/attachments.js': 'src/js/media/models/attachments.js',
     900                                        'src/wp-includes/js/media/models/post-image.js': 'src/js/media/models/post-image.js',
     901                                        'src/wp-includes/js/media/models/post-media.js': 'src/js/media/models/post-media.js',
     902                                        'src/wp-includes/js/media/models/query.js': 'src/js/media/models/query.js',
     903                                        'src/wp-includes/js/media/models/selection.js': 'src/js/media/models/selection.js',
     904                                        'src/wp-includes/js/media/routers/manage.js': 'src/js/media/routers/manage.js',
     905                                        'src/wp-includes/js/media/utils/selection-sync.js': 'src/js/media/utils/selection-sync.js',
     906                                        'src/wp-includes/js/media/views/attachment-compat.js': 'src/js/media/views/attachment-compat.js',
     907                                        'src/wp-includes/js/media/views/attachment-filters.js': 'src/js/media/views/attachment-filters.js',
     908                                        'src/wp-includes/js/media/views/attachment-filters/all.js': 'src/js/media/views/attachment-filters/all.js',
     909                                        'src/wp-includes/js/media/views/attachment-filters/date.js': 'src/js/media/views/attachment-filters/date.js',
     910                                        'src/wp-includes/js/media/views/attachment-filters/uploaded.js': 'src/js/media/views/attachment-filters/uploaded.js',
     911                                        'src/wp-includes/js/media/views/attachment.js': 'src/js/media/views/attachment.js',
     912                                        'src/wp-includes/js/media/views/attachment/details-two-column.js': 'src/js/media/views/details-two-column.js',
     913                                        'src/wp-includes/js/media/views/attachment/details.js': 'src/js/media/views/details.js',
     914                                        'src/wp-includes/js/media/views/attachment/edit-library.js': 'src/js/media/views/edit-library.js',
     915                                        'src/wp-includes/js/media/views/attachment/edit-selection.js': 'src/js/media/views/edit-selection.js',
     916                                        'src/wp-includes/js/media/views/attachment/library.js': 'src/js/media/views/library.js',
     917                                        'src/wp-includes/js/media/views/attachment/selection.js': 'src/js/media/views/selection.js',
     918                                        'src/wp-includes/js/media/views/attachment/attachments.js': 'src/js/media/views/attachments.js',
     919                                        'src/wp-includes/js/media/views/attachments/browser.js': 'src/js/media/views/attachments/browser.js',
     920                                        'src/wp-includes/js/media/views/attachments/selection.js': 'src/js/media/views/attachments/selection.js',
     921                                        'src/wp-includes/js/media/views/attachments/audio-details.js': 'src/js/media/views/attachments/audio-details.js',
     922                                        'src/wp-includes/js/media/views/attachments/button-group.js': 'src/js/media/views/attachments/button-group.js',
     923                                        'src/wp-includes/js/media/views/attachments/button.js': 'src/js/media/views/attachments/button.js',
     924                                        'src/wp-includes/js/media/views/button/delete-selected-permanently.js': 'src/js/media/views/button/delete-selected-permanently.js',
     925                                        'src/wp-includes/js/media/views/button/delete-selected.js': 'src/js/media/views/button/delete-selected.js',
     926                                        'src/wp-includes/js/media/views/button/select-mode-toggle.js': 'src/js/media/views/button/select-mode-toggle.js',
     927                                        'src/wp-includes/js/media/views/cropper.js': 'src/js/media/views/cropper.js',
     928                                        'src/wp-includes/js/media/views/edit-image-details.js': 'src/js/media/views/edit-image-details.js',
     929                                        'src/wp-includes/js/media/views/edit-image.js': 'src/js/media/views/edit-image.js',
     930                                        'src/wp-includes/js/media/views/embed.js': 'src/js/media/views/embed.js',
     931                                        'src/wp-includes/js/media/views/embed/image.js': 'src/js/media/views/embed/image.js',
     932                                        'src/wp-includes/js/media/views/embed/link.js': 'src/js/media/views/embed/link.js',
     933                                        'src/wp-includes/js/media/views/embed/url.js': 'src/js/media/views/embed/url.js',
     934                                        'src/wp-includes/js/media/views/focus-manager.js': 'src/js/media/views/focus-manager.js',
     935                                        'src/wp-includes/js/media/views/frame.js': 'src/js/media/views/frame.js',
     936                                        'src/wp-includes/js/media/views/frame/audio-details.js': 'src/js/media/views/frame/audio-details.js',
     937                                        'src/wp-includes/js/media/views/frame/edit-attachments.js': 'src/js/media/views/frame/edit-attachments.js',
     938                                        'src/wp-includes/js/media/views/frame/image-details.js': 'src/js/media/views/frame/image-details.js',
     939                                        'src/wp-includes/js/media/views/frame/manage.js': 'src/js/media/views/frame/manage.js',
     940                                        'src/wp-includes/js/media/views/frame/media-details.js': 'src/js/media/views/frame/media-details.js',
     941                                        'src/wp-includes/js/media/views/frame/post.js': 'src/js/media/views/frame/post.js',
     942                                        'src/wp-includes/js/media/views/frame/select.js': 'src/js/media/views/frame/select.js',
     943                                        'src/wp-includes/js/media/views/frame/video-details.js': 'src/js/media/views/frame/video-details.js',
     944                                        'src/wp-includes/js/media/views/iframe.js': 'src/js/media/views/iframe.js',
     945                                        'src/wp-includes/js/media/views/image-details.js': 'src/js/media/views/image-details.js',
     946                                        'src/wp-includes/js/media/views/label.js': 'src/js/media/views/label.js',
     947                                        'src/wp-includes/js/media/views/media-details.js': 'src/js/media/views/media-details.js',
     948                                        'src/wp-includes/js/media/views/media-frame.js': 'src/js/media/views/media-frame.js',
     949                                        'src/wp-includes/js/media/views/menu-item.js': 'src/js/media/views/menu-item.js',
     950                                        'src/wp-includes/js/media/views/menu.js': 'src/js/media/views/menu.js',
     951                                        'src/wp-includes/js/media/views/modal.js': 'src/js/media/views/modal.js',
     952                                        'src/wp-includes/js/media/views/priority-list.js': 'src/js/media/views/priority-list.js',
     953                                        'src/wp-includes/js/media/views/router-item.js': 'src/js/media/views/router-item.js',
     954                                        'src/wp-includes/js/media/views/router.js': 'src/js/media/views/router.js',
     955                                        'src/wp-includes/js/media/views/search.js': 'src/js/media/views/search.js',
     956                                        'src/wp-includes/js/media/views/selection.js': 'src/js/media/views/selection.js',
     957                                        'src/wp-includes/js/media/views/settings.js': 'src/js/media/views/settings.js',
     958                                        'src/wp-includes/js/media/views/settings/attachment-display.js': 'src/js/media/views/settings/attachment-display.js',
     959                                        'src/wp-includes/js/media/views/settings/gallery.js': 'src/js/media/views/settings/gallery.js',
     960                                        'src/wp-includes/js/media/views/settings/playlist.js': 'src/js/media/views/settings/playlist.js',
     961                                        'src/wp-includes/js/media/views/sidebar.js': 'src/js/media/views/sidebar.js',
     962                                        'src/wp-includes/js/media/views/site-icon-cropper.js': 'src/js/media/views/site-icon-cropper.js',
     963                                        'src/wp-includes/js/media/views/site-icon-preview.js': 'src/js/media/views/site-icon-preview.js',
     964                                        'src/wp-includes/js/media/views/spinner.js': 'src/js/media/views/spinner.js',
     965                                        'src/wp-includes/js/media/views/toolbar.js': 'src/js/media/views/toolbar.js',
     966                                        'src/wp-includes/js/media/views/toolbar/embed.js': 'src/js/media/views/toolbar/embed.js',
     967                                        'src/wp-includes/js/media/views/toolbar/select.js': 'src/js/media/views/toolbar/select.js',
     968                                        'src/wp-includes/js/media/views/uploader/editor.js': 'src/js/media/views/uploader/editor.js',
     969                                        'src/wp-includes/js/media/views/uploader/inline.js': 'src/js/media/views/uploader/inline.js',
     970                                        'src/wp-includes/js/media/views/uploader/status-error.js': 'src/js/media/views/uploader/status-error.js',
     971                                        'src/wp-includes/js/media/views/uploader/status.js': 'src/js/media/views/uploader/status.js',
     972                                        'src/wp-includes/js/media/views/uploader/window.js': 'src/js/media/views/uploader/window.js',
     973                                        'src/wp-includes/js/media/views/video-details.js': 'src/js/media/views/video-details.js',
     974                                        'src/wp-includes/js/media/views/view.js': 'src/js/media/views/view.js'
    964975                                }
    965976                        }
    966977                },
     
    13841395        grunt.registerTask( 'build', function() {
    13851396                if ( grunt.option( 'dev' ) ) {
    13861397                        grunt.task.run( [
     1398                                // Clean (potentially) old files from /build.
     1399                                'clean:files',
    13871400                                'build:js',
    13881401                                'build:css',
    13891402                        ] );
     
    14071420        ] );
    14081421
    14091422        // Testing tasks.
    1410         grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() {
     1423        grunt.registerMultiTask( 'phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() {
    14111424                grunt.util.spawn({
    14121425                        cmd: this.data.cmd,
    14131426                        args: phpUnitWatchGroup ? this.data.args.concat( [ '--group', phpUnitWatchGroup ] ) : this.data.args,
     
    14151428                }, this.async());
    14161429        });
    14171430
    1418         grunt.registerTask('qunit:compiled', 'Runs QUnit tests on compiled as well as uncompiled scripts.',
    1419                 ['build', 'copy:qunit', 'qunit']);
     1431        grunt.registerTask(
     1432                'qunit:compiled',
     1433                'Runs QUnit tests on compiled as well as uncompiled scripts.',
     1434                ['build', 'copy:qunit', 'qunit']
     1435        );
    14201436
    1421         grunt.registerTask('test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit']);
     1437        grunt.registerTask( 'test', 'Runs all QUnit and PHPUnit tasks.', ['qunit:compiled', 'phpunit'] );
    14221438
    14231439        grunt.registerTask( 'format:php', 'Runs the code formatter on changed files.', function() {
    14241440                var done = this.async();
     
    14651481        } );
    14661482
    14671483        // Travis CI tasks.
    1468         grunt.registerTask('travis:js', 'Runs Javascript Travis CI tasks.', [ 'jshint:corejs', 'qunit:compiled' ]);
    1469         grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', [ 'build', 'phpunit' ]);
    1470         grunt.registerTask('travis:phpcs', 'Runs PHP Coding Standards Travis CI tasks.', [ 'format:php:error', 'lint:php:travisErrors:error', 'lint:php:travisWarnings:error' ]);
     1484        grunt.registerTask( 'travis:js', 'Runs Javascript Travis CI tasks.', [ 'jshint:corejs', 'qunit:compiled' ] );
     1485        grunt.registerTask( 'travis:phpunit', 'Runs PHPUnit Travis CI tasks.', [ 'build', 'phpunit' ] );
     1486        grunt.registerTask(
     1487                'travis:phpcs',
     1488                'Runs PHP Coding Standards Travis CI tasks.',
     1489                [ 'format:php:error', 'lint:php:travisErrors:error', 'lint:php:travisWarnings:error' ]
     1490        );
    14711491
    14721492        // Patch task.
    1473         grunt.renameTask('patch_wordpress', 'patch');
     1493        grunt.renameTask( 'patch_wordpress', 'patch' );
    14741494
    14751495        // Add an alias `apply` of the `patch` task name.
    1476         grunt.registerTask('apply', 'patch');
     1496        grunt.registerTask( 'apply', 'patch' );
    14771497
    14781498        // Default task.
    1479         grunt.registerTask('default', ['build']);
     1499        grunt.registerTask( 'default', ['build'] );
    14801500
    14811501        /*
    14821502         * Automatically updates the `:dynamic` configurations