<!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>[19110] trunk/wp-admin: Chain off of get_current_screen() instead of using global.</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/19110">19110</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2011-11-02 02:38:37 +0000 (Wed, 02 Nov 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Chain off of get_current_screen() instead of using global. see <a href="http://core.trac.wordpress.org/ticket/19020">#19020</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmineditformadvancedphp">trunk/wp-admin/edit-form-advanced.php</a></li>
<li><a href="#trunkwpadminindexphp">trunk/wp-admin/index.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmineditformadvancedphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/edit-form-advanced.php (19109 => 19110)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-form-advanced.php        2011-11-02 02:36:18 UTC (rev 19109)
+++ trunk/wp-admin/edit-form-advanced.php        2011-11-02 02:38:37 UTC (rev 19110)
</span><span class="lines">@@ -163,7 +163,7 @@
</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( array(
</del><ins>+        get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">                 'id'      =&gt; 'customize-display',
</span><span class="cx">                 'title'   =&gt; __('Customizing This Display'),
</span><span class="cx">                 'content' =&gt; $customize_display,
</span><span class="lines">@@ -172,7 +172,7 @@
</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( array(
</del><ins>+        get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">                 'id'      =&gt; 'title-post-editor',
</span><span class="cx">                 'title'   =&gt; __('Title and Post Editor'),
</span><span class="cx">                 'content' =&gt; $title_and_editor,
</span><span class="lines">@@ -188,7 +188,7 @@
</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( array(
</del><ins>+        get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">                 'id'      =&gt; 'publish-box',
</span><span class="cx">                 'title'   =&gt; __('Publish Box'),
</span><span class="cx">                 'content' =&gt; $publish_box,
</span><span class="lines">@@ -197,13 +197,13 @@
</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( array(
</del><ins>+        get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">                 'id'      =&gt; 'discussion-settings',
</span><span class="cx">                 'title'   =&gt; __('Discussion Settings'),
</span><span class="cx">                 'content' =&gt; $discussion_settings,
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_sidebar(
</del><ins>+        get_current_screen()-&gt;add_help_sidebar(
</ins><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 class="cx">                         '&lt;p&gt;&lt;strong&gt;' . __('For more information:') . '&lt;/strong&gt;&lt;/p&gt;' .
</span><span class="cx">                         '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Posts_Add_New_Screen&quot; target=&quot;_blank&quot;&gt;Documentation on Writing and Editing Posts&lt;/a&gt;') . '&lt;/p&gt;' .
</span><span class="lines">@@ -213,7 +213,7 @@
</span><span class="cx">         $about_pages = '&lt;p&gt;' . __('Pages are similar to Posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest Pages under other Pages by making one the &amp;#8220;Parent&amp;#8221; of the other, creating a group of Pages.') . '&lt;/p&gt;' .
</span><span class="cx">                 '&lt;p&gt;' . __('Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the new in 3.2 distraction-free writing space, available in both the Visual and HTML modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box:') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_tab( array(
</del><ins>+        get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">                 'id'      =&gt; 'about-pages',
</span><span class="cx">                 'title'   =&gt; __('About Pages'),
</span><span class="cx">                 'content' =&gt; $about_pages,
</span><span class="lines">@@ -223,13 +223,13 @@
</span><span class="cx">                 '&lt;p&gt;' . __('&lt;strong&gt;Template&lt;/strong&gt; - Some themes have custom templates you can use for certain pages that might have additional features or custom layouts. If so, you&amp;#8217;ll see them in this dropdown menu.') . '&lt;/p&gt;' .
</span><span class="cx">                 '&lt;p&gt;' . __('&lt;strong&gt;Order&lt;/strong&gt; - Pages are usually ordered alphabetically, but you can choose your own order by entering a number (1 for first, etc.) in this field.') . '&lt;/p&gt;';
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_tab( array(
</del><ins>+        get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">                 'id' =&gt; 'page-attributes',
</span><span class="cx">                 'title' =&gt; __('Page Attributes'),
</span><span class="cx">                 'content' =&gt; $page_attributes,
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $current_screen-&gt;add_help_sidebar(
</del><ins>+        get_current_screen()-&gt;add_help_sidebar(
</ins><span class="cx">                         '&lt;p&gt;&lt;strong&gt;' . __('For more information:') . '&lt;/strong&gt;&lt;/p&gt;' .
</span><span class="cx">                         '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Pages_Add_New_Screen&quot; target=&quot;_blank&quot;&gt;Documentation on Adding New Pages&lt;/a&gt;') . '&lt;/p&gt;' .
</span><span class="cx">                         '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Pages_Screen#Editing_Individual_Pages&quot; target=&quot;_blank&quot;&gt;Documentation on Editing Pages&lt;/a&gt;') . '&lt;/p&gt;' .
</span></span></pre></div>
<a id="trunkwpadminindexphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/index.php (19109 => 19110)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/index.php        2011-11-02 02:36:18 UTC (rev 19109)
+++ trunk/wp-admin/index.php        2011-11-02 02:38:37 UTC (rev 19110)
</span><span class="lines">@@ -37,7 +37,7 @@
</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( array(
</del><ins>+get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">         'id'      =&gt; 'help-navigation',
</span><span class="cx">         'title'   =&gt; __('Navigation'),
</span><span class="cx">         'content' =&gt; $help_navigation,
</span><span class="lines">@@ -48,7 +48,7 @@
</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( array(
</del><ins>+get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">         'id'      =&gt; 'help-layout',
</span><span class="cx">         'title'   =&gt; __('Layout'),
</span><span class="cx">         'content' =&gt; $help_layout,
</span><span class="lines">@@ -64,13 +64,13 @@
</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( array(
</del><ins>+get_current_screen()-&gt;add_help_tab( array(
</ins><span class="cx">         'id'      =&gt; 'help-content',
</span><span class="cx">         'title'   =&gt; __('Content'),
</span><span class="cx">         'content' =&gt; $help_content,
</span><span class="cx"> ) );
</span><span class="cx"> 
</span><del>-$current_screen-&gt;add_help_sidebar(
</del><ins>+get_current_screen()-&gt;add_help_sidebar(
</ins><span class="cx">         '&lt;p&gt;&lt;strong&gt;' . __( 'For more information:' ) . '&lt;/strong&gt;&lt;/p&gt;' .
</span><span class="cx">         '&lt;p&gt;' . __( '&lt;a href=&quot;http://codex.wordpress.org/Dashboard_Screen&quot; target=&quot;_blank&quot;&gt;Documentation on Dashboard&lt;/a&gt;' ) . '&lt;/p&gt;' .
</span><span class="cx">         '&lt;p&gt;' . __( '&lt;a href=&quot;http://wordpress.org/support/&quot; target=&quot;_blank&quot;&gt;Support Forums&lt;/a&gt;' ) . '&lt;/p&gt;'
</span></span></pre>
</div>
</div>

</body>
</html>