<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[18853] trunk: Make screen options a help tab.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/18853">18853</a></dd>
<dt>Author</dt> <dd>koopersmith</dd>
<dt>Date</dt> <dd>2011-10-01 00:24:44 +0000 (Sat, 01 Oct 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Make screen options a help tab. Move screen option functions into WP_Screen. see <a href="http://core.trac.wordpress.org/ticket/18690">#18690</a>, <a href="http://core.trac.wordpress.org/ticket/18785">#18785</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminadminheaderphp">trunk/wp-admin/admin-header.php</a></li>
<li><a href="#trunkwpadmineditformadvancedphp">trunk/wp-admin/edit-form-advanced.php</a></li>
<li><a href="#trunkwpadminincludesclasswplisttablephp">trunk/wp-admin/includes/class-wp-list-table.php</a></li>
<li><a href="#trunkwpadminincludesscreenphp">trunk/wp-admin/includes/screen.php</a></li>
<li><a href="#trunkwpadminindexphp">trunk/wp-admin/index.php</a></li>
<li><a href="#trunkwpadminjscommondevjs">trunk/wp-admin/js/common.dev.js</a></li>
<li><a href="#trunkwpadminjscommonjs">trunk/wp-admin/js/common.js</a></li>
<li><a href="#trunkwpincludesadminbarphp">trunk/wp-includes/admin-bar.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminadminheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/admin-header.php (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/admin-header.php        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-admin/admin-header.php        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -117,8 +117,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;wpbody-content&quot;&gt;
</span><span class="cx"> &lt;?php
</span><del>-screen_meta($current_screen);
</del><span class="cx"> 
</span><ins>+$current_screen-&gt;render_screen_meta();
+
</ins><span class="cx"> if ( is_network_admin() )
</span><span class="cx">         do_action('network_admin_notices');
</span><span class="cx"> elseif ( is_user_admin() )
</span></span></pre></div>
<a id="trunkwpadmineditformadvancedphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-form-advanced.php (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-form-advanced.php        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-admin/edit-form-advanced.php        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -164,12 +164,20 @@
</span><span class="cx"> if ( 'post' == $post_type ) {
</span><span class="cx">         $customize_display = '&lt;p&gt;' . __('The title field and the big Post Editing Area are fixed in place, but you can reposition all the other boxes using drag and drop, and can minimize or expand them by clicking the title bar of each box. Use the Screen Options tab to unhide more boxes (Excerpt, Send Trackbacks, Custom Fields, Discussion, Slug, Author) or to choose a 1- or 2-column layout for this screen.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_tab( 'customize-display', __('Customizing This Display'), $customize_display );
</del><ins>+        $current_screen-&gt;add_help_tab( array(
+                'id'      =&gt; 'customize-display',
+                'title'   =&gt; __('Customizing This Display'),
+                'content' =&gt; $customize_display,
+        ) );
</ins><span class="cx"> 
</span><span class="cx">         $title_and_editor  = '&lt;p&gt;' . __('&lt;strong&gt;Title&lt;/strong&gt; - Enter a title for your post. After you enter a title, you&amp;#8217;ll see the permalink below, which you can edit.') . '&lt;/p&gt;';
</span><span class="cx">         $title_and_editor .= '&lt;p&gt;' . __('&lt;strong&gt;Post editor&lt;/strong&gt; - Enter the text for your post. There are two modes of editing: Visual and HTML. Choose the mode by clicking on the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon in the row to get a second row of controls. The HTML mode allows you to enter raw HTML along with your post text. You can insert media files by clicking the icons above the post editor and following the directions. You can go the distraction-free writing screen, new in 3.2, via the Fullscreen icon in Visual mode (second to last in the top row) or the Fullscreen button in HTML mode (last in the row). Once there, you can make buttons visible by hovering over the top area. Exit Fullscreen back to the regular post editor.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_tab( 'title-post-editor', __('Title and Post Editor'), $title_and_editor );
</del><ins>+        $current_screen-&gt;add_help_tab( array(
+                'id'      =&gt; 'title-post-editor',
+                'title'   =&gt; __('Title and Post Editor'),
+                'content' =&gt; $title_and_editor,
+        ) );
</ins><span class="cx"> 
</span><span class="cx">         $publish_box = '&lt;p&gt;' . __('&lt;strong&gt;Publish&lt;/strong&gt; - You can set the terms of publishing your post in the Publish box. For Status, Visibility, and Publish (immediately), click on the Edit link to reveal more options. Visibility includes options for password-protecting a post or making it stay at the top of your blog indefinitely (sticky). Publish (immediately) allows you to set a future or past date and time, so you can schedule a post to be published in the future or backdate a post.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><span class="lines">@@ -181,12 +189,18 @@
</span><span class="cx">                 $publish_box .= '&lt;p&gt;' . __('&lt;strong&gt;Featured Image&lt;/strong&gt; - This allows you to associate an image with your post without inserting it. This is usually useful only if your theme makes use of the featured image as a post thumbnail on the home page, a custom header, etc.') . '&lt;/p&gt;';
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_tab( 'publish-box', __('Publish Box'), $publish_box );
</del><ins>+        $current_screen-&gt;add_help_tab( array(
+                'title'   =&gt; __('Publish Box'),
+                'content' =&gt; $publish_box,
+        ) );
</ins><span class="cx"> 
</span><span class="cx">         $discussion_settings  = '&lt;p&gt;' . __('&lt;strong&gt;Send Trackbacks&lt;/strong&gt; - Trackbacks are a way to notify legacy blog systems that you&amp;#8217;ve linked to them. Enter the URL(s) you want to send trackbacks. If you link to other WordPress sites they&amp;#8217;ll be notified automatically using pingbacks, and this field is unnecessary.') . '&lt;/p&gt;';
</span><span class="cx">         $discussion_settings .= '&lt;p&gt;' . __('&lt;strong&gt;Discussion&lt;/strong&gt; - You can turn comments and pings on or off, and if there are comments on the post, you can see them here and moderate them.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_tab( 'discussion-settings', __('Discussion Settings'), $discussion_settings );
</del><ins>+        $current_screen-&gt;add_help_tab( array(
+                'title'   =&gt; __('Discussion Settings'),
+                'content' =&gt; $discussion_settings,
+        ) );
</ins><span class="cx"> 
</span><span class="cx">         $current_screen-&gt;add_help_sidebar(
</span><span class="cx">                         '&lt;p&gt;' . sprintf(__('You can also create posts with the &lt;a href=&quot;%s&quot;&gt;Press This bookmarklet&lt;/a&gt;.'), 'options-writing.php') . '&lt;/p&gt;' .
</span></span></pre></div>
<a id="trunkwpadminincludesclasswplisttablephp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/class-wp-list-table.php (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/class-wp-list-table.php        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-admin/includes/class-wp-list-table.php        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -897,9 +897,14 @@
</span><span class="cx">          * @access private
</span><span class="cx">          */
</span><span class="cx">         function _js_vars() {
</span><ins>+                $current_screen = get_current_screen();
+
</ins><span class="cx">                 $args = array(
</span><del>-                        'class' =&gt; get_class( $this ),
-                        'screen' =&gt; get_current_screen()
</del><ins>+                        'class'  =&gt; get_class( $this ),
+                        'screen' =&gt; array(
+                                'id'   =&gt; $current_screen-&gt;id,
+                                'base' =&gt; $current_screen-&gt;base,
+                        )
</ins><span class="cx">                 );
</span><span class="cx"> 
</span><span class="cx">                 printf( &quot;&lt;script type='text/javascript'&gt;list_args = %s;&lt;/script&gt;\n&quot;, json_encode( $args ) );
</span></span></pre></div>
<a id="trunkwpadminincludesscreenphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/screen.php (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/screen.php        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-admin/includes/screen.php        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -236,202 +236,22 @@
</span><span class="cx">         return $screen;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function screen_meta($screen) {
-        global $wp_meta_boxes, $_wp_contextual_help, $wp_list_table, $wp_current_screen_options;
-
-        if ( is_string($screen) )
-                $screen = convert_to_screen($screen);
-
-        $columns = get_column_headers( $screen );
-        $hidden = get_hidden_columns( $screen );
-
-        $meta_screens = array('index' =&gt; 'dashboard');
-
-        if ( isset($meta_screens[$screen-&gt;id]) ) {
-                $screen-&gt;id = $meta_screens[$screen-&gt;id];
-                $screen-&gt;base = $screen-&gt;id;
-        }
-
-        $show_screen = false;
-        if ( !empty($wp_meta_boxes[$screen-&gt;id]) || !empty($columns) )
-                $show_screen = true;
-
-        $screen_options = screen_options($screen);
-        if ( $screen_options )
-                $show_screen = true;
-
-        if ( !isset($_wp_contextual_help) )
-                $_wp_contextual_help = array();
-
-        $settings = apply_filters('screen_settings', '', $screen);
-
-        switch ( $screen-&gt;id ) {
-                case 'widgets':
-                        $settings = '&lt;p&gt;&lt;a id=&quot;access-on&quot; href=&quot;widgets.php?widgets-access=on&quot;&gt;' . __('Enable accessibility mode') . '&lt;/a&gt;&lt;a id=&quot;access-off&quot; href=&quot;widgets.php?widgets-access=off&quot;&gt;' . __('Disable accessibility mode') . &quot;&lt;/a&gt;&lt;/p&gt;\n&quot;;
-                        $show_screen = true;
-                        break;
-        }
-        if ( ! empty( $settings ) )
-                $show_screen = true;
-
-        if ( !empty($wp_current_screen_options) )
-                $show_screen = true;
-
-        $show_screen = apply_filters('screen_options_show_screen', $show_screen, $screen);
-
-        // If we have screen options, add the menu to the admin bar.
-        if ( $show_screen )
-                add_action( 'admin_bar_menu', 'wp_admin_bar_screen_options_menu', 80 );
-
-
-?&gt;
-&lt;div id=&quot;screen-meta&quot;&gt;
-&lt;?php if ( $show_screen ) : ?&gt;
-&lt;div id=&quot;screen-options-wrap&quot; class=&quot;hidden&quot;&gt;
-        &lt;form id=&quot;adv-settings&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
-        &lt;?php if ( isset($wp_meta_boxes[$screen-&gt;id]) ) : ?&gt;
-                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Metaboxes') ?&gt;&lt;/h5&gt;
-                &lt;div class=&quot;metabox-prefs&quot;&gt;
-                        &lt;?php meta_box_prefs($screen); ?&gt;
-                        &lt;br class=&quot;clear&quot; /&gt;
-                &lt;/div&gt;
-                &lt;?php endif;
-                if ( ! empty($columns) ) : ?&gt;
-                &lt;h5&gt;&lt;?php echo ( isset( $columns['_title'] ) ?  $columns['_title'] :  _x('Show on screen', 'Columns') ) ?&gt;&lt;/h5&gt;
-                &lt;div class=&quot;metabox-prefs&quot;&gt;
-&lt;?php
-        $special = array('_title', 'cb', 'comment', 'media', 'name', 'title', 'username', 'blogname');
-
-        foreach ( $columns as $column =&gt; $title ) {
-                // Can't hide these for they are special
-                if ( in_array( $column, $special ) )
-                        continue;
-                if ( empty( $title ) )
-                        continue;
-
-                if ( 'comments' == $column )
-                        $title = __( 'Comments' );
-                $id = &quot;$column-hide&quot;;
-                echo '&lt;label for=&quot;' . $id . '&quot;&gt;';
-                echo '&lt;input class=&quot;hide-column-tog&quot; name=&quot;' . $id . '&quot; type=&quot;checkbox&quot; id=&quot;' . $id . '&quot; value=&quot;' . $column . '&quot;' . checked( !in_array($column, $hidden), true, false ) . ' /&gt;';
-                echo &quot;$title&lt;/label&gt;\n&quot;;
-        }
-?&gt;
-                        &lt;br class=&quot;clear&quot; /&gt;
-                &lt;/div&gt;
-        &lt;?php endif;
-        echo screen_layout($screen);
-
-        if ( !empty( $screen_options ) ) {
-                ?&gt;
-                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Screen Options') ?&gt;&lt;/h5&gt;
-                &lt;?php
-        }
-
-        echo $screen_options;
-        echo $settings; ?&gt;
-        &lt;div&gt;&lt;?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?&gt;&lt;/div&gt;
-        &lt;/form&gt;
-&lt;/div&gt;
-
-&lt;?php endif; // $show_screen
-
-        $_wp_contextual_help = apply_filters('contextual_help_list', $_wp_contextual_help, $screen);
-        ?&gt;
-        &lt;div id=&quot;contextual-help-wrap&quot; class=&quot;hidden&quot;&gt;
-        &lt;?php
-        $contextual_help = '';
-        if ( isset($_wp_contextual_help[$screen-&gt;id]) &amp;&amp; is_array($_wp_contextual_help[$screen-&gt;id]) ) {
-
-                /*
-                 * Loop through ['contextual-help-tabs']
-                 *   - It's a nested array where $key=&gt;$value &gt;&gt; $title=&gt;$content
-                 * Has no output so can only loop the array once
-                 */
-                $contextual_help_links = ''; // store looped content for later
-                $contextual_help_panels = ''; // store looped content for later
-
-                $tab_active = true;
-
-                foreach ( $_wp_contextual_help[$screen-&gt;id]['tabs'] as $tab ) {
-                        list( $id, $title, $content ) = $tab;
-
-                        // Generate IDs
-                        $id = sanitize_html_class( $id );
-                        $link_id  = &quot;tab-link-$id&quot;;
-                        $panel_id = &quot;tab-panel-$id&quot;;
-
-                        $link_classes  = '';
-                        $panel_classes = 'help-tab-content';
-
-                        if ( $tab_active ) {
-                                $link_classes  .= ' active';
-                                $panel_classes .= ' active';
-                        }
-
-                        $link_classes = ( $tab_active ) ? 'active' : '';
-
-                        $contextual_help_links .= '&lt;li id=&quot;' . esc_attr( $link_id ) . '&quot; class=&quot;' . esc_attr( $link_classes ) . '&quot;&gt;';
-                        $contextual_help_links .= '&lt;a href=&quot;' . esc_url( &quot;#$panel_id&quot; ) . '&quot;&gt;' . esc_html( $title ) . '&lt;/a&gt;';
-                        $contextual_help_links .= '&lt;/li&gt;';
-
-                        $contextual_help_panels .= '&lt;div id=&quot;' . esc_attr( $panel_id ) . '&quot; class=&quot;' . esc_attr( $panel_classes ) . '&quot;&gt;';
-                        $contextual_help_panels .= '&lt;h3&gt;' . esc_html( $title ) . '&lt;/h3&gt;';
-                        $contextual_help_panels .= $content;
-                        $contextual_help_panels .= &quot;&lt;/div&gt;&quot;;
-
-                        $tab_active = false;
-                }
-
-                // Start output from loop: Tabbed help content
-                $contextual_help .= '&lt;ul class=&quot;contextual-help-tabs&quot;&gt;' . &quot;\n&quot;;
-                $contextual_help .= $contextual_help_links;
-                $contextual_help .= '&lt;/ul&gt;' .&quot;\n&quot;;
-
-                // Sidebar to right of tabs
-                $contextual_help .= '&lt;div class=&quot;contextual-help-sidebar&quot;&gt;' . &quot;\n&quot;;
-                $contextual_help .= $_wp_contextual_help[$screen-&gt;id]['sidebar'];
-                $contextual_help .= &quot;&lt;/div&gt;\n&quot;;
-
-                // Panel content
-                $contextual_help .= '&lt;div class=&quot;contextual-help-tabs-wrap&quot;&gt;' . &quot;\n&quot;;
-                $contextual_help .= $contextual_help_panels;
-                $contextual_help .= &quot;&lt;/div&gt;\n&quot;;
-
-        } elseif ( isset( $_wp_contextual_help[ $screen-&gt;id ] ) ) {
-                $contextual_help .= $_wp_contextual_help[ $screen-&gt;id ];
-
-        } else {
-                $default_help  = __( '&lt;a href=&quot;http://codex.wordpress.org/&quot; target=&quot;_blank&quot;&gt;Documentation&lt;/a&gt;' );
-                $default_help .= '&lt;br /&gt;';
-                $default_help .= __( '&lt;a href=&quot;http://wordpress.org/support/&quot; target=&quot;_blank&quot;&gt;Support Forums&lt;/a&gt;' );
-
-                $contextual_help .= apply_filters( 'default_contextual_help', $default_help );
-        }
-
-        $contextual_help = &quot;&lt;div class='metabox-prefs'&gt;$contextual_help&lt;/div&gt;&quot;;
-
-        echo apply_filters('contextual_help', $contextual_help, $screen-&gt;id, $screen);
-        ?&gt;
-        &lt;/div&gt;
-
-&lt;/div&gt; &lt;?php // #screen-meta
</del><ins>+function screen_meta( $screen ) {
+        $current_screen = get_current_screen();
+        $current_screen-&gt;render_screen_meta();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * Add contextual help text for a page
</del><ins>+ * Add contextual help text for a page.
</ins><span class="cx">  *
</span><del>- * The array $help takes the following format:
- *         array( 'contextual-help-tabs'         =&gt; array( $tab1_title =&gt; $tab1_value [, $tab2_title =&gt; $tab2_value, ...] ),
- *                'contextual-help-sidebar' =&gt; $help_links_as_string )
</del><ins>+ * Creates a 'Screen Info' help tab.
</ins><span class="cx">  *
</span><del>- * For backwards compatability, a string is also accepted.
- *
</del><span class="cx">  * @since 2.7.0
</span><span class="cx">  *
</span><del>- * @param string         $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
- * @param array|string         $help         Creates tabs &amp; links columns within help text in array.
</del><ins>+ * @param string    $screen The handle for the screen to add help to.  This is usually the hook name returned by the add_*_page() functions.
+ * @param string    $help   The content of a 'Screen Info' help tab.
</ins><span class="cx">  *
</span><ins>+ * @todo: deprecate?
</ins><span class="cx">  */
</span><span class="cx"> function add_contextual_help($screen, $help) {
</span><span class="cx">         global $_wp_contextual_help;
</span><span class="lines">@@ -445,41 +265,22 @@
</span><span class="cx">         $_wp_contextual_help[$screen-&gt;id] = $help;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/**
+ * Returns the screen layout options.
+ *
+ * @todo: deprecate?
+ */
</ins><span class="cx"> function screen_layout($screen) {
</span><del>-        global $screen_layout_columns, $wp_current_screen_options;
</del><ins>+        $current_screen = get_current_screen();
</ins><span class="cx"> 
</span><del>-        if ( is_string($screen) )
-                $screen = convert_to_screen($screen);
-
-        // Back compat for plugins using the filter instead of add_screen_option()
-        $columns = apply_filters('screen_layout_columns', array(), $screen-&gt;id, $screen);
-        if ( !empty($columns) &amp;&amp; isset($columns[$screen-&gt;id]) )
-                add_screen_option('layout_columns', array('max' =&gt; $columns[$screen-&gt;id]) );
-
-        if ( !isset($wp_current_screen_options['layout_columns']) ) {
-                $screen_layout_columns = 0;
</del><ins>+        if ( ! $current_screen )
</ins><span class="cx">                 return '';
</span><del>-        }
</del><span class="cx"> 
</span><del>-        $screen_layout_columns = get_user_option(&quot;screen_layout_$screen-&gt;id&quot;);
-        $num = $wp_current_screen_options['layout_columns']['max'];
</del><ins>+        ob_start();
+        $current_screen-&gt;render_screen_layout();
+        $screen_layout = ob_get_clean();
</ins><span class="cx"> 
</span><del>-        if ( ! $screen_layout_columns ) {
-                if ( isset($wp_current_screen_options['layout_columns']['default']) )
-                        $screen_layout_columns = $wp_current_screen_options['layout_columns']['default'];
-                else
-                        $screen_layout_columns = 'auto';
-        }
-
-        $i = 1;
-        $return = '&lt;h5&gt;' . __('Screen Layout') . &quot;&lt;/h5&gt;\n&lt;div class='columns-prefs'&gt;&quot; . __('Number of Columns:') . &quot;\n&quot;;
-        while ( $i &lt;= $num ) {
-                $return .= &quot;&lt;label&gt;&lt;input type='radio' name='screen_columns' value='$i'&quot; . ( ($screen_layout_columns == $i) ? &quot; checked='checked'&quot; : &quot;&quot; ) . &quot; /&gt; $i&lt;/label&gt;\n&quot;;
-                ++$i;
-        }
-        $return .= &quot;&lt;label&gt;&lt;input type='radio' id='wp_auto_columns' name='screen_columns' value='auto'&quot; . ( ($screen_layout_columns == 'auto') ? &quot; checked='checked'&quot; : &quot;&quot; ) . &quot; /&gt; &quot; . __('Auto') . &quot;&lt;/label&gt;\n&quot;;
-        $return .= &quot;&lt;/div&gt;\n&quot;;
-        return $return;
</del><ins>+        return $screen_layout;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><span class="lines">@@ -492,57 +293,31 @@
</span><span class="cx">  * @return void
</span><span class="cx">  */
</span><span class="cx"> function add_screen_option( $option, $args = array() ) {
</span><del>-        global $wp_current_screen_options;
</del><ins>+        $current_screen = get_current_screen();
</ins><span class="cx"> 
</span><del>-        if ( !isset($wp_current_screen_options) )
-                $wp_current_screen_options = array();
</del><ins>+        if ( ! $current_screen )
+                return;
</ins><span class="cx"> 
</span><del>-        $wp_current_screen_options[$option] = $args;
</del><ins>+        return $current_screen-&gt;add_option( $option, $args );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+
+/**
+ * Returns the screen's per-page options.
+ *
+ * @todo: deprecate?
+ */
</ins><span class="cx"> function screen_options($screen) {
</span><del>-        global $wp_current_screen_options;
</del><ins>+        $current_screen = get_current_screen();
</ins><span class="cx"> 
</span><del>-        if ( is_string($screen) )
-                $screen = convert_to_screen($screen);
-
-        if ( !isset($wp_current_screen_options['per_page']) )
</del><ins>+        if ( ! $current_screen )
</ins><span class="cx">                 return '';
</span><span class="cx"> 
</span><del>-        $per_page_label = $wp_current_screen_options['per_page']['label'];
</del><ins>+        ob_start();
+        $current_screen-&gt;render_per_page_options();
+        $per_page_options = ob_get_clean();
</ins><span class="cx"> 
</span><del>-        if ( empty($wp_current_screen_options['per_page']['option']) ) {
-                $option = str_replace( '-', '_', &quot;{$screen-&gt;id}_per_page&quot; );
-        } else {
-                $option = $wp_current_screen_options['per_page']['option'];
-        }
-
-        $per_page = (int) get_user_option( $option );
-        if ( empty( $per_page ) || $per_page &lt; 1 ) {
-                if ( isset($wp_current_screen_options['per_page']['default']) )
-                        $per_page = $wp_current_screen_options['per_page']['default'];
-                else
-                        $per_page = 20;
-        }
-
-        if ( 'edit_comments_per_page' == $option )
-                $per_page = apply_filters( 'comments_per_page', $per_page, isset($_REQUEST['comment_status']) ? $_REQUEST['comment_status'] : 'all' );
-        elseif ( 'categories_per_page' == $option )
-                $per_page = apply_filters( 'edit_categories_per_page', $per_page );
-        else
-                $per_page = apply_filters( $option, $per_page );
-
-        // Back compat
-        if ( isset( $screen-&gt;post_type ) )
-                $per_page = apply_filters( 'edit_posts_per_page', $per_page, $screen-&gt;post_type );
-
-        $return = &quot;&lt;div class='screen-options'&gt;\n&quot;;
-        if ( !empty($per_page_label) )
-                $return .= &quot;&lt;input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' /&gt; &lt;label for='$option'&gt;$per_page_label&lt;/label&gt;\n&quot;;
-        $return .= get_submit_button( __( 'Apply' ), 'button', 'screen-options-apply', false );
-        $return .= &quot;&lt;input type='hidden' name='wp_screen_options[option]' value='&quot; . esc_attr($option) . &quot;' /&gt;&quot;;
-        $return .= &quot;&lt;/div&gt;\n&quot;;
-        return $return;
</del><ins>+        return $per_page_options;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function screen_icon( $screen = '' ) {
</span><span class="lines">@@ -707,6 +482,52 @@
</span><span class="cx">         public $taxonomy;
</span><span class="cx"> 
</span><span class="cx">         /**
</span><ins>+         * The help tab data associated with the screen, if any.
+         *
+         * @since 3.3.0
+         * @var array
+         * @access private
+         */
+        public $help_tabs = array();
+
+        /**
+         * The help sidebar data associated with the screen, if any.
+         *
+         * @since 3.3.0
+         * @var string
+         * @access private
+         */
+        public $help_sidebar = '';
+
+        /**
+         * The screen options associated with the screen, if any.
+         *
+         * @since 3.3.0
+         * @var array
+         * @access private
+         */
+        public $options = array();
+
+
+        /**
+         * Stores the result of the public show_screen_options function.
+         *
+         * @since 3.3.0
+         * @var bool
+         * @access private
+         */
+        private $_show_screen_options;
+
+        /**
+         * Stores the 'screen_settings' section of screen options.
+         *
+         * @since 3.3.0
+         * @var string
+         * @access private
+         */
+        private $_screen_settings;
+
+        /**
</ins><span class="cx">          * Constructor
</span><span class="cx">          *
</span><span class="cx">          * @since 3.3.0
</span><span class="lines">@@ -800,7 +621,7 @@
</span><span class="cx">          * @param array $args Associative array of arguments particular to the given $option.
</span><span class="cx">          */
</span><span class="cx">         public function add_option( $option, $args = array() ) {
</span><del>-                return add_screen_option( $option, $args );
</del><ins>+                $this-&gt;options[ $option ] = $args;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /**
</span><span class="lines">@@ -809,14 +630,31 @@
</span><span class="cx">          *
</span><span class="cx">          * @since 3.3.0
</span><span class="cx">          *
</span><del>-         * @param string $id Tab ID
-         * @param string $title Title for the tab
-         * @param string $content Help tab content in plain text or HTML.
</del><ins>+         * @param array $args
+         * - string   - title    - Title for the tab.
+         * - string   - id       - Tab ID. Optional.
+         * - string   - content  - Help tab content in plain text or HTML. Optional.
+         * - callback - callback - A callback to generate the tab content. Optional.
+         *
</ins><span class="cx">          */
</span><del>-        public function add_help_tab( $id, $title, $content) {
-                global $_wp_contextual_help;
</del><ins>+        public function add_help_tab( $args ) {
+                $defaults = array(
+                        'title'    =&gt; false,
+                        'id'       =&gt; false,
+                        'content'  =&gt; '',
+                        'callback' =&gt; false,
+                );
+                $args = wp_parse_args( $args, $defaults );
</ins><span class="cx"> 
</span><del>-                $_wp_contextual_help[$this-&gt;id]['tabs'][] = array( $id, $title, $content );
</del><ins>+                // Ensure we have a title.
+                if ( ! $args['title'] )
+                        return;
+
+                // Create an id from the title if one is not provided.
+                if ( ! $args['id'] )
+                        $args['id'] = sanitize_html_class( $args['title'] );
+
+                $this-&gt;help_tabs[] = $args;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /**
</span><span class="lines">@@ -828,8 +666,268 @@
</span><span class="cx">          * @param string $content Sidebar content in plain text or HTML.
</span><span class="cx">          */
</span><span class="cx">         public function add_help_sidebar( $content ) {
</span><ins>+                $this-&gt;help_sidebar = $content;
+        }
+
+        /**
+         * Render the screen's help section.
+         *
+         * This will trigger the deprecated filters for backwards compatibility.
+         *
+         * @since 3.3.0
+         */
+        public function render_screen_meta() {
</ins><span class="cx">                 global $_wp_contextual_help;
</span><span class="cx"> 
</span><del>-                $_wp_contextual_help[$this-&gt;id]['sidebar'] = $content;
</del><ins>+                // Call old contextual_help_list filter.
+                if ( ! isset( $_wp_contextual_help ) )
+                        $_wp_contextual_help = array();
+                $_wp_contextual_help = apply_filters( 'contextual_help_list', $_wp_contextual_help, $this );
+
+                if ( isset( $_wp_contextual_help[ $this-&gt;id ] ) ) {
+                        // Call old contextual_help filter.
+                        $contextual_help = apply_filters( 'contextual_help', $_wp_contextual_help[ $this-&gt;id ], $this-&gt;id, $this );
+
+                        $this-&gt;add_help_tab( array(
+                                'title'   =&gt; __('Screen Info'),
+                                'content' =&gt; $contextual_help,
+                        ) );
+                }
+
+                // Add screen options tab
+                if ( $this-&gt;show_screen_options() ) {
+                        $this-&gt;add_help_tab( array(
+                                'title'    =&gt; __('Screen Options'),
+                                'callback' =&gt; array( $this, 'render_screen_options' ),
+                        ) );
+                }
+
+                // Time to render!
+                ?&gt;
+                &lt;div id=&quot;screen-meta&quot; class='metabox-prefs'&gt;
+                        &lt;div id=&quot;contextual-help-wrap&quot; class=&quot;hidden&quot;&gt;
+                                &lt;ul class=&quot;contextual-help-tabs&quot;&gt;
+                                        &lt;?php foreach ( $this-&gt;help_tabs as $i =&gt; $tab ):
+                                                $link_id  = &quot;tab-link-{$tab['id']}&quot;;
+                                                $panel_id = &quot;tab-panel-{$tab['id']}&quot;;
+                                                $classes  = ( $i == 0 ) ? 'active' : '';
+                                                ?&gt;
+
+                                                &lt;li id=&quot;&lt;?php echo esc_attr( $link_id ); ?&gt;&quot; class=&quot;&lt;?php echo esc_attr( $classes ); ?&gt;&quot;&gt;
+                                                        &lt;a href=&quot;&lt;?php echo esc_url( &quot;#$panel_id&quot; ); ?&gt;&quot;&gt;
+                                                                &lt;?php echo esc_html( $tab['title'] ); ?&gt;
+                                                        &lt;/a&gt;
+                                                &lt;/li&gt;
+                                        &lt;?php endforeach; ?&gt;
+                                &lt;/ul&gt;
+
+                                &lt;div class=&quot;contextual-help-sidebar&quot;&gt;
+                                        &lt;?php echo $this-&gt;help_sidebar; ?&gt;
+                                &lt;/div&gt;
+
+                                &lt;div class=&quot;contextual-help-tabs-wrap&quot;&gt;
+                                        &lt;?php foreach ( $this-&gt;help_tabs as $i =&gt; $tab ):
+                                                $panel_id = &quot;tab-panel-{$tab['id']}&quot;;
+                                                $classes  = ( $i == 0 ) ? 'active' : '';
+                                                $classes .= ' help-tab-content';
+                                                ?&gt;
+
+                                                &lt;div id=&quot;&lt;?php echo esc_attr( $panel_id ); ?&gt;&quot; class=&quot;&lt;?php echo esc_attr( $classes ); ?&gt;&quot;&gt;
+                                                        &lt;h3&gt;&lt;?php echo esc_html( $tab['title'] ); ?&gt;&lt;/h3&gt;
+                                                        &lt;?php
+                                                        // Print tab content.
+                                                        echo $tab['content'];
+
+                                                        // If it exists, fire tab callback.
+                                                        if ( ! empty( $tab['callback'] ) )
+                                                                call_user_func( $tab['callback'], $this );
+                                                        ?&gt;
+                                                &lt;/div&gt;
+                                        &lt;?php endforeach; ?&gt;
+                                &lt;/div&gt;
+                        &lt;/div&gt;
+                &lt;/div&gt;
+                &lt;?php
</ins><span class="cx">         }
</span><ins>+
+        public function show_screen_options() {
+                global $wp_meta_boxes, $wp_list_table;
+
+                if ( is_bool( $this-&gt;_show_screen_options ) )
+                        return $this-&gt;_show_screen_options;
+
+                $columns = get_column_headers( $this );
+
+                $show_screen = false;
+                if ( ! empty( $wp_meta_boxes[ $this-&gt;id ] ) || ! empty( $columns ) )
+                        $show_screen = true;
+
+                // Check if there are per-page options.
+                $show_screen = $show_screen || isset( $this-&gt;options['per_page'] );
+
+                $this-&gt;_screen_settings = apply_filters( 'screen_settings', '', $this );
+
+                switch ( $this-&gt;id ) {
+                        case 'widgets':
+                                $this-&gt;_screen_settings = '&lt;p&gt;&lt;a id=&quot;access-on&quot; href=&quot;widgets.php?widgets-access=on&quot;&gt;' . __('Enable accessibility mode') . '&lt;/a&gt;&lt;a id=&quot;access-off&quot; href=&quot;widgets.php?widgets-access=off&quot;&gt;' . __('Disable accessibility mode') . &quot;&lt;/a&gt;&lt;/p&gt;\n&quot;;
+                                $show_screen = true;
+                                break;
+                }
+
+                if ( ! empty( $this-&gt;_screen_settings ) )
+                        $show_screen = true;
+
+                if ( ! empty( $this-&gt;options ) )
+                        $show_screen = true;
+
+                $this-&gt;_show_screen_options = apply_filters( 'screen_options_show_screen', $show_screen, $this );
+                return $this-&gt;_show_screen_options;
+        }
+
+        /**
+         * Render the screen options tab.
+         *
+         * @since 3.3.0
+         */
+        public function render_screen_options() {
+                global $wp_meta_boxes, $wp_list_table;
+
+                $columns = get_column_headers( $this );
+                $hidden  = get_hidden_columns( $this );
+
+                ?&gt;
+                &lt;form id=&quot;adv-settings&quot; action=&quot;&quot; method=&quot;post&quot;&gt;
+                &lt;?php if ( isset( $wp_meta_boxes[ $this-&gt;id ] ) ) : ?&gt;
+                        &lt;h5&gt;&lt;?php _ex('Show on screen', 'Metaboxes') ?&gt;&lt;/h5&gt;
+                        &lt;div class=&quot;metabox-prefs&quot;&gt;
+                                &lt;?php meta_box_prefs( $this ); ?&gt;
+                                &lt;br class=&quot;clear&quot; /&gt;
+                        &lt;/div&gt;
+                        &lt;?php endif;
+                        if ( ! empty( $columns ) ) : ?&gt;
+                        &lt;h5&gt;&lt;?php echo ( isset( $columns['_title'] ) ?  $columns['_title'] :  _x('Show on screen', 'Columns') ) ?&gt;&lt;/h5&gt;
+                        &lt;div class=&quot;metabox-prefs&quot;&gt;
+                                &lt;?php
+                                $special = array('_title', 'cb', 'comment', 'media', 'name', 'title', 'username', 'blogname');
+
+                                foreach ( $columns as $column =&gt; $title ) {
+                                        // Can't hide these for they are special
+                                        if ( in_array( $column, $special ) )
+                                                continue;
+                                        if ( empty( $title ) )
+                                                continue;
+
+                                        if ( 'comments' == $column )
+                                                $title = __( 'Comments' );
+                                        $id = &quot;$column-hide&quot;;
+                                        echo '&lt;label for=&quot;' . $id . '&quot;&gt;';
+                                        echo '&lt;input class=&quot;hide-column-tog&quot; name=&quot;' . $id . '&quot; type=&quot;checkbox&quot; id=&quot;' . $id . '&quot; value=&quot;' . $column . '&quot;' . checked( !in_array($column, $hidden), true, false ) . ' /&gt;';
+                                        echo &quot;$title&lt;/label&gt;\n&quot;;
+                                }
+                                ?&gt;
+                                &lt;br class=&quot;clear&quot; /&gt;
+                        &lt;/div&gt;
+                &lt;?php endif;
+
+                $this-&gt;render_screen_layout();
+                $this-&gt;render_per_page_options();
+                echo $this-&gt;_screen_settings;
+
+                ?&gt;
+                &lt;div&gt;&lt;?php wp_nonce_field( 'screen-options-nonce', 'screenoptionnonce', false ); ?&gt;&lt;/div&gt;
+                &lt;/form&gt;
+                &lt;?php
+        }
+
+        function render_screen_layout() {
+                global $screen_layout_columns;
+
+                // Back compat for plugins using the filter instead of add_screen_option()
+                $columns = apply_filters( 'screen_layout_columns', array(), $this-&gt;id, $this );
+
+                if ( ! empty( $columns ) &amp;&amp; isset( $columns[ $this-&gt;id ] ) )
+                        add_screen_option( 'layout_columns', array('max' =&gt; $columns[ $this-&gt;id ] ) );
+
+                if ( ! isset( $this-&gt;options['layout_columns'] ) ) {
+                        $screen_layout_columns = 0;
+                        return;
+                }
+
+                $screen_layout_columns = get_user_option(&quot;screen_layout_$this-&gt;id&quot;);
+                $num = $this-&gt;options['layout_columns']['max'];
+
+                if ( ! $screen_layout_columns ) {
+                        if ( isset( $this-&gt;options['layout_columns']['default'] ) )
+                                $screen_layout_columns = $this-&gt;options['layout_columns']['default'];
+                        else
+                                $screen_layout_columns = 'auto';
+                }
+
+                ?&gt;
+                &lt;h5&gt;&lt;?php _e('Screen Layout'); ?&gt;&lt;/h5&gt;
+                &lt;div class='columns-prefs'&gt;&lt;?php
+                        _e('Number of Columns:');
+                        for ( $i = 1; $i &lt;= $num; ++$i ):
+                                ?&gt;
+                                &lt;label&gt;
+                                        &lt;input type='radio' name='screen_columns' value='&lt;?php echo esc_attr( $i ); ?&gt;'
+                                                &lt;?php checked( $screen_layout_columns, $i ); ?&gt; /&gt;
+                                        &lt;?php echo esc_html( $i ); ?&gt;
+                                &lt;/label&gt;
+                                &lt;?php
+                        endfor; ?&gt;
+                        &lt;label&gt;
+                                &lt;input type='radio' id='wp_auto_columns' name='screen_columns' value='auto'
+                                        &lt;?php checked( $screen_layout_columns, 'auto' ); ?&gt; /&gt;
+                                &lt;?php esc_html_e('Auto'); ?&gt;
+                        &lt;/label&gt;
+                &lt;/div&gt;
+                &lt;?php
+        }
+
+        function render_per_page_options() {
+                if ( ! isset( $this-&gt;options['per_page'] ) )
+                        return;
+
+                $per_page_label = $this-&gt;options['per_page']['label'];
+
+                if ( empty( $this-&gt;options['per_page']['option'] ) ) {
+                        $option = str_replace( '-', '_', &quot;{$this-&gt;id}_per_page&quot; );
+                } else {
+                        $option = $this-&gt;options['per_page']['option'];
+                }
+
+                $per_page = (int) get_user_option( $option );
+                if ( empty( $per_page ) || $per_page &lt; 1 ) {
+                        if ( isset($this-&gt;options['per_page']['default']) )
+                                $per_page = $this-&gt;options['per_page']['default'];
+                        else
+                                $per_page = 20;
+                }
+
+                if ( 'edit_comments_per_page' == $option ) {
+                        $comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
+                        $per_page = apply_filters( 'comments_per_page', $per_page, $comment_status );
+                } elseif ( 'categories_per_page' == $option ) {
+                        $per_page = apply_filters( 'edit_categories_per_page', $per_page );
+                } else {
+                        $per_page = apply_filters( $option, $per_page );
+                }
+
+                // Back compat
+                if ( isset( $this-&gt;post_type ) )
+                        $per_page = apply_filters( 'edit_posts_per_page', $per_page, $this-&gt;post_type );
+
+                ?&gt;
+                &lt;h5&gt;&lt;?php _ex('Show on screen', 'Screen Options') ?&gt;&lt;/h5&gt;
+                &lt;div class='screen-options'&gt;
+                        &lt;?php if ( !empty($per_page_label) ): ?&gt;
+                                &lt;input type='text' class='screen-per-page' name='wp_screen_options[value]' id='$option' maxlength='3' value='$per_page' /&gt; &lt;label for='$option'&gt;$per_page_label&lt;/label&gt;
+                        &lt;?php endif;
+
+                        echo get_submit_button( __( 'Apply' ), 'button', 'screen-options-apply', false ); ?&gt;
+                        &lt;input type='hidden' name='wp_screen_options[option]' value='&lt;?php echo esc_attr($option); ?&gt;' /&gt;
+                &lt;/div&gt;
+                &lt;?php
+        }
</ins><span class="cx"> }
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminindexphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/index.php (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/index.php        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-admin/index.php        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -32,19 +32,28 @@
</span><span class="cx"> 
</span><span class="cx"> $help_overview = '&lt;p&gt;' . __('Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the top bar.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-$current_screen-&gt;add_help_tab( 'overview', __('Overview'), $help_overview );
</del><ins>+$current_screen-&gt;add_help_tab( array(
+        'title'   =&gt; __('Overview'),
+        'content' =&gt; $help_overview,
+) );
</ins><span class="cx"> 
</span><span class="cx"> $help_navigation  = '&lt;p&gt;' . __('The left-hand navigation menu provides links to all of the WordPress administration screens, with submenu items displayed on hover. You can minimize this menu to a narrow icon strip by clicking on the Collapse Menu arrow at the bottom.') . '&lt;/p&gt;';
</span><span class="cx"> $help_navigation .= '&lt;p&gt;' . __('Links in the &amp;#8220;admin bar&amp;#8221; at the top of the screen connect your dashboard and the front end of your site, and provide access to your profile and helpful WordPress information.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-$current_screen-&gt;add_help_tab( 'navigation', __('Navigation'), $help_navigation );
</del><ins>+$current_screen-&gt;add_help_tab( array(
+        'title'   =&gt; __('Navigation'),
+        'content' =&gt; $help_navigation,
+) );
</ins><span class="cx"> 
</span><span class="cx"> $help_layout  = '&lt;p&gt;' . __('You can use the following controls to arrange your Dashboard screen to suit your workflow. This is true on most other administration screens as well.') . '&lt;/p&gt;';
</span><span class="cx"> $help_layout .= '&lt;p&gt;' . __('&lt;strong&gt;Screen Options&lt;/strong&gt; - Use the Screen Options tab to choose which Dashboard boxes to show, and how many columns to display.') . '&lt;/p&gt;';
</span><span class="cx"> $help_layout .= '&lt;p&gt;' . __('&lt;strong&gt;Drag and Drop&lt;/strong&gt; - To rearrange the boxes, drag and drop by clicking on the title bar of the selected box and releasing when you see a gray dotted-line rectangle appear in the location you want to place the box.') . '&lt;/p&gt;';
</span><span class="cx"> $help_layout .= '&lt;p&gt;' . __('&lt;strong&gt;Box Controls&lt;/strong&gt; - Click the title bar of the box to expand or collapse it. In addition, some box have configurable content, and will show a &amp;#8220;Configure&amp;#8221; link in the title bar if you hover over it.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-$current_screen-&gt;add_help_tab( 'layout', __('Layout'), $help_layout );
</del><ins>+$current_screen-&gt;add_help_tab( array(
+        'title'   =&gt; __('Layout'),
+        'content' =&gt; $help_layout,
+) );
</ins><span class="cx"> 
</span><span class="cx"> $help_content  = '&lt;p&gt;' . __('The boxes on your Dashboard screen are:') . '&lt;/p&gt;';
</span><span class="cx"> $help_content .= '&lt;p&gt;' . __('&lt;strong&gt;Right Now&lt;/strong&gt; - Displays a summary of the content on your site and identifies which theme and version of WordPress you are using.') . '&lt;/p&gt;';
</span><span class="lines">@@ -56,7 +65,10 @@
</span><span class="cx"> $help_content .= '&lt;p&gt;' . __('&lt;strong&gt;Other WordPress News&lt;/strong&gt; - Shows the &lt;a href=&quot;http://planet.wordpress.org&quot; target=&quot;_blank&quot;&gt;WordPress Planet&lt;/a&gt; feed. You can configure it to show a different feed of your choosing.') . '&lt;/p&gt;';
</span><span class="cx"> $help_content .= '&lt;p&gt;' . __('&lt;strong&gt;Plugins&lt;/strong&gt; - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-$current_screen-&gt;add_help_tab( 'content', __('Content'), $help_content );
</del><ins>+$current_screen-&gt;add_help_tab( array(
+        'title'   =&gt; __('Content'),
+        'content' =&gt; $help_content,
+) );
</ins><span class="cx"> 
</span><span class="cx"> $current_screen-&gt;add_help_sidebar(
</span><span class="cx">         '&lt;p&gt;&lt;strong&gt;' . __( 'For more information:' ) . '&lt;/strong&gt;&lt;/p&gt;' .
</span></span></pre></div>
<a id="trunkwpadminjscommondevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.dev.js (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.dev.js        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-admin/js/common.dev.js        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -266,7 +266,7 @@
</span><span class="cx">         panel.addClass('active').show();
</span><span class="cx"> 
</span><span class="cx">         // Adjust the height of the help columns
</span><del>-        columns = $('#contextual-help-wrap').children('.metabox-prefs').children();
</del><ins>+        columns = $('#contextual-help-wrap').children();
</ins><span class="cx">         columns.height('auto');
</span><span class="cx"> 
</span><span class="cx">         height = Math.max.apply( null, $.map( columns, function( el ) { return $(el).height(); }) );
</span></span></pre></div>
<a id="trunkwpadminjscommonjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.js (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.js        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-admin/js/common.js        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var showNotice,adminMenu,columns,validateForm,screenMeta,autofold_menu;(function(a){adminMenu={init:function(){var b=a(&quot;#adminmenu&quot;);this.favorites();a(&quot;#collapse-menu&quot;,b).click(function(){if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){adminMenu.fold(1);deleteUserSetting(&quot;mfold&quot;)}else{adminMenu.fold();setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});this.flyout(a(&quot;#adminmenu li.wp-has-submenu&quot;));this.fold(!a(&quot;body&quot;).hasClass(&quot;folded&quot;))},restoreMenuState:function(){},flyout:function(c,b){if(b){c.unbind();return}c.hoverIntent({over:function(k){var g,d,i,l,j;g=a(this).find(&quot;.wp-submenu&quot;);d=a(this).offset().top+g.height()+1;i=a(&quot;#wpwrap&quot;).height();l=60+d-i;j=a(window).height()+a(window).scrollTop()-15;if(j&lt;(d-l)){l=d-j}if(l&gt;1){g.css({marginTop:&quot;-&quot;+l+&quot;px&quot;})}else{if(g.css(&quot;marginTop&quot;)){g.css({marginTop:&quot;&quot;})}}g.addClass(&quot;
 sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;)},timeout:220,sensitivity:8,interval:100})},toggle:function(){},fold:function(c){var b=a(&quot;#adminmenu li.wp-has-current-submenu&quot;);a(&quot;body&quot;).toggleClass(&quot;folded&quot;,!c);this.flyout(b,c);if(c){b.find(&quot;.wp-submenu&quot;).css(&quot;marginTop&quot;,&quot;0&quot;)}},favorites:function(){a(&quot;#favorite-inside&quot;).width(a(&quot;#favorite-actions&quot;).width()-4);a(&quot;#favorite-toggle, #favorite-inside&quot;).bind(&quot;mouseenter&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideUp&quot;).addClass(&quot;slideDown&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideDown&quot;)){a(&quot;#favorite-inside&quot;).slideDown(100);a(&quot;#favorite-first&quot;).addClass(&quot;slide-down&quot;)}},200)}).bind(&quot;mouseleave&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideD
 own&quot;).addClass(&quot;slideUp&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideUp&quot;)){a(&quot;#favorite-inside&quot;).slideUp(100,function(){a(&quot;#favorite-first&quot;).removeClass(&quot;slide-down&quot;)})}},300)})}};a(document).ready(function(){adminMenu.init()});columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.prop(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})},saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){
 return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=function(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&quot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={element:n
 ull,toggles:null,page:null,padding:null,top:null,map:{&quot;wp-admin-bar-screen-options&quot;:&quot;screen-options-wrap&quot;,&quot;wp-admin-bar-help&quot;:&quot;contextual-help-wrap&quot;},init:function(){screenMeta.element=a(&quot;#screen-meta&quot;);screenMeta.toggles=a(&quot;.screen-meta-toggle&quot;);screenMeta.page=a(&quot;#wpcontent&quot;);screenMeta.toggles.click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.map[this.id]){return}b=a(&quot;#&quot;+screenMeta.map[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){screenMeta.toggles.filter(&quot;.selected&quot;).click();c.addClass(&quot;selected&quot;);screenMeta.padding=parseInt(screenMeta.page.css(&quot;paddingTop&quot;),10);screenMeta.top=parseInt(screenMeta.element.css(&quot;top&quot;),10);b.show();screenMeta.refresh()},refresh:function(b,c){screenMeta.element.css({top:0});screenMeta.page.css({paddingTop
 :screenMeta.padding+screenMeta.element.outerHeight()})},close:function(b,c){screenMeta.element.css({top:screenMeta.top});screenMeta.page.css({paddingTop:screenMeta.padding});b.hide();c.removeClass(&quot;selected&quot;)}};a(&quot;.contextual-help-tabs&quot;).delegate(&quot;a&quot;,&quot;click focus&quot;,function(g){var f=a(this),c,d,b;g.preventDefault();if(f.is(&quot;.active a&quot;)){return false}a(&quot;.contextual-help-tabs .active&quot;).removeClass(&quot;active&quot;);f.parent(&quot;li&quot;).addClass(&quot;active&quot;);c=a(f.attr(&quot;href&quot;));a(&quot;.help-tab-content&quot;).not(c).removeClass(&quot;active&quot;).hide();c.addClass(&quot;active&quot;).show();d=a(&quot;#contextual-help-wrap&quot;).children(&quot;.metabox-prefs&quot;).children();d.height(&quot;auto&quot;);b=Math.max.apply(null,a.map(d,function(e){return a(e).height()}));d.height(b);screenMeta.refresh()});a(document).ready(function(){var h=false,b,f,e,d,g=a(&quot;input.current-page&quot;),c=g.val();
 a(&quot;div.wrap h2:first&quot;).nextAll(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quot;div.wrap h2:first&quot;));screenMeta.init();a(&quot;tbody&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(i){if(&quot;undefined&quot;==i.shiftKey){return true}if(i.shiftKey){if(!h){return true}b=a(h).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);f=b.index(h);e=b.index(this);d=a(this).prop(&quot;checked&quot;);if(0&lt;f&amp;&amp;0&lt;e&amp;&amp;f!=e){b.slice(f,e).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return d}return false})}}h=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(k){var l=a(this).prop(&quot;checked&quot;),j=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,i=k.shiftKey||j;a(
 this).closest(&quot;table&quot;).children(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot;)){return false}if(i){return a(this).prop(&quot;checked&quot;)}else{if(l){return true}}return false});a(this).closest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(i){return false}else{if(l){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(n){if(n.keyCode!=9){return true}var k=n.target,p=k.selectionStart,j=k.selectionEnd,o=k.value,i
 ,m;try{this.lastKey=9}catch(l){}if(document.selection){k.focus();m=document.selection.createRange();m.text=&quot;\t&quot;}else{if(p&gt;=0){i=this.scrollTop;k.value=o.substring(0,p).concat(&quot;\t&quot;,o.substring(j));k.selectionStart=k.selectionEnd=p+1;this.scrollTop=i}}if(n.stopPropagation){n.stopPropagation()}if(n.preventDefault){n.preventDefault()}});a(&quot;#newcontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(i){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}});if(g.length){g.closest(&quot;form&quot;).submit(function(i){if(a('select[name=&quot;action&quot;]').val()==-1&amp;&amp;a('select[name=&quot;action2&quot;]').val()==-1&amp;&amp;g.val()==c){g.val(&quot;1&quot;)}})}a(window).bind(&quot;resize.autofold&quot;,function(){if(getUserSetting(&quot;mfold&quot;)==&quot;f&quot;){return}var i=a(window).width();adminMenu.fold(i&gt;=800)}).triggerHandler(&quot;resize&quot;)});a(document).bind(&quot;wp_CloseOnEscape&quot;,function(c,b){if(typeof(b.cb)!=&q
 uot;function&quot;){return}if(typeof(b.condition)!=&quot;function&quot;||b.condition()){b.cb()}return true})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var showNotice,adminMenu,columns,validateForm,screenMeta,autofold_menu;(function(a){adminMenu={init:function(){var b=a(&quot;#adminmenu&quot;);this.favorites();a(&quot;#collapse-menu&quot;,b).click(function(){if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){adminMenu.fold(1);deleteUserSetting(&quot;mfold&quot;)}else{adminMenu.fold();setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});this.flyout(a(&quot;#adminmenu li.wp-has-submenu&quot;));this.fold(!a(&quot;body&quot;).hasClass(&quot;folded&quot;))},restoreMenuState:function(){},flyout:function(c,b){if(b){c.unbind();return}c.hoverIntent({over:function(k){var g,d,i,l,j;g=a(this).find(&quot;.wp-submenu&quot;);d=a(this).offset().top+g.height()+1;i=a(&quot;#wpwrap&quot;).height();l=60+d-i;j=a(window).height()+a(window).scrollTop()-15;if(j&lt;(d-l)){l=d-j}if(l&gt;1){g.css({marginTop:&quot;-&quot;+l+&quot;px&quot;})}else{if(g.css(&quot;marginTop&quot;)){g.css({marginTop:&quot;&quot;})}}g.addClass(&quot;
 sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;)},timeout:220,sensitivity:8,interval:100})},toggle:function(){},fold:function(c){var b=a(&quot;#adminmenu li.wp-has-current-submenu&quot;);a(&quot;body&quot;).toggleClass(&quot;folded&quot;,!c);this.flyout(b,c);if(c){b.find(&quot;.wp-submenu&quot;).css(&quot;marginTop&quot;,&quot;0&quot;)}},favorites:function(){a(&quot;#favorite-inside&quot;).width(a(&quot;#favorite-actions&quot;).width()-4);a(&quot;#favorite-toggle, #favorite-inside&quot;).bind(&quot;mouseenter&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideUp&quot;).addClass(&quot;slideDown&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideDown&quot;)){a(&quot;#favorite-inside&quot;).slideDown(100);a(&quot;#favorite-first&quot;).addClass(&quot;slide-down&quot;)}},200)}).bind(&quot;mouseleave&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideD
 own&quot;).addClass(&quot;slideUp&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideUp&quot;)){a(&quot;#favorite-inside&quot;).slideUp(100,function(){a(&quot;#favorite-first&quot;).removeClass(&quot;slide-down&quot;)})}},300)})}};a(document).ready(function(){adminMenu.init()});columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.prop(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})},saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){
 return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=function(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&quot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={element:n
 ull,toggles:null,page:null,padding:null,top:null,map:{&quot;wp-admin-bar-screen-options&quot;:&quot;screen-options-wrap&quot;,&quot;wp-admin-bar-help&quot;:&quot;contextual-help-wrap&quot;},init:function(){screenMeta.element=a(&quot;#screen-meta&quot;);screenMeta.toggles=a(&quot;.screen-meta-toggle&quot;);screenMeta.page=a(&quot;#wpcontent&quot;);screenMeta.toggles.click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.map[this.id]){return}b=a(&quot;#&quot;+screenMeta.map[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){screenMeta.toggles.filter(&quot;.selected&quot;).click();c.addClass(&quot;selected&quot;);screenMeta.padding=parseInt(screenMeta.page.css(&quot;paddingTop&quot;),10);screenMeta.top=parseInt(screenMeta.element.css(&quot;top&quot;),10);b.show();screenMeta.refresh()},refresh:function(b,c){screenMeta.element.css({top:0});screenMeta.page.css({paddingTop
 :screenMeta.padding+screenMeta.element.outerHeight()})},close:function(b,c){screenMeta.element.css({top:screenMeta.top});screenMeta.page.css({paddingTop:screenMeta.padding});b.hide();c.removeClass(&quot;selected&quot;)}};a(&quot;.contextual-help-tabs&quot;).delegate(&quot;a&quot;,&quot;click focus&quot;,function(g){var f=a(this),c,d,b;g.preventDefault();if(f.is(&quot;.active a&quot;)){return false}a(&quot;.contextual-help-tabs .active&quot;).removeClass(&quot;active&quot;);f.parent(&quot;li&quot;).addClass(&quot;active&quot;);c=a(f.attr(&quot;href&quot;));a(&quot;.help-tab-content&quot;).not(c).removeClass(&quot;active&quot;).hide();c.addClass(&quot;active&quot;).show();d=a(&quot;#contextual-help-wrap&quot;).children();d.height(&quot;auto&quot;);b=Math.max.apply(null,a.map(d,function(e){return a(e).height()}));d.height(b);screenMeta.refresh()});a(document).ready(function(){var h=false,b,f,e,d,g=a(&quot;input.current-page&quot;),c=g.val();a(&quot;div.wrap h2:first&quot;).next
 All(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quot;div.wrap h2:first&quot;));screenMeta.init();a(&quot;tbody&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(i){if(&quot;undefined&quot;==i.shiftKey){return true}if(i.shiftKey){if(!h){return true}b=a(h).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);f=b.index(h);e=b.index(this);d=a(this).prop(&quot;checked&quot;);if(0&lt;f&amp;&amp;0&lt;e&amp;&amp;f!=e){b.slice(f,e).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return d}return false})}}h=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(k){var l=a(this).prop(&quot;checked&quot;),j=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,i=k.shiftKey||j;a(this).closest(&quot;table&quot;).chil
 dren(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot;)){return false}if(i){return a(this).prop(&quot;checked&quot;)}else{if(l){return true}}return false});a(this).closest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(i){return false}else{if(l){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(n){if(n.keyCode!=9){return true}var k=n.target,p=k.selectionStart,j=k.selectionEnd,o=k.value,i,m;try{this.lastKey=9}catch(l){}if(do
 cument.selection){k.focus();m=document.selection.createRange();m.text=&quot;\t&quot;}else{if(p&gt;=0){i=this.scrollTop;k.value=o.substring(0,p).concat(&quot;\t&quot;,o.substring(j));k.selectionStart=k.selectionEnd=p+1;this.scrollTop=i}}if(n.stopPropagation){n.stopPropagation()}if(n.preventDefault){n.preventDefault()}});a(&quot;#newcontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(i){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}});if(g.length){g.closest(&quot;form&quot;).submit(function(i){if(a('select[name=&quot;action&quot;]').val()==-1&amp;&amp;a('select[name=&quot;action2&quot;]').val()==-1&amp;&amp;g.val()==c){g.val(&quot;1&quot;)}})}a(window).bind(&quot;resize.autofold&quot;,function(){if(getUserSetting(&quot;mfold&quot;)==&quot;f&quot;){return}var i=a(window).width();adminMenu.fold(i&gt;=800)}).triggerHandler(&quot;resize&quot;)});a(document).bind(&quot;wp_CloseOnEscape&quot;,function(c,b){if(typeof(b.cb)!=&quot;function&quot;){return}if(typeof(
 b.condition)!=&quot;function&quot;||b.condition()){b.cb()}return true})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesadminbarphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/admin-bar.php (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/admin-bar.php        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-includes/admin-bar.php        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -577,22 +577,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /**
</span><del>- * Add screen options link.
- *
- * @since 3.3.0
- */
-function wp_admin_bar_screen_options_menu( $wp_admin_bar ) {
-        $wp_admin_bar-&gt;add_menu( array(
-                'id'    =&gt; 'screen-options',
-                'title' =&gt; __('Screen Options'),
-                'href'  =&gt; '#',
-                'meta'  =&gt; array(
-                        'class' =&gt; 'screen-meta-toggle hide-if-no-js',
-                ),
-        ) );
-}
-
-/**
</del><span class="cx">  * Add help link.
</span><span class="cx">  *
</span><span class="cx">  * @since 3.3.0
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (18852 => 18853)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-10-01 00:19:07 UTC (rev 18852)
+++ trunk/wp-includes/script-loader.php        2011-10-01 00:24:44 UTC (rev 18853)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'utils', &quot;/wp-admin/js/utils$suffix.js&quot;, false, '20101110' );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'common', &quot;/wp-admin/js/common$suffix.js&quot;, array('jquery', 'hoverIntent', 'utils'), '20110927', 1 );
</del><ins>+        $scripts-&gt;add( 'common', &quot;/wp-admin/js/common$suffix.js&quot;, array('jquery', 'hoverIntent', 'utils'), '20110930', 1 );
</ins><span class="cx">         $scripts-&gt;add_script_data( 'common', 'commonL10n', array(
</span><span class="cx">                 'warnDelete' =&gt; __(&quot;You are about to permanently delete the selected items.\n  'Cancel' to stop, 'OK' to delete.&quot;)
</span><span class="cx">         ) );
</span></span></pre>
</div>
</div>

</body>
</html>