diff --git a/wp-admin/css/global.css b/wp-admin/css/global.css index a8944e04e0..4f3b7a08ac 100644 --- a/wp-admin/css/global.css +++ b/wp-admin/css/global.css @@ -392,13 +392,13 @@ h6 { .wrap .updated, .wrap .error { - margin: 5px 0 12px; + margin: 5px 0; } .wrap h2 { font: italic normal normal 24px/29px Georgia, "Times New Roman", "Bitstream Charter", Times, serif; margin: 0; - padding: 12px 15px 1px 0; + padding: 12px 15px 2px 0; text-shadow: rgba(255,255,255,1) 0px 1px 0px; } diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 789b290e0d..69287de481 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -134,6 +134,8 @@ function image_add_caption( $html, $id, $alt, $title, $align, $url, $size ) { $html = preg_replace( '/align[^\s\'"]+\s?/', '', $html ); if ( empty($align) ) $align = 'none'; + $alt = ! empty($alt) ? addslashes($alt) : ''; + $shcode = '[caption id="' . $id . '" align="align' . $align . '" width="' . $width . '" caption="' . $alt . '"]' . $html . '[/caption]'; diff --git a/wp-admin/js/gallery.js b/wp-admin/js/gallery.js index 94133409d7..c0be92f8e5 100644 --- a/wp-admin/js/gallery.js +++ b/wp-admin/js/gallery.js @@ -140,10 +140,8 @@ var wpgallery = { if (t.el.nodeName != 'IMG') return; all = ed.dom.decode(ed.dom.getAttrib(t.el, 'title')); - all = all.substr(0, all.lastIndexOf(']')); all = all.replace(/\s*(order|link|columns|orderby)=['"]([^'"]+)['"]/gi, ''); all += t.getSettings(); - all += ']'; ed.dom.setAttrib(t.el, 'title', all); t.getWin().tb_remove(); diff --git a/wp-admin/wp-admin.css b/wp-admin/wp-admin.css index b276d79dd1..d7a61af1da 100644 --- a/wp-admin/wp-admin.css +++ b/wp-admin/wp-admin.css @@ -3115,7 +3115,7 @@ table.fixed { .icon32 { float: left; - height: 36px; - margin: 8px 6px 0 0; + height: 34px; + margin: 7px 6px 0 0; width: 36px; } diff --git a/wp-includes/js/tinymce/langs/wp-langs-en.js b/wp-includes/js/tinymce/langs/wp-langs-en.js index 4c8ab54e0e..e464a8ef48 100644 --- a/wp-includes/js/tinymce/langs/wp-langs-en.js +++ b/wp-includes/js/tinymce/langs/wp-langs-en.js @@ -389,7 +389,9 @@ wp_page_alt:"Next page...", add_media:"Add Media", add_image:"Add an Image", add_video:"Add Video", -add_audio:"Add Audio" +add_audio:"Add Audio", +editgallery:"Edit Gallery", +delgallery:"Delete Gallery" }); tinyMCE.addI18n("en.wpeditimage",{ diff --git a/wp-includes/js/tinymce/langs/wp-langs.php b/wp-includes/js/tinymce/langs/wp-langs.php index 49ecb48b10..af6d6d80e6 100644 --- a/wp-includes/js/tinymce/langs/wp-langs.php +++ b/wp-includes/js/tinymce/langs/wp-langs.php @@ -412,7 +412,9 @@ wp_page_alt:"' . mce_escape( __('Next page...') ) . '", add_media:"' . mce_escape( __('Add Media') ) . '", add_image:"' . mce_escape( __('Add an Image') ) . '", add_video:"' . mce_escape( __('Add Video') ) . '", -add_audio:"' . mce_escape( __('Add Audio') ) . '" +add_audio:"' . mce_escape( __('Add Audio') ) . '", +editgallery:"' . mce_escape( __('Edit Gallery') ) . '", +delgallery:"' . mce_escape( __('Delete Gallery') ) . '" }); tinyMCE.addI18n("' . $language . '.wpeditimage",{ diff --git a/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js b/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js index 19a6aff4f0..bdb6b7c71b 100644 --- a/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js +++ b/wp-includes/js/tinymce/plugins/wpgallery/editor_plugin.js @@ -17,25 +17,7 @@ var post_id = tinymce.DOM.get('post_ID').value; tb_show('', tinymce.documentBaseURL + '/media-upload.php?post_id='+post_id+'&tab=gallery&TB_iframe=true'); -/* - tinymce.DOM.setStyles('TB_window', { - 'width':( W - 50 )+'px', - 'height':'430px', - 'margin-left':'-'+parseInt((( W - 50 ) / 2),10) + 'px' - }); - if ( ! tinymce.isIE6 ) { - tinymce.DOM.setStyles('TB_window', { - 'top':'30px', - 'marginTop':'0' - }); - } - - tinymce.DOM.setStyles('TB_iframeContent', { - 'width':( W - 50 )+'px', - 'height':'400px' - }); -*/ tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' ); }); @@ -80,8 +62,8 @@ }, _do_gallery : function(co) { - return co.replace(/\[gallery([^\]]*)\]/g, function(a){ - return ''; + return co.replace(/\[gallery([^\]]*)\]/g, function(a,b){ + return ''; }); }, @@ -96,7 +78,7 @@ var cls = getAttr(im, 'class'); if ( cls.indexOf('wpGallery') != -1 ) - return '

'+getAttr(im, 'title')+'

'; + return '

['+tinymce.trim(getAttr(im, 'title'))+']

'; return a; }); @@ -146,7 +128,7 @@ id : 'wp_editgallery', width : '24', height : '24', - title : ed.getLang('wpgallery.edit') + title : ed.getLang('wordpress.editgallery') }); wp_editgallery.onmousedown = function(e) { @@ -161,7 +143,7 @@ id : 'wp_delgallery', width : '24', height : '24', - title : ed.getLang('wpgallery.del') + title : ed.getLang('wordpress.delgallery') }); wp_delgallery.onmousedown = function(e) { diff --git a/wp-includes/js/tinymce/wordpress.css b/wp-includes/js/tinymce/wordpress.css index eaf9a58cc1..eff18ff22d 100644 --- a/wp-includes/js/tinymce/wordpress.css +++ b/wp-includes/js/tinymce/wordpress.css @@ -1,4 +1,7 @@ /* This file contains the CSS data for the editable area(iframe) of TinyMCE */ +html { + background-color: #fff; +} .aligncenter, dl.aligncenter { @@ -48,9 +51,7 @@ img.wpGallery { } body.mceContentBody { - background: #fff; - color: #000; - font: 13px/19px "Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; + font: 13px/19px Georgia, "Times New Roman", "Bitstream Charter", Times, serif; padding: 0.6em; margin: 0; } diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 37065c8b84..a28d4e8c03 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -61,7 +61,7 @@ function wp_default_scripts( &$scripts ) { // Modify this version when tinyMCE plugins are changed. function mce_version() { - return '20081125b'; + return '20081127'; } add_filter( 'tiny_mce_version', 'mce_version' ); @@ -225,7 +225,7 @@ function wp_default_scripts( &$scripts ) { 'edit' => __('Edit'), 'submittedOn' => __('Submitted on:') ) ); - $scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20081125' ); + $scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20081127' ); $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20081125' ); $scripts->add( 'admin-widgets', '/wp-admin/js/widgets.js', array( 'interface' ), '20081120' );