Changes in branches/2.6 [8582:8621]
- Location:
- branches/2.6
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-admin/css/ie-rtl.css
r8582 r8621 52 52 text-align: left; 53 53 } 54 55 /* IE6 */ 56 57 /* Search box gets stuck to the right, hidden outside view */ 58 * html #post-search, * html #widget-search { 59 height: 1% !important; 60 right: 600px !important; 61 } 62 63 /* Sidemenu tends to disapear, widget filter area tends to jump around when adding filters - Peek-A-Boo! */ 64 * html #sidemenu, * html #widgets-filter { 65 height: 1% !important; 66 } 67 68 /* Media upload window gets stuck to the right, hidden outside view */ 69 * html #TB_window { 70 left: 100px !important; 71 } 72 73 /* Bad floating in the sub-sub-sub menu makes links un-clickable */ 74 * html .subsubsub li { 75 display: block; float: right; margin: 0 2px; 76 } 77 78 /* Fixing floats on sub-sub-sub menu skewes the view-switch menu on comments management page */ 79 * html .wrap .view-switch { 80 margin-top: 1px; 81 } 82 83 /* Theme selector on theme edit page gets stuck to the left, hidden outside view */ 84 * html #themeselector { 85 position: static; 86 } 87 88 /* Template edit area floats beneath template list, gets RTLed */ 89 * html #template { 90 float: right; 91 overflow: hidden; 92 width: 755px !important; 93 } 94 * html #template #newcontent { 95 direction: ltr; 96 } 97 98 /* Editor */ 99 100 .mceToolbar { 101 direction: ltr; 102 text-align: left; 103 } -
branches/2.6/wp-admin/gears-manifest.php
r8582 r8621 65 65 { 66 66 "betaManifestVersion" : 1, 67 "version" : "<?php echo $man_version; ?>_20080 731",67 "version" : "<?php echo $man_version; ?>_20080810", 68 68 "entries" : [ 69 69 <?php echo $defaults; ?> … … 104 104 { "url" : "images/yes.png" }, 105 105 106 { "url" : "../wp-includes/images/crystal/archive.png" }, 107 { "url" : "../wp-includes/images/crystal/audio.png" }, 108 { "url" : "../wp-includes/images/crystal/code.png" }, 109 { "url" : "../wp-includes/images/crystal/default.png" }, 110 { "url" : "../wp-includes/images/crystal/document.png" }, 111 { "url" : "../wp-includes/images/crystal/interactive.png" }, 112 { "url" : "../wp-includes/images/crystal/text.png" }, 113 { "url" : "../wp-includes/images/crystal/video.png" }, 114 { "url" : "../wp-includes/images/crystal/spreadsheet.png" }, 115 { "url" : "../wp-includes/images/rss.png" }, 116 { "url" : "../wp-includes/js/thickbox/loadingAnimation.gif" }, 117 { "url" : "../wp-includes/js/thickbox/tb-close.png" }, 118 { "url" : "../wp-includes/js/swfupload/swfupload_f9.swf" }, 119 106 <?php if ( is_file(ABSPATH.'/wp-includes/js/tinymce/tiny_mce.js') ) { ?> 120 107 { "url" : "../wp-includes/js/tinymce/tiny_mce_popup.js?ver=311" }, 121 108 { "url" : "../wp-includes/js/tinymce/utils/mctabs.js?ver=311" }, … … 132 119 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/source_editor.js?ver=311" }, 133 120 { "url" : "../wp-includes/js/tinymce/themes/advanced/js/anchor.js?ver=311" }, 134 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js?ver=311 f" },121 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js?ver=311g" }, 135 122 { "url" : "../wp-includes/js/tinymce/tiny_mce.js?ver=311" }, 136 123 { "url" : "../wp-includes/js/tinymce/themes/advanced/editor_template.js?ver=311" }, … … 149 136 { "url" : "../wp-includes/js/tinymce/plugins/fullscreen/fullscreen.htm?ver=311" }, 150 137 { "url" : "../wp-includes/js/tinymce/plugins/inlinepopups/template.htm?ver=311" }, 151 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=311 f" },138 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/editimage.html?ver=311g" }, 152 139 { "url" : "../wp-includes/js/tinymce/wp-mce-help.php?ver=311" }, 153 140 … … 162 149 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/pasteword.css?ver=311" }, 163 150 { "url" : "../wp-includes/js/tinymce/plugins/paste/css/blank.css?ver=311" }, 164 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=311 f" },151 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage.css?ver=311g" }, 165 152 { "url" : "../wp-includes/js/tinymce/plugins/wpeditimage/css/editimage-rtl.css?ver=311" }, 166 153 { "url" : "../wp-includes/js/tinymce/wordpress.css?ver=311" }, … … 204 191 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/media.gif" }, 205 192 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/video.gif" }, 206 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif" } 193 { "url" : "../wp-includes/js/tinymce/plugins/wordpress/img/audio.gif" }, 194 <?php } ?> 195 196 { "url" : "../wp-includes/images/crystal/archive.png" }, 197 { "url" : "../wp-includes/images/crystal/audio.png" }, 198 { "url" : "../wp-includes/images/crystal/code.png" }, 199 { "url" : "../wp-includes/images/crystal/default.png" }, 200 { "url" : "../wp-includes/images/crystal/document.png" }, 201 { "url" : "../wp-includes/images/crystal/interactive.png" }, 202 { "url" : "../wp-includes/images/crystal/text.png" }, 203 { "url" : "../wp-includes/images/crystal/video.png" }, 204 { "url" : "../wp-includes/images/crystal/spreadsheet.png" }, 205 { "url" : "../wp-includes/images/rss.png" }, 206 { "url" : "../wp-includes/js/thickbox/loadingAnimation.gif" }, 207 { "url" : "../wp-includes/js/thickbox/tb-close.png" }, 208 { "url" : "../wp-includes/js/swfupload/swfupload_f9.swf" } 207 209 ]} -
branches/2.6/wp-admin/includes/media.php
r8582 r8621 68 68 function image_add_caption( $html, $id, $alt, $title, $align, $url, $size ) { 69 69 70 // CAPTIONS_OFF is temporary. Do not use it. 71 if ( empty($alt) || ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) ) return $html; 70 if ( empty($alt) || apply_filters( 'disable_captions', '' ) ) return $html; 72 71 $id = ( 0 < (int) $id ) ? 'attachment_' . $id : ''; 73 72 … … 282 281 $keys = array_keys($_POST['send']); 283 282 $send_id = (int) array_shift($keys); 284 $attachment = $_POST['attachments'][$send_id];283 $attachment = stripslashes_deep( $_POST['attachments'][$send_id] ); 285 284 $html = $attachment['post_title']; 286 285 if ( !empty($attachment['url']) ) { … … 511 510 $form_fields['post_title']['required'] = true; 512 511 513 // CAPTIONS_OFF is temporary. Do not use it. 514 if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) { 515 $form_fields['post_excerpt']['label'] = __('Alternate Text'); 516 $form_fields['post_excerpt']['helps'][] = __('Alt text for the image, e.g. "The Mona Lisa"'); 517 } else { 518 $form_fields['post_excerpt']['label'] = __('Caption'); 519 $form_fields['post_excerpt']['helps'][] = __('Also used as alternate text for the image'); 520 } 512 $form_fields['post_excerpt']['label'] = __('Caption'); 513 $form_fields['post_excerpt']['helps'][] = __('Also used as alternate text for the image'); 521 514 522 515 $form_fields['post_content']['label'] = __('Description'); … … 607 600 $link = get_attachment_link($post->ID); 608 601 609 // CAPTIONS_OFF is temporary. Do not use it.610 if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF )611 $alt = __('Alternate Text');612 else613 $alt = __('Caption');614 615 602 $form_fields = array( 616 603 'post_title' => array( … … 619 606 ), 620 607 'post_excerpt' => array( 621 'label' => $alt,608 'label' => __('Caption'), 622 609 'value' => $edit_post->post_excerpt, 623 610 ), … … 1020 1007 if ( f.alt.value ) { 1021 1008 alt = f.alt.value.replace(/['"<>]+/g, ''); 1022 <?php if ( ! defined('CAPTIONS_OFF') || true != CAPTIONS_OFF ) { // CAPTIONS_OFF is temporary. Do not use it.?>1009 <?php if ( ! apply_filters( 'disable_captions', '' ) ) { ?> 1023 1010 caption = f.alt.value.replace(/'/g, ''').replace(/"/g, '"').replace(/</g, '<').replace(/>/g, '>'); 1024 1011 <?php } ?> … … 1278 1265 1279 1266 function type_form_image() { 1280 $form = ' 1267 1268 if ( apply_filters( 'disable_captions', '' ) ) { 1269 $alt = __('Alternate Text'); 1270 $alt_help = __('Alt text for the image, e.g. "The Mona Lisa"'); 1271 } else { 1272 $alt = __('Image Caption'); 1273 $alt_help = __('Also used as alternate text for the image'); 1274 } 1275 1276 return ' 1281 1277 <table class="describe"><tbody> 1282 1278 <tr> … … 1295 1291 <td class="field"><p><input id="title" name="title" value="" type="text" aria-required="true" /></p></td> 1296 1292 </tr> 1297 '; 1298 // CAPTIONS_OFF is temporary. Do not use it. 1299 if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) { 1300 $form .= ' 1293 1301 1294 <tr> 1302 1295 <th valign="top" scope="row" class="label"> 1303 <span class="alignleft"><label for="alt">' . __('Alternate Text'). '</label></span>1296 <span class="alignleft"><label for="alt">' . $alt . '</label></span> 1304 1297 </th> 1305 1298 <td class="field"><input id="alt" name="alt" value="" type="text" aria-required="true" /> 1306 <p class="help">' . __('Alt text for the image, e.g. "The Mona Lisa"') . '</p></td> 1307 </tr> 1308 '; 1309 1310 } else { 1311 $form .= ' 1312 <tr> 1313 <th valign="top" scope="row" class="label"> 1314 <span class="alignleft"><label for="alt">' . __('Image Caption') . '</label></span> 1315 </th> 1316 <td class="field"><input id="alt" name="alt" value="" type="text" aria-required="true" /> 1317 <p class="help">' . __('Also used as alternate text for the image') . '</p></td> 1318 </tr> 1319 '; 1320 } 1321 $form .= ' 1299 <p class="help">' . $alt_help . '</p></td> 1300 </tr> 1301 1322 1302 <tr class="align"> 1323 1303 <th valign="top" scope="row" class="label"><p><label for="align">' . __('Alignment') . '</label></p></th> … … 1354 1334 '; 1355 1335 1356 return $form;1357 1336 } 1358 1337 -
branches/2.6/wp-admin/includes/taxonomy.php
r8582 r8621 134 134 foreach ( $tags as $tag ) 135 135 $tag_names[] = $tag->name; 136 $tags_to_edit = join( ', 136 $tags_to_edit = join( ',', $tag_names ); 137 137 $tags_to_edit = attribute_escape( $tags_to_edit ); 138 138 $tags_to_edit = apply_filters( 'tags_to_edit', $tags_to_edit ); -
branches/2.6/wp-admin/install-helper.php
r8582 r8621 10 10 ** false on error 11 11 */ 12 if ( ! function_exists('maybe_create_table') ) : 12 13 function maybe_create_table($table_name, $create_ddl) { 13 14 global $wpdb; … … 27 28 return false; 28 29 } 30 endif; 29 31 30 32 /** … … 34 36 ** false on error 35 37 */ 38 if ( ! function_exists('maybe_add_column') ) : 36 39 function maybe_add_column($table_name, $column_name, $create_ddl) { 37 40 global $wpdb, $debug; … … 52 55 return false; 53 56 } 54 57 endif; 55 58 56 59 /** -
branches/2.6/wp-admin/rtl.css
r8582 r8621 11 11 .code, #quicktags #ed_code { 12 12 font-family: monospace !important; 13 } 14 15 /* Clears update nag, so it doesn't hide the submenu */ 16 #update-nag { 17 clear: both; 18 margin-bottom: 1em; 13 19 } 14 20 … … 114 120 } 115 121 116 .tablenav div 117 { 118 float:right!important 122 .tablenav div 123 { 124 float:right !important; 125 direction: rtl; 119 126 } 120 127 … … 323 330 clear: both; 324 331 } 332 333 /* WPH - TinyMCE */ 334 335 #media-items th.label { 336 width: 120px; 337 } 338 #media-items th.label .alignleft { 339 width: 100px; 340 } 341 342 #media-items th.label .alignright { 343 width: 16px; 344 height: 16px; 345 } 346 347 /* LTRs some url- and code-only form fields */ 348 input#href, input#src, input#class_name { 349 direction: ltr; 350 text-align: left; 351 } 352 353 #sidemenu a { 354 float: right; 355 } 356 357 thead.media-item-info { 358 float: left; 359 margin-bottom: 18px; 360 width: 100%; 361 } 362 363 thead.media-item-info td { 364 width: 100%; 365 text-align: left; 366 } 367 368 thead.media-item-info td.A1B1 { 369 width: 150px; 370 } 371 372 #gallery-form table.widefat th { 373 float: left; 374 width: 74%; 375 text-align: center; 376 } 377 378 #gallery-form table.widefat th.order-head { 379 width: 18%; 380 } 381 382 #media-upload tr.align td.field, #media-upload tr.image-size td.field { 383 text-align: right !important; 384 } 385 386 #media-upload tr.align td.field { 387 float:right; 388 margin-right:-15px; 389 } 390 391 tr.image-size label { 392 display:inline; 393 margin:0 0 0 1em !important; 394 } 395 396 #library-form { 397 float: right; 398 } 399 400 #filter .subsubsub { 401 direction: rtl; 402 text-align: right; 403 } 404 405 #media-upload form#filter { 406 margin-right: -20px; 407 } -
branches/2.6/wp-includes/canonical.php
r8582 r8621 166 166 foreach ( array('single', 'category', 'page', 'day', 'month', 'year') as $type ) { 167 167 $func = 'is_' . $type; 168 if ( call_user_func($func) ) 168 if ( call_user_func($func) ) { 169 169 $user_ts_type = $type; 170 170 break; 171 171 } 172 172 } 173 } 173 174 $redirect['path'] = user_trailingslashit($redirect['path'], $user_ts_type); 174 175 } elseif ( is_home() ) { -
branches/2.6/wp-includes/js/tinymce/plugins/wpeditimage/editimage.html
r8582 r8621 5 5 <title></title> 6 6 7 <script type="text/javascript" src="js/editimage.js?ver=311 f"></script>7 <script type="text/javascript" src="js/editimage.js?ver=311g"></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 f" type="text/css" media="all" />11 <link rel="stylesheet" href="../../../../../wp-admin/css/media.css?ver=2.6 " type="text/css" media="all" />10 <link rel="stylesheet" href="css/editimage.css?ver=311g" type="text/css" media="all" /> 11 <link rel="stylesheet" href="../../../../../wp-admin/css/media.css?ver=2.6.1" type="text/css" media="all" /> 12 12 <script type="text/javascript"> 13 13 if ( 'rtl' == tinyMCEPopup.editor.getParam('directionality','') ) -
branches/2.6/wp-includes/js/tinymce/plugins/wpeditimage/editor_plugin.js
r8582 r8621 16 16 return; 17 17 18 tb_show('', url + '/editimage.html?ver=311 f&TB_iframe=true');18 tb_show('', url + '/editimage.html?ver=311g&TB_iframe=true'); 19 19 tinymce.DOM.setStyle( ['TB_overlay','TB_window','TB_load'], 'z-index', '999999' ); 20 20 }); -
branches/2.6/wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.js
r8582 r8621 249 249 document.dir = tinyMCEPopup.editor.getParam('directionality',''); 250 250 251 if ( ! tinyMCEPopup.editor.getParam('wpeditimage_do_captions', true) )251 if ( tinyMCEPopup.editor.getParam('wpeditimage_disable_captions', false) ) 252 252 t.I('cap_field').style.display = 'none'; 253 253 -
branches/2.6/wp-includes/js/tinymce/themes/advanced/skins/wp_theme/content.css
r8582 r8621 9 9 h6 {font-size: .75em} 10 10 .mceItemTable, .mceItemTable td, .mceItemTable th, .mceItemTable caption, .mceItemVisualAid {border: 1px dashed #BBB;} 11 a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url( img/items.gif) no-repeat bottom left;}12 img.mceItemAnchor {width:12px; height:12px; background:url( img/items.gif) no-repeat;}11 a.mceItemAnchor {width:12px; line-height:6px; overflow:hidden; padding-left:12px; background:url(../default/img/items.gif) no-repeat bottom left;} 12 img.mceItemAnchor {width:12px; height:12px; background:url(../default/img/items.gif) no-repeat;} 13 13 img {border:0;} 14 14 table {cursor:default} -
branches/2.6/wp-includes/js/tinymce/tiny_mce_config.php
r8582 r8621 131 131 $mce_buttons_4 = implode($mce_buttons_4, ','); 132 132 133 $ do_captions = ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF ) ? false : true;133 $no_captions = ( apply_filters( 'disable_captions', '' ) ) ? true : false; 134 134 135 135 // TinyMCE init settings … … 166 166 'content_css' => "$mce_css", 167 167 'save_callback' => 'switchEditors.saveCallback', 168 'wpeditimage_d o_captions' => $do_captions,168 'wpeditimage_disable_captions' => $no_captions, 169 169 'plugins' => "$plugins", 170 170 // pass-through the settings for compression and caching, so they can be changed with "tiny_mce_before_init" … … 226 226 if ( $disk_cache ) { 227 227 228 $cacheKey = apply_filters('tiny_mce_version', '20080 731');228 $cacheKey = apply_filters('tiny_mce_version', '20080810'); 229 229 230 230 foreach ( $initArray as $v ) -
branches/2.6/wp-includes/js/tinymce/wordpress.css
r8582 r8621 77 77 } 78 78 79 img.mceItemAnchor {80 width: 12px;81 height: 12px;82 background: url(img/items.gif) no-repeat;83 }84 85 a.mceItemAnchor {86 width: 12px;87 line-height: 6px;88 overflow: hidden;89 padding-left: 12px;90 background: url(img/items.gif) no-repeat bottom left;91 }92 93 79 .mceIEcenter { 94 80 text-align: center; -
branches/2.6/wp-includes/media.php
r8582 r8621 355 355 356 356 function img_caption_shortcode($attr, $content = null) { 357 358 if ( defined('CAPTIONS_OFF') && true == CAPTIONS_OFF )359 return $content;360 357 361 358 // Allow plugins/themes to override the default caption template. -
branches/2.6/wp-includes/rewrite.php
r8582 r8621 448 448 449 449 if (empty($this->category_base)) 450 $this->category_base = 'category'; 451 $this->category_structure = trailingslashit( $this->front . $this->category_base ); 450 $this->category_structure = trailingslashit( $this->front . 'category' ); 451 else 452 $this->category_structure = trailingslashit( '/' . $this->root . $this->category_base ); 452 453 453 454 $this->category_structure .= '%category%'; … … 467 468 468 469 if (empty($this->tag_base)) 469 $this->tag_base = 'tag'; 470 $this->tag_structure = trailingslashit( $this->front . $this->tag_base ); 470 $this->tag_structure = trailingslashit( $this->front . 'tag' ); 471 else 472 $this->tag_structure = trailingslashit( '/' . $this->root . $this->tag_base ); 471 473 472 474 $this->tag_structure .= '%tag%'; -
branches/2.6/wp-includes/script-loader.php
r8582 r8621 38 38 39 39 // Modify this version when tinyMCE plugins are changed. 40 $mce_version = apply_filters('tiny_mce_version', '20080 710');40 $mce_version = apply_filters('tiny_mce_version', '20080810'); 41 41 $scripts->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('editor_functions'), $mce_version ); 42 42 -
branches/2.6/wp-includes/version.php
r8582 r8621 9 9 * @global string $wp_version 10 10 */ 11 $wp_version = '2.6.1-beta 1';11 $wp_version = '2.6.1-beta2'; 12 12 13 13 /** … … 16 16 * @global int $wp_db_version 17 17 */ 18 $wp_db_version = 820 3;18 $wp_db_version = 8204; 19 19 20 20 ?>
Note: See TracChangeset
for help on using the changeset viewer.