Ticket #6812: img_captions5.patch
File img_captions5.patch, 10.2 KB (added by , 16 years ago) |
---|
-
wp-admin/gears-manifest.php
145 145 { "url" : "../wp-includes/js/tinymce/plugins/paste/pastetext.htm?ver=311" }, 146 146 { "url" : "../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm?ver=311" }, 147 147 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/template.htm?ver=311" }, 148 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=311 " },148 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=311b" }, 149 149 { "url" : "../wp-includes/js/tinymce/wp-mce-help.php?ver=311" }, 150 150 151 151 { "url" : "../wp-includes/js/tinymce/themes/advanced/skins/wp_theme/ui.css?ver=311" }, … … 158 158 { "url" : "../wp-includes/js/tinymce/plugins/media/css/media.css?ver=311" }, 159 159 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/pasteword.css?ver=311" }, 160 160 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/blank.css?ver=311" }, 161 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=311 " },161 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=311b" }, 162 162 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css?ver=311" }, 163 163 { "url" : "../wp-includes/js/tinymce/wordpress.css?ver=311" }, 164 164 -
wp-content/themes/classic/style.css
322 322 323 323 /* Captions & aligment */ 324 324 .aligncenter, 325 d l.aligncenter {325 div.aligncenter { 326 326 display: block; 327 327 margin-left: auto; 328 328 margin-right: auto; … … 336 336 float: right; 337 337 } 338 338 339 .wp _caption {339 .wp-caption { 340 340 border: 1px solid #ddd; 341 341 text-align: center; 342 342 background-color: #f3f3f3; … … 348 348 border-radius: 3px; 349 349 } 350 350 351 .wp _caption img {351 .wp-caption img { 352 352 margin: 0; 353 353 padding: 0; 354 354 border: 0 none; 355 355 } 356 356 357 .wp _caption_dd{357 .wp-caption p.wp-caption-text { 358 358 font-size: 11px; 359 359 line-height: 17px; 360 360 padding: 0 4px 5px; -
wp-content/themes/default/style.css
640 640 641 641 /* Captions */ 642 642 .aligncenter, 643 d l.aligncenter {643 div.aligncenter { 644 644 display: block; 645 645 margin-left: auto; 646 646 margin-right: auto; 647 647 } 648 648 649 .wp _caption {649 .wp-caption { 650 650 border: 1px solid #ddd; 651 651 text-align: center; 652 652 background-color: #f3f3f3; … … 658 658 border-radius: 3px; 659 659 } 660 660 661 .wp _caption img {661 .wp-caption img { 662 662 margin: 0; 663 663 padding: 0; 664 664 border: 0 none; 665 665 } 666 666 667 .wp _caption_dd{667 .wp-caption p.wp-caption-text { 668 668 font-size: 11px; 669 669 line-height: 17px; 670 670 padding: 0 4px 5px; -
wp-includes/formatting.php
1124 1124 // Filtering a blank results in an annoying <br />\n 1125 1125 if ( empty($text) ) return apply_filters('richedit_pre', ''); 1126 1126 1127 $output = $text; 1128 $output = convert_chars($output); 1127 $output = convert_chars($text); 1129 1128 $output = wpautop($output); 1129 $output = htmlspecialchars($output, ENT_NOQUOTES); 1130 1130 1131 // These must be double-escaped or planets will collide.1132 $output = str_replace('<', '&lt;', $output);1133 $output = str_replace('>', '&gt;', $output);1134 1135 // These should be entities too1136 $output = str_replace('<', '<', $output);1137 $output = str_replace('>', '>', $output);1138 1139 1131 return apply_filters('richedit_pre', $output); 1140 1132 } 1141 1133 -
wp-includes/js/tinymce/langs/wp-langs.php
434 434 s110:"' . mce_escape( __('110%') ) . '", 435 435 s120:"' . mce_escape( __('120%') ) . '", 436 436 s130:"' . mce_escape( __('130%') ) . '", 437 caption:"' . mce_escape( __('Caption') ) . '" 437 img_title:"' . mce_escape( __('Edit Image Title') ) . '", 438 caption:"' . mce_escape( __('Edit Image Caption') ) . '" 438 439 }); 439 440 '; 440 441 ?> 442 No newline at end of file -
wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css
62 62 width: 107px; 63 63 } 64 64 65 #media-upload #basic th.label { 66 padding: 5px 5px 5px 0; 67 } 68 65 69 .show-align { 66 70 height: 200px; 67 71 width: 480px; -
wp-includes/js/tinymce/plugins/wpeditimage/editimage.html
7 7 <script type="text/javascript" src="js/editimage.js?ver=311"></script> 8 8 <script type="text/javascript" src="../../utils/form_utils.js?ver=311"></script> 9 9 10 <link rel="stylesheet" href="css/editimage.css?ver=311 " type="text/css" media="all" />10 <link rel="stylesheet" href="css/editimage.css?ver=311b" type="text/css" media="all" /> 11 11 <link rel="stylesheet" href="../../../../../wp-admin/css/media.css?ver=2.6-beta1" type="text/css" media="all" /> 12 12 <script type="text/javascript"> 13 13 if ( 'rtl' == tinyMCEPopup.editor.getParam('directionality','') ) … … 77 77 <tr class=""> 78 78 <th valign="top" scope="row" class="label"> 79 79 <label for="img_title"> 80 <span class="alignleft">{#advanced_dlg.link_titlefield}</span> 81 <span class="alignright"><abbr title="required" class="required">*</abbr></span> 80 <span class="alignleft">{#wpeditimage.img_title}</span> 82 81 </label> 83 82 </th> 84 83 <td class="field"> -
wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js
15 15 if ( ed.dom.getAttrib(el, 'class').indexOf('mceItem') != -1 || el.nodeName != 'IMG' ) 16 16 return; 17 17 18 tb_show('', url + '/editimage.html? TB_iframe=true');18 tb_show('', url + '/editimage.html?ver=311b&TB_iframe=true'); 19 19 tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' ); 20 20 }); 21 21 … … 74 74 75 75 _do_shcode : function(co) { 76 76 return co.replace(/\[wp_caption([^\]]+)\]([\s\S]+?)\[\/wp_caption\][\s\u00a0]*/g, function(a,b,c){ 77 b = b.replace(/\\'|\\'|\\'/g, ''').replace(/\\"|\\"/g, '"'); 78 c = c.replace(/\\'|\\'/g, ''').replace(/\\"/g, '"'); 77 79 var id = b.match(/id=['"]([^'"]+)/i), cls = b.match(/align=['"]([^'"]+)/i); 78 80 var w = b.match(/width=['"]([0-9]+)/), cap = b.match(/caption=['"]([^'"]+)/i); 79 81 … … 91 93 }, 92 94 93 95 _get_shcode : function(co) { 94 return co.replace(/<div class="mceTemp[^"]*">\s*<dl([^>]+)>\s*<dt[^>]+>([\s\S]+?)<\/dt>\s*<dd[^>]+>( [^<]+)<\/dd>\s*<\/dl>\s*<\/div>\s*/gi, function(a,b,c,cap){96 return co.replace(/<div class="mceTemp[^"]*">\s*<dl([^>]+)>\s*<dt[^>]+>([\s\S]+?)<\/dt>\s*<dd[^>]+>(.+?)<\/dd>\s*<\/dl>\s*<\/div>\s*/gi, function(a,b,c,cap){ 95 97 var id = b.match(/id=['"]([^'"]+)/i), cls = b.match(/class=['"]([^'"]+)/i); 96 98 var w = c.match(/width=['"]([0-9]+)/); 97 99 … … 101 103 102 104 if ( ! w || ! cap ) return c; 103 105 cls = cls.match(/align[^ '"]+/) || 'alignnone'; 106 cap = cap.replace(/<\S[^<>]*>/gi, '').replace(/'/g, ''').replace(/"/g, '"'); 104 107 105 108 return '[wp_caption id="'+id+'" align="'+cls+'" width="'+w+'" caption="'+cap+'"]'+c+'[/wp_caption]'; 106 109 }); -
wp-includes/js/tinymce/tiny_mce_config.php
222 222 // Setup cache info 223 223 if ( $disk_cache ) { 224 224 225 $cacheKey = apply_filters('tiny_mce_version', '2008070 6');225 $cacheKey = apply_filters('tiny_mce_version', '20080708'); 226 226 227 227 foreach ( $initArray as $v ) 228 228 $cacheKey .= $v; -
wp-includes/media.php
350 350 return $html; 351 351 } 352 352 353 add_shortcode('wp_caption', ' wp_caption_shortcode');353 add_shortcode('wp_caption', 'img_caption_shortcode'); 354 354 355 function wp_caption_shortcode($attr, $content = null) {355 function img_caption_shortcode($attr, $content = null) { 356 356 357 357 // Allow plugins/themes to override the default caption template. 358 $output = apply_filters(' wp_caption_shortcode', '', $attr, $content);358 $output = apply_filters('img_caption_shortcode', '', $attr, $content); 359 359 if ( $output != '' ) 360 360 return $output; 361 361 … … 371 371 372 372 if ( $id ) $id = 'id="' . $id . '" '; 373 373 374 return '<d l ' . $id . 'class="wp_caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">'375 . '<dt class="wp_caption_dt">' . $content . '</dt><dd class="wp_caption_dd">' . $caption . '</dd></dl>';374 return '<div ' . $id . 'class="wp-caption ' . $align . '" style="width: ' . (10 + (int) $width) . 'px">' 375 . $content . '<p class="wp-caption-text">' . $caption . '</p></div>'; 376 376 } 377 377 378 378 add_shortcode('gallery', 'gallery_shortcode'); -
wp-includes/script-loader.php
37 37 $scripts->add( 'editor_functions', '/wp-admin/js/editor.js', false, '20080706' ); 38 38 39 39 // Modify this version when tinyMCE plugins are changed. 40 $mce_version = apply_filters('tiny_mce_version', '2008070 6');40 $mce_version = apply_filters('tiny_mce_version', '20080708'); 41 41 $scripts->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version ); 42 42 43 43 $scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');