Ticket #17323: 17232.no-collapse.diff
| File 17232.no-collapse.diff, 17.8 KB (added by aaroncampbell, 2 years ago) |
|---|
-
wp-includes/functions.php
600 600 601 601 wp_protect_special_option( $option ); 602 602 603 /* 603 /* 604 604 * FIXME the next two lines of code are not necessary and should be removed. 605 605 * @see http://core.trac.wordpress.org/ticket/13480 606 606 */ … … 2876 2876 * @param string $title Error title. 2877 2877 * @param string|array $args Optional arguements to control behaviour. 2878 2878 */ 2879 function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) { 2879 function _xmlrpc_wp_die_handler( $message, $title = '', $args = array() ) { 2880 2880 global $wp_xmlrpc_server; 2881 2881 $defaults = array( 'response' => 500 ); 2882 2882 2883 2883 $r = wp_parse_args($args, $defaults); 2884 2884 2885 if ( $wp_xmlrpc_server ) { 2886 $error = new IXR_Error( $r['response'] , $message); 2887 $wp_xmlrpc_server->output( $error->getXml() ); 2885 if ( $wp_xmlrpc_server ) { 2886 $error = new IXR_Error( $r['response'] , $message); 2887 $wp_xmlrpc_server->output( $error->getXml() ); 2888 2888 } 2889 2889 die(); 2890 2890 } 2891 2891 2892 2892 /** 2893 2893 * Filter to enable special wp_die handler for xmlrpc requests. 2894 * 2894 * 2895 2895 * @since 3.2.0 2896 2896 * @access private 2897 2897 */ 2898 function _xmlrpc_wp_die_filter() { 2898 function _xmlrpc_wp_die_filter() { 2899 2899 return '_xmlrpc_wp_die_handler'; 2900 2900 } 2901 2901 … … 4556 4556 @header( 'X-Frame-Options: SAMEORIGIN' ); 4557 4557 } 4558 4558 4559 /** 4560 * Check if the user needs a browser update 4561 * 4562 * @since 3.2 4563 */ 4564 function wp_check_browser_version() { 4565 $key = md5( $_SERVER['HTTP_USER_AGENT'] ); 4566 4567 if ( false === ($response = get_site_transient('browsehappy_' . $key) ) ) { 4568 global $wp_version; 4569 4570 $options = array( 4571 'body' => array( 'useragent' => $_SERVER['HTTP_USER_AGENT'] ), 4572 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) 4573 ); 4574 4575 $raw_response = wp_remote_post( 'http://api.wordpress.org/core/browse-happy/1.0/', $options ); 4576 4577 if ( is_wp_error( $raw_response ) || 200 != $raw_response['response']['code'] ) 4578 return; 4579 4580 /** 4581 * Response should be an array with: 4582 * 'name' - string- A user friendly browser name 4583 * 'version' - string - The most recent version of the browser 4584 * 'current_version' - string - The version of the browser the user is using 4585 * 'upgrade' - boolean - Whether the browser needs an upgrade 4586 * 'insecure' - boolean - Whether the browser is deemed insecure 4587 */ 4588 $response = unserialize( $raw_response['body'] ); 4589 4590 if ( ! $response ) 4591 return; 4592 4593 set_site_transient( 'browsehappy_' . $key, $response, 604800 ); // cache for 1 week 4594 } 4595 4596 return $response; 4597 } 4559 4598 ?> -
wp-admin/admin-ajax.php
1011 1011 break; 1012 1012 case 'closed-postboxes' : 1013 1013 check_ajax_referer( 'closedpostboxes', 'closedpostboxesnonce' ); 1014 $closed = isset( $_POST['closed'] ) ? explode( ',', $_POST['closed']) : array();1015 $closed = array_filter($closed);1016 1017 1014 $hidden = isset( $_POST['hidden'] ) ? explode( ',', $_POST['hidden']) : array(); 1018 1015 $hidden = array_filter($hidden); 1019 1016 … … 1025 1022 if ( ! $user = wp_get_current_user() ) 1026 1023 die('-1'); 1027 1024 1028 if ( is_array($closed) )1029 update_user_option($user->ID, "closedpostboxes_$page", $closed, true);1030 1031 1025 if ( is_array($hidden) ) { 1032 1026 $hidden = array_diff( $hidden, array('submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu') ); // postboxes that are always shown 1033 1027 update_user_option($user->ID, "metaboxhidden_$page", $hidden, true); -
wp-admin/includes/dashboard.php
25 25 26 26 /* Register Widgets and Controls */ 27 27 28 $response = wp_check_browser_version(); 29 30 if ( $response['upgrade'] ) { 31 if ( $response['insecure'] ) 32 wp_add_dashboard_widget( 'dashboard_browser_nag_insecure', __( 'You are using an insecure browser!' ), 'wp_dashboard_browser_nag' ); 33 else 34 wp_add_dashboard_widget( 'dashboard_browser_nag_update', __( 'Your browser is out of date!' ), 'wp_dashboard_browser_nag' ); 35 } 36 28 37 // Right Now 29 38 if ( is_blog_admin() && current_user_can('edit_posts') ) 30 39 wp_add_dashboard_widget( 'dashboard_right_now', __( 'Right Now' ), 'wp_dashboard_right_now' ); … … 1147 1156 } 1148 1157 add_action( 'activity_box_end', 'wp_dashboard_quota' ); 1149 1158 1159 // Display Browser Nag Meta Box 1160 function wp_dashboard_browser_nag() { 1161 $response = wp_check_browser_version(); 1162 1163 $insecure = $response['insecure']? 'insecure' : 'old'; 1164 1165 $msg = sprintf( __( 'It looks like you\'re using and old version of %1$s. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser.' ), $response['name'] ); 1166 $msg = "<div class='icon " . sanitize_html_class( strtolower( $response['name'] ) ) . "'></div><p class='browser-update-nag'>{$msg}</p>"; 1167 $msg .= sprintf( __( '<p><a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a></p>' ), $response['update_url'], $response['name'], 'http://browsehappy.com/' ); 1168 $msg .= '<div class="clear"></div>'; 1169 1170 echo apply_filters( 'browse-happy-notice', $msg ); 1171 } 1172 1173 1150 1174 /** 1151 1175 * Empty function usable by plugins to output empty dashboard widget (to be populated later by JS). 1152 1176 */ -
wp-admin/includes/template.php
957 957 $style = ''; 958 958 $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : ''; 959 959 echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n"; 960 echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>';961 960 echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n"; 962 961 echo '<div class="inside">' . "\n"; 963 962 call_user_func($box['callback'], $object, $box); -
wp-admin/js/postbox.dev.js
3 3 postboxes = { 4 4 add_postbox_toggles : function(page,args) { 5 5 this.init(page,args); 6 $('.postbox h3, .postbox .handlediv').click( function() {7 var p = $(this).parent('.postbox'), id = p.attr('id');8 9 p.toggleClass('closed');10 postboxes.save_state(page);11 if ( id ) {12 if ( !p.hasClass('closed') && $.isFunction(postboxes.pbshow) )13 postboxes.pbshow(id);14 else if ( p.hasClass('closed') && $.isFunction(postboxes.pbhide) )15 postboxes.pbhide(id);16 }17 } );18 6 $('.postbox h3 a').click( function(e) { 19 7 e.stopPropagation(); 20 8 } ); … … 116 104 }, 117 105 118 106 save_state : function(page) { 119 var closed = $('.postbox').filter('.closed').map(function() { return this.id; }).get().join(','), 120 hidden = $('.postbox').filter(':hidden').map(function() { return this.id; }).get().join(','); 107 var hidden = $('.postbox').filter(':hidden').map(function() { return this.id; }).get().join(','); 121 108 122 109 $.post(ajaxurl, { 123 110 action: 'closed-postboxes', 124 closed: closed,125 111 hidden: hidden, 126 112 closedpostboxesnonce: jQuery('#closedpostboxesnonce').val(), 127 113 page: page -
wp-admin/press-this.php
Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: wp-admin/images/browsers-sprite.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream
459 459 <?php } ?> 460 460 jQuery('#title').unbind(); 461 461 jQuery('#publish, #save').click(function() { jQuery('#saving').css('display', 'inline'); }); 462 463 $('#tagsdiv-post_tag, #categorydiv').children('h3, .handlediv').click(function(){464 $(this).siblings('.inside').toggle();465 });466 462 }); 467 463 </script> 468 464 </head> … … 516 512 517 513 <?php $tax = get_taxonomy( 'category' ); ?> 518 514 <div id="categorydiv" class="postbox"> 519 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>"><br /></div>520 515 <h3 class="hndle"><?php _e('Categories') ?></h3> 521 516 <div class="inside"> 522 517 <div id="taxonomy-category" class="categorydiv"> … … 566 561 </div> 567 562 568 563 <div id="tagsdiv-post_tag" class="stuffbox" > 569 <div class="handlediv" title="<?php _e( 'Click to toggle' ); ?>">570 <br/>571 </div>572 564 <h3><span><?php _e('Post Tags'); ?></span></h3> 573 565 <div class="inside"> 574 566 <div class="tagsdiv" id="post_tag"> -
wp-admin/css/dashboard.dev.css
73 73 text-decoration: none; 74 74 } 75 75 76 #dashboard-widgets a.update-browser-link { 77 font-size:1.2em; 78 font-weight:bold; 79 } 80 81 #dashboard-widgets a.browse-happy-link, 82 #dashboard-widgets a.update-browser-link, 76 83 #dashboard-widgets h3 a { 77 84 text-decoration: underline; 78 85 } 79 86 87 #dashboard-widgets p.browser-update-nag { 88 padding-right:125px; 89 } 90 91 #dashboard-widgets .icon { 92 float: right; 93 width: 125px; 94 height: 135px; 95 margin: -35px auto 0; 96 background: -625px 0 url(../images/browsers-sprite.png) no-repeat; 97 } 98 #dashboard-widgets .chrome.icon { 99 background-position: 0 0; 100 } 101 #dashboard-widgets .firefox.icon { 102 background-position: -125px 0; 103 } 104 #dashboard-widgets .opera.icon { 105 background-position: -250px 0; 106 } 107 #dashboard-widgets .safari.icon { 108 background-position: -375px 0; 109 } 110 #dashboard-widgets .internetexplorer.icon { 111 background-position: -500px 0; 112 } 113 80 114 #dashboard-widgets h3 .postbox-title-action { 81 115 position: absolute; 82 116 right: 30px; -
wp-admin/css/ie.dev.css
21 21 margin-bottom: -1px; 22 22 } 23 23 24 * html .meta-box-sortables .postbox .handlediv {25 background: transparent url(../images/menu-bits-vs.gif) no-repeat scroll left -111px;26 }27 28 24 * html .edit-box { 29 25 display: inline; 30 26 } -
wp-admin/css/colors-classic-rtl.dev.css
70 70 background: #b5b5b5 url(../images/menu-bits-rtl-vs.gif?ver=20101117) repeat-x scroll right top; 71 71 } 72 72 73 .meta-box-sortables .postbox:hover .handlediv {74 background: transparent url(../images/menu-bits-rtl-vs.gif?ver=20101117) no-repeat scroll right -111px;75 }76 73 #favorite-toggle { 77 74 background: transparent url(../images/fav-arrow-rtl.gif?ver=20100531) no-repeat right -4px; 78 75 } -
wp-admin/css/global.dev.css
209 209 } 210 210 211 211 .hidden, 212 .js .closed .inside,213 212 .js .hide-if-js, 214 213 .no-js .hide-if-no-js { 215 214 display: none; -
wp-admin/css/colors-fresh-rtl.dev.css
70 70 background: #b5b5b5 url(../images/menu-bits-rtl.gif?ver=20100531) repeat-x scroll right top; 71 71 } 72 72 73 .meta-box-sortables .postbox:hover .handlediv {74 background: transparent url(../images/menu-bits-rtl.gif?ver=20100531) no-repeat scroll right -111px;75 }76 73 #favorite-toggle { 77 74 background: transparent url(../images/fav-arrow-rtl.gif?ver=20100531) no-repeat right -4px; 78 75 } -
wp-admin/css/wp-admin-rtl.dev.css
296 296 padding: 2px 2px 2px 15px; 297 297 text-align: left; 298 298 } 299 .meta-box-sortables .postbox .handlediv {300 float: left;301 }302 299 .howto { 303 300 font-family: Tahoma, Arial, sans-serif; 304 301 } -
wp-admin/css/colors-classic.dev.css
641 641 border-color: #D1E5EE; 642 642 } 643 643 644 #dashboard_browser_nag_insecure.postbox { 645 background-color: #AC1B1B; 646 border-color: #AC1B1B; 647 } 648 649 #dashboard_browser_nag_update.postbox { 650 background-color: #E7A904; 651 border-color: #EDC048; 652 } 653 654 #dashboard_browser_nag_insecure.postbox, 655 #dashboard_browser_nag_update.postbox { 656 -moz-box-shadow: none; 657 -webkit-box-shadow: none; 658 box-shadow:none; 659 } 660 661 #dashboard_browser_nag_insecure.postbox h3 { 662 border-bottom-color: #CD5A5A; 663 } 664 665 #dashboard_browser_nag_update.postbox h3 { 666 border-bottom-color: #F6E2AC; 667 } 668 669 #dashboard_browser_nag_insecure.postbox h3, 670 #dashboard_browser_nag_update.postbox h3 { 671 background:none; 672 text-shadow: none; 673 -moz-box-shadow: none; 674 -webkit-box-shadow: none; 675 box-shadow: none; 676 } 677 .ui-sortable #dashboard_browser_nag_insecure.postbox, 678 .ui-sortable #dashboard_browser_nag_insecure.postbox h3, 679 .ui-sortable #dashboard_browser_nag_update.postbox, 680 .ui-sortable #dashboard_browser_nag_update.postbox h3 { 681 color: #fff; 682 } 683 684 #dashboard_browser_nag_insecure a, 685 #dashboard_browser_nag_update a { 686 color: #fff; 687 } 688 689 #dashboard_browser_nag_insecure a.browse-happy-link, 690 #dashboard_browser_nag_insecure a.update-browser-link { 691 text-shadow: #871B15 0 1px 0; 692 } 693 694 #dashboard_browser_nag_update a.browse-happy-link, 695 #dashboard_browser_nag_update a.update-browser-link { 696 text-shadow: #D29A04 0 1px 0; 697 } 698 644 699 .widget, 645 700 .postbox { 646 701 background-color: #fff; … … 1446 1501 color: #D54E21; 1447 1502 } 1448 1503 1449 body.press-this .postbox:hover .handlediv,1450 body.press-this .stuffbox:hover .handlediv,1451 .meta-box-sortables .postbox:hover .handlediv {1452 background: transparent url(../images/menu-bits-vs.gif?ver=20101102) no-repeat scroll left -111px;1453 }1454 1455 1504 #major-publishing-actions { 1456 1505 background: #eaf2fa; 1457 1506 } -
wp-admin/css/press-this.dev.css
145 145 border-radius: 3px; 146 146 } 147 147 148 .postbox:hover .handlediv,149 .stuffbox:hover .handlediv {150 background: transparent url(../images/menu-bits.gif) no-repeat scroll left -111px;151 }152 153 .handlediv {154 float: right;155 height: 26px;156 width: 23px;157 }158 159 148 #title, 160 149 .tbtitle { 161 150 -moz-border-radius: 3px; -
wp-admin/css/colors-fresh.dev.css
665 665 background-color: #f9f9f9; 666 666 } 667 667 668 #dashboard_browser_nag_insecure.postbox { 669 background-color: #AC1B1B; 670 border-color: #AC1B1B; 671 } 672 673 #dashboard_browser_nag_update.postbox { 674 background-color: #E7A904; 675 border-color: #EDC048; 676 } 677 678 #dashboard_browser_nag_insecure.postbox, 679 #dashboard_browser_nag_update.postbox { 680 -moz-box-shadow: none; 681 -webkit-box-shadow: none; 682 box-shadow:none; 683 } 684 685 #dashboard_browser_nag_insecure.postbox h3 { 686 border-bottom-color: #CD5A5A; 687 } 688 689 #dashboard_browser_nag_update.postbox h3 { 690 border-bottom-color: #F6E2AC; 691 } 692 693 #dashboard_browser_nag_insecure.postbox h3, 694 #dashboard_browser_nag_update.postbox h3 { 695 text-shadow: none; 696 -moz-box-shadow: none; 697 -webkit-box-shadow: none; 698 box-shadow: none; 699 } 700 .ui-sortable #dashboard_browser_nag_insecure.postbox, 701 .ui-sortable #dashboard_browser_nag_insecure.postbox h3, 702 .ui-sortable #dashboard_browser_nag_update.postbox, 703 .ui-sortable #dashboard_browser_nag_update.postbox h3 { 704 color: #fff; 705 } 706 707 #dashboard_browser_nag_insecure a, 708 #dashboard_browser_nag_update a { 709 color: #fff; 710 } 711 712 #dashboard_browser_nag_insecure a.browse-happy-link, 713 #dashboard_browser_nag_insecure a.update-browser-link { 714 text-shadow: #871B15 0 1px 0; 715 } 716 717 #dashboard_browser_nag_update a.browse-happy-link, 718 #dashboard_browser_nag_update a.update-browser-link { 719 text-shadow: #D29A04 0 1px 0; 720 } 721 668 722 .ui-sortable .postbox h3 { 669 723 color: #464646; 670 724 } … … 1535 1589 color: #D54E21; 1536 1590 } 1537 1591 1538 .meta-box-sortables .postbox:hover .handlediv {1539 background: transparent url(../images/menu-bits.gif?ver=20100610) no-repeat scroll left -111px;1540 }1541 1542 1592 .tablenav .tablenav-pages { 1543 1593 color: #555; 1544 1594 } -
wp-admin/css/wp-admin.dev.css
1540 1540 font-weight: normal; 1541 1541 } 1542 1542 1543 .postbox .handlediv {1544 float: right;1545 width: 23px;1546 height: 26px;1547 }1548 1549 1543 .sortable-placeholder { 1550 1544 border-width: 1px; 1551 1545 border-style: dashed; … … 1569 1563 border-style: solid; 1570 1564 } 1571 1565 1572 .postbox.closed h3 {1573 border: none;1574 -moz-box-shadow: none;1575 -webkit-box-shadow: none;1576 box-shadow: none;1577 }1578 1579 1566 .postbox table.form-table { 1580 1567 margin-bottom: 0; 1581 1568 } -
wp-admin/css/ie-rtl.dev.css
96 96 position: static; 97 97 } 98 98 99 * html .meta-box-sortables .postbox .handlediv {100 background: transparent url(../images/menu-bits-rtl-vs.gif) no-repeat scroll right -111px;101 }102 103 99 /* nav menus */ 104 100 .menu-max-depth-0 #menu-management { width: 460px; } 105 101 .menu-max-depth-1 #menu-management { width: 490px; }
