Ticket #37417: 37417.9.diff
File 37417.9.diff, 2.5 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/customize-nav-menus.css
41 41 margin-right: 0; 42 42 } 43 43 44 .wp-customizer .item-title .view-link:before { 45 content: "\f177"; 46 font: 20px/11px dashicons; 47 color: #555; 48 top: 4px; 49 position: relative; 50 margin-left: 4px; 51 } 52 53 .wp-customizer .item-title .view-link:hover:before, 54 .wp-customizer .item-title .view-link:focus:before { 55 color: #0073aa; 56 } 57 44 58 .wp-customizer .menu-item-handle .item-type { 45 59 padding: 1px 21px 0 5px; 46 60 float: right; -
src/wp-admin/js/customize-nav-menus.js
1071 1071 var control = this; 1072 1072 1073 1073 this.container.find( '.menu-item-handle' ).on( 'click', function( e ) { 1074 if ( $( e.target ).hasClass( 'view-link' ) ) { 1075 return; 1076 } 1074 1077 e.preventDefault(); 1075 1078 e.stopPropagation(); 1076 1079 var menuControl = control.getMenuControl(); … … 1246 1249 _setupLinksUI: function() { 1247 1250 var $origBtn; 1248 1251 1249 // Configure original link .1250 $origBtn = this.container.find( 'a.original-link ' );1252 // Configure original link and view links. 1253 $origBtn = this.container.find( 'a.original-link, a.view-link' ); 1251 1254 1252 1255 $origBtn.on( 'click', function( e ) { 1253 1256 e.preventDefault(); -
src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php
70 70 <span class="item-title" aria-hidden="true"> 71 71 <span class="spinner"></span> 72 72 <span class="menu-item-title<# if ( ! data.title ) { #> no-title<# } #>">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span> 73 <# if ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) { #> 74 <a class="view-link" href="{{ data.url }}"><span class="screen-reader-text"><?php printf( __( 'Preview %s' ), '{{ data.original_title }}' ); ?></span></a> 75 <# } #> 73 76 </span> 74 77 <span class="item-controls"> 75 78 <button type="button" class="button-link item-edit" aria-expanded="false"><span class="screen-reader-text"><?php