Ticket #35457: 35457.patch
File 35457.patch, 3.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/common.css
608 608 text-shadow: none; 609 609 font-weight: 600; 610 610 font-size: 13px; 611 cursor: pointer; 611 612 } 612 613 613 614 .wrap .add-new-h2:hover, /* deprecated */ -
src/wp-admin/css/themes.css
1103 1103 padding: 40px 0 0; 1104 1104 text-align: center; 1105 1105 } 1106 body.show-upload-theme .upload-theme + .wp-filter,1107 body.show-upload-theme .upload-theme + .wp-filter + .theme-browser {1108 display: none;1109 }1110 1106 1111 1107 p.no-themes { 1112 1108 clear: both; … … 1123 1119 display: block; 1124 1120 } 1125 1121 1126 body.show-upload-theme p.no-themes {1127 display: none !important;1128 }1129 1130 1122 .theme-install-php .add-new-theme { 1131 1123 display: none !important; 1132 1124 } -
src/wp-admin/js/theme.js
1610 1610 */ 1611 1611 uploader: function() { 1612 1612 var uploadViewToggle = $( '.upload-view-toggle' ), 1613 $body = $( document.body ); 1613 $body = $( document.body ), 1614 uploaderOpen; 1614 1615 1615 1616 uploadViewToggle 1616 1617 .attr({ … … 1620 1621 .on( 'click', function( event ) { 1621 1622 event.preventDefault(); 1622 1623 $body.toggleClass( 'show-upload-view' ); 1623 uploadViewToggle.attr( 'aria-expanded', $body.hasClass( 'show-upload-view' ) ); 1624 uploaderOpen = $body.hasClass( 'show-upload-view' ) 1625 uploadViewToggle.attr( 'aria-expanded', uploaderOpen ); 1626 if ( uploaderOpen ) { 1627 themes.router.navigate( themes.router.baseUrl( '?upload' ), { replace: true } ); 1628 } else { 1629 themes.router.navigate( themes.router.baseUrl( '' ), { replace: true } ); 1630 } 1624 1631 }); 1625 1632 }, 1626 1633 … … 1759 1766 1760 1767 // Support the `upload` route by going straight to upload section 1761 1768 themes.router.on( 'route:upload', function() { 1762 $( ' a.upload' ).trigger( 'click' );1769 $( '.upload-view-toggle' ).trigger( 'click' ); 1763 1770 }); 1764 1771 1765 1772 // The `search` route event. The router populates the input field. -
src/wp-admin/theme-install.php
127 127 */ 128 128 $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); 129 129 if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) { 130 echo ' < a href="#" class="upload-view-toggle page-title-action">' . __( 'Upload Theme' ) . '</a>';130 echo ' <button type="button" class="upload-view-toggle page-title-action hide-if-no-js">' . __( 'Upload Theme' ) . '</button>'; 131 131 } 132 132 ?></h1> 133 <div class="error hide-if-js"> 134 <p><?php _e( 'The Theme Installer screen requires JavaScript.' ); ?></p> 135 </div> 133 136 134 137 <div class="upload-theme"> 135 138 <?php install_themes_upload(); ?> 136 139 </div> 137 140 138 <h2 class="screen-reader-text "><?php _e( 'Filter themes list' ); ?></h2>141 <h2 class="screen-reader-text hide-if-no-js"><?php _e( 'Filter themes list' ); ?></h2> 139 142 140 <div class="wp-filter ">143 <div class="wp-filter hide-if-no-js"> 141 144 <div class="filter-count"> 142 145 <span class="count theme-count"></span> 143 146 </div> … … 201 204 </div> 202 205 </div> 203 206 </div> 204 <h2 class="screen-reader-text "><?php _e( 'Themes list' ); ?></h2>207 <h2 class="screen-reader-text hide-if-no-js"><?php _e( 'Themes list' ); ?></h2> 205 208 <div class="theme-browser content-filterable"></div> 206 209 <div class="theme-install-overlay wp-full-overlay expanded"></div> 207 210