Changeset 22634
- Timestamp:
- 11/17/2012 03:11:29 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-activate.php
r22266 r22634 3 3 * Confirms that the activation key that is sent in an email after a user signs 4 4 * up for a new blog matches the key for that user and then displays confirmation. 5 * 5 * 6 6 * @package WordPress 7 7 */ … … 27 27 /** 28 28 * Adds an action hook specific to this page that fires on wp_head 29 * 29 * 30 30 * @since MU 31 31 */ … … 37 37 /** 38 38 * Loads styles specific to this page. 39 * 39 * 40 40 * @since MU 41 41 */ -
trunk/wp-admin/css/wp-admin-rtl.css
r22629 r22634 476 476 margin-right: 52px; 477 477 } 478 478 479 479 .auto-fold #adminmenu div.wp-menu-image { 480 480 float: right; -
trunk/wp-admin/css/wp-admin.css
r22629 r22634 8381 8381 background-size: 21px 37px; 8382 8382 } 8383 8383 8384 8384 .welcome-panel .welcome-panel-close:before { 8385 8385 background-image: url('../images/xit-2x.gif'); 8386 8386 background-size: 20px auto; 8387 8387 } 8388 8388 8389 8389 .welcome-panel .welcome-add-page { 8390 8390 background: url('../images/welcome-icons-2x.png') no-repeat 0 -1px; … … 8421 8421 background-size: 16px; 8422 8422 } 8423 8423 8424 8424 .login h1 a { 8425 8425 background-image: url('../images/wordpress-logo-2x.png?ver=20120412'); … … 8431 8431 background-size: 173px 194px; 8432 8432 } 8433 8433 8434 8434 .wp-full-overlay .collapse-sidebar-arrow { 8435 8435 background-image: url('../images/arrows-2x.png'); 8436 8436 background-size: 15px 123px; 8437 8437 } 8438 8438 8439 8439 .pressthis a span { 8440 8440 background-image: url(../images/press-this-2x.png?v=20121105); 8441 8441 } 8442 8442 8443 8443 .imgedit-crop, 8444 8444 .imgedit-rleft, … … 8451 8451 background-size: 260px 64px; 8452 8452 } 8453 8453 8454 8454 .spinner, 8455 8455 .imgedit-wait, -
trunk/wp-admin/customize.php
r22474 r22634 72 72 <div class="wp-full-overlay expanded"> 73 73 <form id="customize-controls" class="wrap wp-full-overlay-sidebar"> 74 74 75 75 <div id="customize-header-actions" class="wp-full-overlay-header"> 76 76 <?php … … 83 83 </a> 84 84 </div> 85 85 86 86 <?php 87 87 $screenshot = $wp_customize->theme()->get_screenshot(); -
trunk/wp-admin/install.php
r22419 r22634 59 59 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 60 60 <title><?php _e( 'WordPress › Installation' ); ?></title> 61 <?php 61 <?php 62 62 wp_admin_css( 'install', true ); 63 63 ?> -
trunk/wp-admin/menu-header.php
r21877 r22634 110 110 echo "\n\t<ul class='wp-submenu wp-submenu-wrap'>"; 111 111 echo "<li class='wp-submenu-head'>{$item[0]}</li>"; 112 112 113 113 $first = true; 114 114 foreach ( $submenu_items as $sub_key => $sub_item ) { -
trunk/wp-admin/plugin-install.php
r22026 r22634 48 48 '<p>' . __('If you know what you’re looking for, Search is your best bet. The Search screen has options to search the WordPress.org Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '</p>' . 49 49 '<p>' . __('If you just want to get an idea of what’s available, you can browse Featured, Popular, and Newest plugins by using the links in the upper left of the screen. These sections rotate regularly.') . '</p>' . 50 '<p>' . __('You can also browse a user’s favorite plugins, by using the Favorites link in the upper left of the screen and entering their WordPress.org username.') . '</p>' . 50 '<p>' . __('You can also browse a user’s favorite plugins, by using the Favorites link in the upper left of the screen and entering their WordPress.org username.') . '</p>' . 51 51 '<p>' . __('If you want to install a plugin that you’ve downloaded elsewhere, click the Upload link in the upper left. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.') . '</p>' 52 52 ) ); -
trunk/wp-includes/cache.php
r22118 r22634 630 630 $this->multisite = is_multisite(); 631 631 $this->blog_prefix = $this->multisite ? $blog_id . ':' : ''; 632 632 633 633 634 634 /** -
trunk/wp-includes/category.php
r22260 r22634 166 166 * @since 1.0.0 167 167 * 168 * @param string $cat_name Category name. 168 * @param string $cat_name Category name. 169 169 * @return int 0, if failure and ID of category on success. 170 170 */ -
trunk/wp-includes/class-wp-customize-manager.php
r21354 r22634 74 74 * 75 75 * @param mixed $ajax_message AJAX return 76 * @param mixed $message UI message 76 * @param mixed $message UI message 77 77 */ 78 78 protected function wp_die( $ajax_message, $message = null ) { … … 99 99 return '_default_wp_die_handler'; 100 100 } 101 101 102 102 /** 103 103 * Start preview and customize theme. … … 141 141 $this->start_previewing_theme(); 142 142 } 143 143 144 144 /** 145 145 * Callback to validate a theme once it is loaded -
trunk/wp-includes/class-wp-customize-setting.php
r22448 r22634 381 381 */ 382 382 class WP_Customize_Filter_Setting extends WP_Customize_Setting { 383 383 384 384 /** 385 385 * @since 3.4.0 -
trunk/wp-includes/css/admin-bar.css
r22629 r22634 608 608 background-size: 20px 220px; 609 609 } 610 610 611 611 #wpadminbar .quicklinks li div.blavatar { 612 612 background: url('../images/wpmini-blue-2x.png') no-repeat; -
trunk/wp-includes/functions.php
r22471 r22634 2130 2130 display: inline-block; 2131 2131 text-decoration: none; 2132 font-size: 14px; 2132 font-size: 14px; 2133 2133 line-height: 23px; 2134 2134 height: 24px; … … 2154 2154 text-shadow: 0 1px 0 #fff; 2155 2155 } 2156 2156 2157 2157 .button.button-large { 2158 2158 height: 29px; … … 2173 2173 color: #222; 2174 2174 } 2175 2175 2176 2176 .button:focus { 2177 2177 -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2); -
trunk/wp-includes/general-template.php
r22483 r22634 1632 1632 /* translators: 1: blog name, 2: separator(raquo), 3: search phrase */ 1633 1633 'searchtitle' => __('%1$s %2$s Search Results for “%3$s” Feed'), 1634 /* translators: 1: blog name, 2: separator(raquo), 3: post type name */ 1635 'posttypetitle' => __('%1$s %2$s %3$s Feed'), 1634 /* translators: 1: blog name, 2: separator(raquo), 3: post type name */ 1635 'posttypetitle' => __('%1$s %2$s %3$s Feed'), 1636 1636 ); 1637 1637 … … 1664 1664 $title = sprintf( $args['searchtitle'], get_bloginfo('name'), $args['separator'], get_search_query( false ) ); 1665 1665 $href = get_search_feed_link(); 1666 } elseif ( is_post_type_archive() ) { 1667 $title = sprintf( $args['posttypetitle'], get_bloginfo('name'), $args['separator'], post_type_archive_title( '', false ) ); 1668 $href = get_post_type_archive_feed_link( get_queried_object()->name ); 1669 } 1666 } elseif ( is_post_type_archive() ) { 1667 $title = sprintf( $args['posttypetitle'], get_bloginfo('name'), $args['separator'], post_type_archive_title( '', false ) ); 1668 $href = get_post_type_archive_feed_link( get_queried_object()->name ); 1669 } 1670 1670 1671 1671 if ( isset($title) && isset($href) ) -
trunk/wp-includes/js/admin-bar.js
r22262 r22634 14 14 15 15 adminbar.removeClass('nojq').removeClass('nojs'); 16 16 17 17 if ( 'ontouchstart' in window || /IEMobile\/[1-9]/.test(navigator.userAgent) ) { // touch screen device 18 18 // close any open drop-downs when the click/touch is not on the toolbar -
trunk/wp-includes/js/colorpicker.js
r21592 r22634 12 12 // site, or any other form where the code is actually being used. You 13 13 // may not put the plain javascript up on your site for download or 14 // include it in your javascript libraries for download. 14 // include it in your javascript libraries for download. 15 15 // If you wish to share this code with others, please just point them 16 16 // to the URL instead. … … 22 22 /* SOURCE FILE: AnchorPosition.js */ 23 23 24 /* 24 /* 25 25 AnchorPosition.js 26 26 Author: Matt Kruse … … 31 31 32 32 COMPATABILITY: Netscape 4.x,6.x,Mozilla, IE 5.x,6.x on Windows. Some small 33 positioning errors - usually with Window positioning - occur on the 33 positioning errors - usually with Window positioning - occur on the 34 34 Macintosh platform. 35 35 … … 45 45 NOTES: 46 46 47 1) For popping up separate browser windows, use getAnchorWindowPosition. 47 1) For popping up separate browser windows, use getAnchorWindowPosition. 48 48 Otherwise, use getAnchorPosition 49 49 50 2) Your anchor tag MUST contain both NAME and ID attributes which are the 50 2) Your anchor tag MUST contain both NAME and ID attributes which are the 51 51 same. For example: 52 52 <A NAME="test" ID="test"> </A> 53 53 54 3) There must be at least a space between <A> </A> for IE5.5 to see the 54 3) There must be at least a space between <A> </A> for IE5.5 to see the 55 55 anchor tag correctly. Do not do <A></A> with no space. 56 */ 56 */ 57 57 58 58 // getAnchorPosition(anchorname) … … 152 152 /* SOURCE FILE: PopupWindow.js */ 153 153 154 /* 154 /* 155 155 PopupWindow.js 156 156 Author: Matt Kruse … … 162 162 163 163 COMPATABILITY: Works with Netscape 4.x, 6.x, IE 5.x on Windows. Some small 164 positioning errors - usually with Window positioning - occur on the 165 Macintosh platform. Due to bugs in Netscape 4.x, populating the popup 164 positioning errors - usually with Window positioning - occur on the 165 Macintosh platform. Due to bugs in Netscape 4.x, populating the popup 166 166 window with <STYLE> tags may cause errors. 167 167 168 168 USAGE: 169 169 // Create an object for a WINDOW popup 170 var win = new PopupWindow(); 170 var win = new PopupWindow(); 171 171 172 172 // Create an object for a DIV window using the DIV named 'mydiv' 173 var win = new PopupWindow('mydiv'); 174 175 // Set the window to automatically hide itself when the user clicks 173 var win = new PopupWindow('mydiv'); 174 175 // Set the window to automatically hide itself when the user clicks 176 176 // anywhere else on the page except the popup 177 win.autoHide(); 177 win.autoHide(); 178 178 179 179 // Show the window relative to the anchor name passed in … … 186 186 win.setSize(width,height); 187 187 188 // Populate the contents of the popup window that will be shown. If you 188 // Populate the contents of the popup window that will be shown. If you 189 189 // change the contents while it is displayed, you will need to refresh() 190 190 win.populate(string); … … 206 206 1) Requires the functions in AnchorPosition.js 207 207 208 2) Your anchor tag MUST contain both NAME and ID attributes which are the 208 2) Your anchor tag MUST contain both NAME and ID attributes which are the 209 209 same. For example: 210 210 <A NAME="test" ID="test"> </A> 211 211 212 3) There must be at least a space between <A> </A> for IE5.5 to see the 212 3) There must be at least a space between <A> </A> for IE5.5 to see the 213 213 anchor tag correctly. Do not do <A></A> with no space. 214 214 … … 217 217 an event handler for 'onmouseup' after you define a PopupWindow object or 218 218 the autoHide() will not work correctly. 219 */ 219 */ 220 220 221 221 // Set the position of the popup window based on the anchor … … 256 256 document.getElementById(this.divName).innerHTML = this.contents; 257 257 } 258 else if (this.use_css) { 258 else if (this.use_css) { 259 259 document.all[this.divName].innerHTML = this.contents; 260 260 } 261 else if (this.use_layers) { 262 var d = document.layers[this.divName]; 261 else if (this.use_layers) { 262 var d = document.layers[this.divName]; 263 263 d.document.open(); 264 264 d.document.writeln(this.contents); … … 471 471 /* SOURCE FILE: ColorPicker2.js */ 472 472 473 /* 473 /* 474 474 Last modified: 02/24/2003 475 475 476 DESCRIPTION: This widget is used to select a color, in hexadecimal #RRGGBB 477 form. It uses a color "swatch" to display the standard 216-color web-safe 476 DESCRIPTION: This widget is used to select a color, in hexadecimal #RRGGBB 477 form. It uses a color "swatch" to display the standard 216-color web-safe 478 478 palette. The user can then click on a color to select it. 479 479 … … 501 501 // Write the 'pickColor' function that will be called when the user clicks 502 502 // a color and do something with the value. This is only required if you 503 // want to do something other than simply populate a form field, which is 503 // want to do something other than simply populate a form field, which is 504 504 // what the 'select' function will give you. 505 505 function pickColor(color) { … … 510 510 1) Requires the functions in AnchorPosition.js and PopupWindow.js 511 511 512 2) Your anchor tag MUST contain both NAME and ID attributes which are the 512 2) Your anchor tag MUST contain both NAME and ID attributes which are the 513 513 same. For example: 514 514 <A NAME="test" ID="test"> </A> 515 515 516 3) There must be at least a space between <A> </A> for IE5.5 to see the 516 3) There must be at least a space between <A> </A> for IE5.5 to see the 517 517 anchor tag correctly. Do not do <A></A> with no space. 518 518 … … 521 521 an event handler for 'onmouseup' after you define a ColorPicker object or 522 522 the color picker will not hide itself correctly. 523 */ 523 */ 524 524 ColorPicker_targetInput = null; 525 525 function ColorPicker_writeDiv() { … … 549 549 // have the value populate a form field, which is what most people want to do. 550 550 function ColorPicker_select(inputobj,linkname) { 551 if (inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea") { 552 alert("colorpicker.select: Input object passed is not a valid form input object"); 551 if (inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea") { 552 alert("colorpicker.select: Input object passed is not a valid form input object"); 553 553 window.ColorPicker_targetInput=null; 554 554 return; … … 683 683 else { mo = ""; } 684 684 cp_contents += '<td style="background-color: '+colors[i]+';"><a href="javascript:void()" onclick="'+windowRef+'ColorPicker_pickColor(\''+colors[i]+'\','+windowRef+'window.popupWindowObjects['+cp.index+']);return false;" '+mo+'> </a></td>'; 685 if ( ((i+1)>=total) || (((i+1) % width) == 0)) { 685 if ( ((i+1)>=total) || (((i+1) % width) == 0)) { 686 686 cp_contents += "</tr>"; 687 687 } -
trunk/wp-includes/ms-blogs.php
r22185 r22634 328 328 else 329 329 do_action( 'make_undelete_blog', $blog_id ); 330 } 331 330 } 331 332 332 if ( isset( $details[ 'public' ] ) ) { 333 333 switch_to_blog( $blog_id ); … … 530 530 else 531 531 $global_groups = false; 532 532 533 533 wp_cache_init(); 534 534 … … 591 591 else 592 592 $global_groups = false; 593 593 594 594 wp_cache_init(); 595 595 -
trunk/wp-includes/post-template.php
r22451 r22634 442 442 else 443 443 $classes[] = 'single-format-standard'; 444 } 444 } 445 445 } 446 446 … … 460 460 if ( isset( $author->user_nicename ) ) { 461 461 $classes[] = 'author-' . sanitize_html_class( $author->user_nicename, $author->ID ); 462 $classes[] = 'author-' . $author->ID; 462 $classes[] = 'author-' . $author->ID; 463 463 } 464 464 } elseif ( is_category() ) { … … 467 467 if ( isset( $cat->term_id ) ) { 468 468 $classes[] = 'category-' . sanitize_html_class( $cat->slug, $cat->term_id ); 469 $classes[] = 'category-' . $cat->term_id; 469 $classes[] = 'category-' . $cat->term_id; 470 470 } 471 471 } elseif ( is_tag() ) { … … 474 474 if ( isset( $tags->term_id ) ) { 475 475 $classes[] = 'tag-' . sanitize_html_class( $tags->slug, $tags->term_id ); 476 $classes[] = 'tag-' . $tags->term_id; 476 $classes[] = 'tag-' . $tags->term_id; 477 477 } 478 478 } elseif ( is_tax() ) { -
trunk/wp-includes/query.php
r22465 r22634 2775 2775 if ( $this->posts ) { 2776 2776 $this->post_count = count( $this->posts ); 2777 2777 2778 2778 $this->posts = array_map( 'get_post', $this->posts ); 2779 2779 … … 2781 2781 update_post_caches($this->posts, $post_type, $q['update_post_term_cache'], $q['update_post_meta_cache']); 2782 2782 2783 $this->post = reset( $this->posts ); 2783 $this->post = reset( $this->posts ); 2784 2784 } else { 2785 2785 $this->post_count = 0; -
trunk/wp-includes/taxonomy.php
r22476 r22634 332 332 $args = wp_parse_args($args, $defaults); 333 333 334 if ( strlen( $taxonomy ) > 32 ) 334 if ( strlen( $taxonomy ) > 32 ) 335 335 return new WP_Error( 'taxonomy_too_long', __( 'Taxonomies cannot exceed 32 characters in length' ) ); 336 336 -
trunk/wp-includes/template.php
r22293 r22634 314 314 global $posts; 315 315 316 if ( ! empty( $posts ) && isset( $posts[0]->post_mime_type ) ) { 316 if ( ! empty( $posts ) && isset( $posts[0]->post_mime_type ) ) { 317 317 $type = explode( '/', $posts[0]->post_mime_type ); 318 318
Note: See TracChangeset
for help on using the changeset viewer.