Make WordPress Core


Ignore:
Location:
branches/3.3
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/readme.html

    r19591 r19669  
    99<h1 id="logo">
    1010    <a href="http://wordpress.org/"><img alt="WordPress" src="wp-admin/images/wordpress-logo.png" width="250" height="68" /></a>
    11     <br /> Version 3.3
     11    <br /> Version 3.3.1
    1212</h1>
    1313<p style="text-align: center">Semantic Personal Publishing Platform</p>
  • branches/3.3/wp-admin/about.php

    r19591 r19669  
    3434</h2>
    3535
     36<div class="changelog point-releases">
     37    <h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 1 ); ?></h3>
     38    <p><?php printf( _n( '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
     39         '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.', 15 ), '3.3.1', number_format_i18n( 15 ) ); ?>
     40        <?php printf( __( 'For more information, see <a href="%s">the release notes</a>.' ), 'http://codex.wordpress.org/Version_3.3.1' ); ?>
     41    </p>
     42</div>
     43
    3644<div class="changelog">
    3745    <h3><?php _e( 'Easier Uploading' ); ?></h3>
  • branches/3.3/wp-admin/includes/dashboard.php

    r19591 r19669  
    396396        $num_widgets = 0;
    397397        foreach ( (array) $sidebars_widgets as $k => $v ) {
    398             if ( 'wp_inactive_widgets' == $k )
     398            if ( 'wp_inactive_widgets' == $k || 'orphaned_widgets' == substr( $k, 0, 16 ) )
    399399                continue;
    400400            if ( is_array($v) )
  • branches/3.3/wp-admin/includes/ms.php

    r19591 r19669  
    386386function get_space_allowed() {
    387387    $space_allowed = get_option( 'blog_upload_space' );
    388     if ( $space_allowed === false )
     388
     389    if ( ! is_numeric( $space_allowed ) )
    389390        $space_allowed = get_site_option( 'blog_upload_space' );
    390     if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
     391
     392    if ( empty( $space_allowed ) || ! is_numeric( $space_allowed ) )
    391393        $space_allowed = 50;
    392394
  • branches/3.3/wp-admin/includes/template.php

    r19591 r19669  
    335335    <?php
    336336    $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' );
    337     wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) );
     337    wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings, 'tabindex' => 104 ) );
    338338    ?>
    339339    </div>
     
    17621762
    17631763    public static function pointer_wp330_toolbar() {
    1764         $content  = '<h3>' . esc_js( __( 'New Feature: Toolbar' ) ). '</h3>';
    1765         $content .= '<p>' . esc_js( __( 'We&#8217;ve combined the admin bar and the old Dashboard header into one persistent toolbar. Hover over the toolbar items to see what&#8217;s new.' ) ) . '</p>';
     1764        $content  = '<h3>' . __( 'New Feature: Toolbar' ) . '</h3>';
     1765        $content .= '<p>' .  __( 'We&#8217;ve combined the admin bar and the old Dashboard header into one persistent toolbar. Hover over the toolbar items to see what&#8217;s new.' ) . '</p>';
    17661766
    17671767        if ( is_multisite() && is_super_admin() )
    1768             $content .= '<p>' .esc_js( __( 'Network Admin is now located in the My Sites menu.' ) ) . '</p>';
     1768            $content .= '<p>' . __( 'Network Admin is now located in the My Sites menu.' ) . '</p>';
    17691769
    17701770        WP_Internal_Pointers::print_js( 'wp330_toolbar', '#wpadminbar', array(
     
    17801780     */
    17811781    public static function pointer_wp330_media_uploader() {
    1782         $content  = '<h3>' . esc_js( __( 'Updated Media Uploader' ) ) . '</h3>';
    1783         $content .= '<p>' . esc_js( __( 'The single media icon now launches the uploader for all file types, and the new drag and drop interface makes uploading a breeze.' ) ) . '</p>';
     1782        $content  = '<h3>' . __( 'Updated Media Uploader' ) . '</h3>';
     1783        $content .= '<p>' . __( 'The single media icon now launches the uploader for all file types, and the new drag and drop interface makes uploading a breeze.' ) . '</p>';
    17841784
    17851785        WP_Internal_Pointers::print_js( 'wp330_media_uploader', '#content-add_media', array(
     
    17951795     */
    17961796    public static function pointer_wp330_saving_widgets() {
    1797         $content  = '<h3>' . esc_js( __( 'New Feature: Saving Widgets' ) ) . '</h3>';
    1798         $content .= '<p>' . esc_js( __( 'If you change your mind and revert to your previous theme, we&#8217;ll put the widgets back the way you had them.' ) ) . '</p>';
     1797        $content  = '<h3>' . __( 'New Feature: Saving Widgets' ) . '</h3>';
     1798        $content .= '<p>' . __( 'If you change your mind and revert to your previous theme, we&#8217;ll put the widgets back the way you had them.' ). '</p>';
    17991799
    18001800        WP_Internal_Pointers::print_js( 'wp330_saving_widgets', '#message2', array(
  • branches/3.3/wp-admin/includes/update-core.php

    r19591 r19669  
    407407    $required_php_version = '5.2.4';
    408408    $required_mysql_version = '5.0';
    409     $wp_version = '3.3';
     409    $wp_version = '3.3.1';
    410410    $php_compat     = version_compare( $php_version, $required_php_version, '>=' );
    411411    if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) )
  • branches/3.3/wp-admin/js/common.dev.js

    r19591 r19669  
    210210                m.css({'marginTop':''});
    211211
     212            menu.find('.wp-submenu').removeClass('sub-open');
    212213            m.addClass('sub-open');
    213214        },
  • branches/3.3/wp-admin/js/common.js

    r19591 r19669  
    1 var showNotice,adminMenu,columns,validateForm,screenMeta,autofold_menu;(function(a){adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}};columns={init:function(){var b=this;a(".hide-column-tog","#adv-settings").click(function(){var d=a(this),c=d.val();if(d.prop("checked")){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})},saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:"hidden-columns",hidden:b,screenoptionnonce:a("#screenoptionnonce").val(),page:pagenow})},checked:function(b){a(".column-"+b).show();this.colSpanChange(+1)},unchecked:function(b){a(".column-"+b).hide();this.colSpanChange(-1)},hidden:function(){return a(".manage-column").filter(":hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return a(".hide-column-tog").not(":checked").map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(",")}},colSpanChange:function(b){var d=a("table").find(".colspanchange"),c;if(!d.length){return}c=parseInt(d.attr("colspan"),10)+b;d.attr("colspan",c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(".form-required").filter(function(){return a("input:visible",this).val()==""}).addClass("form-invalid").find("input:visible").change(function(){a(this).closest(".form-invalid").removeClass("form-invalid")}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||"";if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={element:null,toggles:null,page:null,init:function(){this.element=a("#screen-meta");this.toggles=a(".screen-meta-toggle a");this.page=a("#wpcontent");this.toggles.click(this.toggleEvent)},toggleEvent:function(c){var b=a(this.href.replace(/.+#/,"#"));c.preventDefault();if(!b.length){return}if(b.is(":visible")){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){a(".screen-meta-toggle").not(c.parent()).css("visibility","hidden");b.parent().show();b.slideDown("fast",function(){c.addClass("screen-meta-active")})},close:function(b,c){b.slideUp("fast",function(){c.removeClass("screen-meta-active");a(".screen-meta-toggle").css("visibility","");b.parent().hide()})}};a(".contextual-help-tabs").delegate("a","click focus",function(d){var c=a(this),b;d.preventDefault();if(c.is(".active a")){return false}a(".contextual-help-tabs .active").removeClass("active");c.parent("li").addClass("active");b=a(c.attr("href"));a(".help-tab-content").not(b).removeClass("active").hide();b.addClass("active").show()});a(document).ready(function(){var j=false,c,e,k,i,b=a("#adminmenu"),d=a("input.current-page"),f=d.val(),h,g;g=function(l,n){var o=a(n),m=o.attr("tabindex");if(m){o.attr("tabindex","0").attr("tabindex",m)}};a("#collapse-menu",b).click(function(){var l=a(document.body);if(l.hasClass("folded")){l.removeClass("folded");setUserSetting("mfold","o")}else{l.addClass("folded");setUserSetting("mfold","f")}return false});a("li.wp-has-submenu",b).hoverIntent({over:function(t){var u,r,l,s,n=a(this).find(".wp-submenu"),v,p,q;if(!a(document.body).hasClass("folded")&&a(this).hasClass("wp-menu-open")){return}v=a(this).offset().top;p=a(window).scrollTop();q=v-p-30;u=v+n.height()+1;r=a("#wpwrap").height();l=60+u-r;s=a(window).height()+p-15;if(s<(u-l)){l=u-s}if(l>q){l=q}if(l>1){n.css({marginTop:"-"+l+"px"})}else{if(n.css("marginTop")){n.css({marginTop:""})}}n.addClass("sub-open")},out:function(){a(this).find(".wp-submenu").removeClass("sub-open")},timeout:200,sensitivity:7,interval:90});a("li.wp-has-submenu > a.wp-not-current-submenu",b).bind("keydown.adminmenu",function(m){if(m.which!=13){return}var l=a(m.target);m.stopPropagation();m.preventDefault();b.find(".wp-submenu").removeClass("sub-open");l.siblings(".wp-submenu").toggleClass("sub-open").find('a[role="menuitem"]').each(g)}).each(g);a('a[role="menuitem"]',b).bind("keydown.adminmenu",function(m){if(m.which!=27){return}var l=a(m.target);m.stopPropagation();m.preventDefault();l.add(l.siblings()).closest(".sub-open").removeClass("sub-open").siblings("a.wp-not-current-submenu").focus()});a("div.wrap h2:first").nextAll("div.updated, div.error").addClass("below-h2");a("div.updated, div.error").not(".below-h2, .inline").insertAfter(a("div.wrap h2:first"));screenMeta.init();a("tbody").children().children(".check-column").find(":checkbox").click(function(l){if("undefined"==l.shiftKey){return true}if(l.shiftKey){if(!j){return true}c=a(j).closest("form").find(":checkbox");e=c.index(j);k=c.index(this);i=a(this).prop("checked");if(0<e&&0<k&&e!=k){c.slice(e,k).prop("checked",function(){if(a(this).closest("tr").is(":visible")){return i}return false})}}j=this;return true});a("thead, tfoot").find(".check-column :checkbox").click(function(n){var o=a(this).prop("checked"),m="undefined"==typeof toggleWithKeyboard?false:toggleWithKeyboard,l=n.shiftKey||m;a(this).closest("table").children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){if(a(this).closest("tr").is(":hidden")){return false}if(l){return a(this).prop("checked")}else{if(o){return true}}return false});a(this).closest("table").children("thead,  tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){if(l){return false}else{if(o){return true}}return false})});a("#default-password-nag-no").click(function(){setUserSetting("default_password_nag","hide");a("div.default-password-nag").hide();return false});a("#newcontent").bind("keydown.wpevent_InsertTab",function(q){if(q.keyCode!=9){return true}var n=q.target,s=n.selectionStart,m=n.selectionEnd,r=n.value,l,p;try{this.lastKey=9}catch(o){}if(document.selection){n.focus();p=document.selection.createRange();p.text="\t"}else{if(s>=0){l=this.scrollTop;n.value=r.substring(0,s).concat("\t",r.substring(m));n.selectionStart=n.selectionEnd=s+1;this.scrollTop=l}}if(q.stopPropagation){q.stopPropagation()}if(q.preventDefault){q.preventDefault()}});a("#newcontent").bind("blur.wpevent_InsertTab",function(l){if(this.lastKey&&9==this.lastKey){this.focus()}});if(d.length){d.closest("form").submit(function(l){if(a('select[name="action"]').val()==-1&&a('select[name="action2"]').val()==-1&&d.val()==f){d.val("1")}})}a(window).bind("resize.autofold",function(){if(getUserSetting("mfold")=="f"){return}var l=a(window).width();if(l<=800){if(!h){a(document.body).addClass("folded");h=true}}else{if(h){a(document.body).removeClass("folded");h=false}}}).triggerHandler("resize")});a(document).bind("wp_CloseOnEscape",function(c,b){if(typeof(b.cb)!="function"){return}if(typeof(b.condition)!="function"||b.condition()){b.cb()}return true})})(jQuery);
     1var showNotice,adminMenu,columns,validateForm,screenMeta,autofold_menu;(function(a){adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}};columns={init:function(){var b=this;a(".hide-column-tog","#adv-settings").click(function(){var d=a(this),c=d.val();if(d.prop("checked")){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})},saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:"hidden-columns",hidden:b,screenoptionnonce:a("#screenoptionnonce").val(),page:pagenow})},checked:function(b){a(".column-"+b).show();this.colSpanChange(+1)},unchecked:function(b){a(".column-"+b).hide();this.colSpanChange(-1)},hidden:function(){return a(".manage-column").filter(":hidden").map(function(){return this.id}).get().join(",")},useCheckboxesForHidden:function(){this.hidden=function(){return a(".hide-column-tog").not(":checked").map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(",")}},colSpanChange:function(b){var d=a("table").find(".colspanchange"),c;if(!d.length){return}c=parseInt(d.attr("colspan"),10)+b;d.attr("colspan",c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(".form-required").filter(function(){return a("input:visible",this).val()==""}).addClass("form-invalid").find("input:visible").change(function(){a(this).closest(".form-invalid").removeClass("form-invalid")}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||"";if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={element:null,toggles:null,page:null,init:function(){this.element=a("#screen-meta");this.toggles=a(".screen-meta-toggle a");this.page=a("#wpcontent");this.toggles.click(this.toggleEvent)},toggleEvent:function(c){var b=a(this.href.replace(/.+#/,"#"));c.preventDefault();if(!b.length){return}if(b.is(":visible")){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){a(".screen-meta-toggle").not(c.parent()).css("visibility","hidden");b.parent().show();b.slideDown("fast",function(){c.addClass("screen-meta-active")})},close:function(b,c){b.slideUp("fast",function(){c.removeClass("screen-meta-active");a(".screen-meta-toggle").css("visibility","");b.parent().hide()})}};a(".contextual-help-tabs").delegate("a","click focus",function(d){var c=a(this),b;d.preventDefault();if(c.is(".active a")){return false}a(".contextual-help-tabs .active").removeClass("active");c.parent("li").addClass("active");b=a(c.attr("href"));a(".help-tab-content").not(b).removeClass("active").hide();b.addClass("active").show()});a(document).ready(function(){var j=false,c,e,k,i,b=a("#adminmenu"),d=a("input.current-page"),f=d.val(),h,g;g=function(l,n){var o=a(n),m=o.attr("tabindex");if(m){o.attr("tabindex","0").attr("tabindex",m)}};a("#collapse-menu",b).click(function(){var l=a(document.body);if(l.hasClass("folded")){l.removeClass("folded");setUserSetting("mfold","o")}else{l.addClass("folded");setUserSetting("mfold","f")}return false});a("li.wp-has-submenu",b).hoverIntent({over:function(t){var u,r,l,s,n=a(this).find(".wp-submenu"),v,p,q;if(!a(document.body).hasClass("folded")&&a(this).hasClass("wp-menu-open")){return}v=a(this).offset().top;p=a(window).scrollTop();q=v-p-30;u=v+n.height()+1;r=a("#wpwrap").height();l=60+u-r;s=a(window).height()+p-15;if(s<(u-l)){l=u-s}if(l>q){l=q}if(l>1){n.css({marginTop:"-"+l+"px"})}else{if(n.css("marginTop")){n.css({marginTop:""})}}b.find(".wp-submenu").removeClass("sub-open");n.addClass("sub-open")},out:function(){a(this).find(".wp-submenu").removeClass("sub-open")},timeout:200,sensitivity:7,interval:90});a("li.wp-has-submenu > a.wp-not-current-submenu",b).bind("keydown.adminmenu",function(m){if(m.which!=13){return}var l=a(m.target);m.stopPropagation();m.preventDefault();b.find(".wp-submenu").removeClass("sub-open");l.siblings(".wp-submenu").toggleClass("sub-open").find('a[role="menuitem"]').each(g)}).each(g);a('a[role="menuitem"]',b).bind("keydown.adminmenu",function(m){if(m.which!=27){return}var l=a(m.target);m.stopPropagation();m.preventDefault();l.add(l.siblings()).closest(".sub-open").removeClass("sub-open").siblings("a.wp-not-current-submenu").focus()});a("div.wrap h2:first").nextAll("div.updated, div.error").addClass("below-h2");a("div.updated, div.error").not(".below-h2, .inline").insertAfter(a("div.wrap h2:first"));screenMeta.init();a("tbody").children().children(".check-column").find(":checkbox").click(function(l){if("undefined"==l.shiftKey){return true}if(l.shiftKey){if(!j){return true}c=a(j).closest("form").find(":checkbox");e=c.index(j);k=c.index(this);i=a(this).prop("checked");if(0<e&&0<k&&e!=k){c.slice(e,k).prop("checked",function(){if(a(this).closest("tr").is(":visible")){return i}return false})}}j=this;return true});a("thead, tfoot").find(".check-column :checkbox").click(function(n){var o=a(this).prop("checked"),m="undefined"==typeof toggleWithKeyboard?false:toggleWithKeyboard,l=n.shiftKey||m;a(this).closest("table").children("tbody").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){if(a(this).closest("tr").is(":hidden")){return false}if(l){return a(this).prop("checked")}else{if(o){return true}}return false});a(this).closest("table").children("thead,  tfoot").filter(":visible").children().children(".check-column").find(":checkbox").prop("checked",function(){if(l){return false}else{if(o){return true}}return false})});a("#default-password-nag-no").click(function(){setUserSetting("default_password_nag","hide");a("div.default-password-nag").hide();return false});a("#newcontent").bind("keydown.wpevent_InsertTab",function(q){if(q.keyCode!=9){return true}var n=q.target,s=n.selectionStart,m=n.selectionEnd,r=n.value,l,p;try{this.lastKey=9}catch(o){}if(document.selection){n.focus();p=document.selection.createRange();p.text="\t"}else{if(s>=0){l=this.scrollTop;n.value=r.substring(0,s).concat("\t",r.substring(m));n.selectionStart=n.selectionEnd=s+1;this.scrollTop=l}}if(q.stopPropagation){q.stopPropagation()}if(q.preventDefault){q.preventDefault()}});a("#newcontent").bind("blur.wpevent_InsertTab",function(l){if(this.lastKey&&9==this.lastKey){this.focus()}});if(d.length){d.closest("form").submit(function(l){if(a('select[name="action"]').val()==-1&&a('select[name="action2"]').val()==-1&&d.val()==f){d.val("1")}})}a(window).bind("resize.autofold",function(){if(getUserSetting("mfold")=="f"){return}var l=a(window).width();if(l<=800){if(!h){a(document.body).addClass("folded");h=true}}else{if(h){a(document.body).removeClass("folded");h=false}}}).triggerHandler("resize")});a(document).bind("wp_CloseOnEscape",function(c,b){if(typeof(b.cb)!="function"){return}if(typeof(b.condition)!="function"||b.condition()){b.cb()}return true})})(jQuery);
  • branches/3.3/wp-admin/load-scripts.php

    r19591 r19669  
    9393function wp_guess_url() {}
    9494
     95if ( ! function_exists( 'json_encode' ) ) :
     96/**
     97 * @ignore
     98 */
     99function json_encode() {}
     100endif;
     101
    95102function get_file($path) {
    96103
  • branches/3.3/wp-admin/press-this.php

    r19591 r19669  
    315315    do_action('admin_head');
    316316?>
     317    <style type="text/css">
     318    #message {
     319        margin: 10px 0;
     320    }
     321    #title,
     322    .press-this #wphead {
     323        margin-left: 0;
     324        margin-right: 0;
     325    }
     326    .rtl.press-this #header-logo,
     327    .rtl.press-this #wphead h1 {
     328        float: right;
     329    }
     330    </style>
    317331    <script type="text/javascript">
    318332    var wpActiveEditor = 'content';
     
    445459</script>
    446460</head>
    447 <body class="press-this wp-admin">
     461<body class="press-this wp-admin<?php if ( is_rtl() ) echo ' rtl'; ?>">
    448462<form action="press-this.php?action=post" method="post">
    449463<div id="poststuff" class="metabox-holder">
  • branches/3.3/wp-admin/users.php

    r19591 r19669  
    101101        if ( ! current_user_can('promote_user', $id) )
    102102            wp_die(__('You can&#8217;t edit that user.'));
    103         // The new role of the current user must also have the promote_users cap or be a super admin
    104         if ( $id == $current_user->ID && ! is_super_admin() && ! $wp_roles->role_objects[ $_REQUEST['new_role'] ]->has_cap('promote_users') ) {
    105             $update = 'err_admin_role';
    106             continue;
     103        // The new role of the current user must also have the promote_users cap or be a multisite super admin
     104        if ( $id == $current_user->ID && ! $wp_roles->role_objects[ $_REQUEST['new_role'] ]->has_cap('promote_users')
     105            && ! ( is_multisite() && is_super_admin() ) ) {
     106                $update = 'err_admin_role';
     107                continue;
    107108        }
    108109
  • branches/3.3/wp-includes/capabilities.php

    r19591 r19669  
    488488        global $wpdb;
    489489
    490         if ( 'id' == $field )
     490        if ( 'id' == $field ) {
     491            // Make sure the value is numeric to avoid casting objects, for example,
     492            // to int 1.
     493            if ( ! is_numeric( $value ) )
     494                return false;
    491495            $value = absint( $value );
    492         else
     496        } else {
    493497            $value = trim( $value );
     498        }
    494499
    495500        if ( !$value )
  • branches/3.3/wp-includes/class-wp-admin-bar.php

    r19591 r19669  
    197197    public function render() {
    198198        $root = $this->_bind();
    199         $this->_render( $root );
     199        if ( $root )
     200            $this->_render( $root );
    200201    }
    201202
  • branches/3.3/wp-includes/functions.php

    r19591 r19669  
    28972897            -webkit-box-sizing: content-box;
    28982898            box-sizing: content-box;
     2899            background-color: #f5f5f5;
     2900            background-image: -ms-linear-gradient(top, #ffffff, #f2f2f2);
     2901            background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
     2902            background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
     2903            background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f2f2f2));
     2904            background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
     2905            background-image: linear-gradient(top, #ffffff, #f2f2f2);
    28992906        }
    29002907
     
    29042911        }
    29052912
    2906         .button {
    2907             background: #f2f2f2 url(<?php echo wp_guess_url(); ?>/wp-admin/images/white-grad.png) repeat-x scroll left top;
    2908         }
    2909 
    29102913        .button:active {
    2911             background: #eee url(<?php echo wp_guess_url(); ?>/wp-admin/images/white-grad-active.png) repeat-x scroll left top;
    2912         }
     2914            background-image: -ms-linear-gradient(top, #f2f2f2, #ffffff);
     2915            background-image: -moz-linear-gradient(top, #f2f2f2, #ffffff);
     2916            background-image: -o-linear-gradient(top, #f2f2f2, #ffffff);
     2917            background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#ffffff));
     2918            background-image: -webkit-linear-gradient(top, #f2f2f2, #ffffff);
     2919            background-image: linear-gradient(top, #f2f2f2, #ffffff);
     2920        }
     2921
    29132922        <?php if ( 'rtl' == $text_direction ) : ?>
    29142923        body { font-family: Tahoma, Arial; }
  • branches/3.3/wp-includes/functions.wp-styles.php

    r19591 r19669  
    1919 */
    2020function wp_print_styles( $handles = false ) {
    21     do_action( 'wp_print_styles' );
    2221    if ( '' === $handles ) // for wp_head
    2322        $handles = false;
     23
     24    if ( ! $handles )
     25        do_action( 'wp_print_styles' );
    2426
    2527    global $wp_styles;
  • branches/3.3/wp-includes/nav-menu-template.php

    r19591 r19669  
    363363            $_root_relative_current = untrailingslashit( $_SERVER['REQUEST_URI'] );
    364364            $current_url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_root_relative_current;
    365             $item_url = untrailingslashit( strpos( $menu_item->url, '#' ) ? substr( $menu_item->url, 0, strpos( $menu_item->url, '#' ) ) : $menu_item->url );
     365            $raw_item_url = strpos( $menu_item->url, '#' ) ? substr( $menu_item->url, 0, strpos( $menu_item->url, '#' ) ) : $menu_item->url;
     366            $item_url = untrailingslashit( $raw_item_url );
    366367            $_indexless_current = untrailingslashit( preg_replace( '/index.php$/', '', $current_url ) );
    367368
    368             if ( in_array( $item_url, array( $current_url, $_indexless_current, $_root_relative_current ) ) ) {
     369            if ( $raw_item_url && in_array( $item_url, array( $current_url, $_indexless_current, $_root_relative_current ) ) ) {
    369370                $classes[] = 'current-menu-item';
    370371                $menu_items[$key]->current = true;
  • branches/3.3/wp-includes/script-loader.php

    r19591 r19669  
    6262    $scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
    6363
    64     $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20111130', 1 );
     64    $scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20120102', 1 );
    6565    $scripts->localize( 'common', 'commonL10n', array(
    6666        'warnDelete' => __("You are about to permanently delete the selected items.\n  'Cancel' to stop, 'OK' to delete.")
  • branches/3.3/wp-includes/user.php

    r19591 r19669  
    697697        if ( 'capabilities' !== substr( $key, -12 ) )
    698698            continue;
    699         if ( 0 !== strpos( $key, $wpdb->base_prefix ) )
     699        if ( $wpdb->base_prefix && 0 !== strpos( $key, $wpdb->base_prefix ) )
    700700            continue;
    701701        $blog_id = str_replace( array( $wpdb->base_prefix, '_capabilities' ), '', $key );
     
    932932        $user = new WP_User($for_user_id);
    933933
    934     $userdata   = $user->data;
     934    $userdata   = $user;
    935935    $user_ID    = (int) $user->ID;
    936936    $user_level = (int) isset($user->user_level) ? $user->user_level : 0;
  • branches/3.3/wp-includes/version.php

    r19591 r19669  
    55 * @global string $wp_version
    66 */
    7 $wp_version = '3.3';
     7$wp_version = '3.3.1';
    88
    99/**
Note: See TracChangeset for help on using the changeset viewer.