Ticket #19956: media-button.diff
File media-button.diff, 1.9 KB (added by , 12 years ago) |
---|
-
wp-includes/css/editor.css
1031 1031 } 1032 1032 1033 1033 .wp-editor-tools { 1034 height: 3 0px;1034 height: 34px; 1035 1035 padding: 0 10px; 1036 1036 } 1037 1037 … … 1065 1065 .wp-switch-editor { 1066 1066 height: 18px; 1067 1067 font: 13px/18px Arial,Helvetica,sans-serif normal; 1068 margin: 5px 5px 0 0;1068 margin: 9px 5px 0 0; 1069 1069 padding: 4px 5px 2px; 1070 1070 float: right; 1071 1071 cursor: pointer; … … 1105 1105 1106 1106 .wp-media-buttons { 1107 1107 line-height: 1; 1108 padding: 9px 0 0;1109 1108 } 1110 1109 1110 .wp-media-buttons .button { 1111 margin-right:5px; 1112 } 1113 1111 1114 .wp-media-buttons a { 1112 1115 text-decoration: none; 1113 1116 color: #333; … … 1116 1119 } 1117 1120 1118 1121 .wp-media-buttons img { 1119 padding: 0 4px;1122 padding: 0 3px; 1120 1123 vertical-align: middle; 1121 1124 } 1122 1125 -
wp-admin/includes/media.php
377 377 * @param string $editor_id 378 378 */ 379 379 function media_buttons($editor_id = 'content') { 380 $context = apply_filters('media_buttons_context', __(' Upload/Insert %s'));380 $context = apply_filters('media_buttons_context', __('%s Upload/Insert')); 381 381 382 382 $img = '<img src="' . esc_url( admin_url( 'images/media-button.png?ver=20111005' ) ) . '" width="15" height="15" />'; 383 383 384 echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media " id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>';384 echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media button" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>'; 385 385 } 386 386 add_action( 'media_buttons', 'media_buttons' ); 387 387