<!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" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { 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 #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#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>
<title>[14967] trunk/wp-admin: Call the 'Attributes' meta box 'Page Attributes'
  for pages.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14967">14967</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-05-27 00:16:34 +0000 (Thu, 27 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Call the 'Attributes' meta box 'Page Attributes' for pages. Add some help text. fixes <a href="http://trac.wordpress.org/ticket/13539">#13539</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmineditformadvancedphp">trunk/wp-admin/edit-form-advanced.php</a></li>
<li><a href="#trunkwpadminincludesmetaboxesphp">trunk/wp-admin/includes/meta-boxes.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 (14966 => 14967)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/edit-form-advanced.php        2010-05-26 22:18:19 UTC (rev 14966)
+++ trunk/wp-admin/edit-form-advanced.php        2010-05-27 00:16:34 UTC (rev 14967)
</span><span class="lines">@@ -123,7 +123,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if ( post_type_supports($post_type, 'page-attributes') )
</span><del>-        add_meta_box('pageparentdiv', __('Attributes'), 'page_attributes_meta_box', $post_type, 'side', 'core');
</del><ins>+        add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', $post_type, 'side', 'core');
</ins><span class="cx"> 
</span><span class="cx"> if ( current_theme_supports( 'post-thumbnails', $post_type ) &amp;&amp; post_type_supports($post_type, 'thumbnail') )
</span><span class="cx">         add_meta_box('postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', $post_type, 'side', 'low');
</span><span class="lines">@@ -180,7 +180,7 @@
</span><span class="cx">         );
</span><span class="cx"> } elseif ( 'page' == $post_type ) {
</span><span class="cx">         add_contextual_help($current_screen, '&lt;p&gt;' . __('Pages are similar to 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 &quot;Parent&quot; of the other, creating a group of Pages.') . '&lt;/p&gt;' .
</span><del>-        '&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. The Page editor mostly works the same Post editor, but there are some Page-specific features in the Attributes box:') . '&lt;/p&gt;' .
</del><ins>+        '&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. The Page editor mostly works the same Post editor, but there are some Page-specific features in the Page Attributes box:') . '&lt;/p&gt;' .
</ins><span class="cx">         '&lt;p&gt;' . __('&lt;strong&gt;Parent&lt;/strong&gt; - You can arrange your pages in hierarchies. For example, you could have an &amp;#8220;About&amp;#8221; page that has &amp;#8220;Life Story&amp;#8221; and &amp;#8220;My Dog&amp;#8221; pages under it. There are no limits to how many levels you can nest pages.') . '&lt;/p&gt;' .
</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 put a number above to change the order pages appear in.') . '&lt;/p&gt;' .
</span></span></pre></div>
<a id="trunkwpadminincludesmetaboxesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/meta-boxes.php (14966 => 14967)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/meta-boxes.php        2010-05-26 22:18:19 UTC (rev 14966)
+++ trunk/wp-admin/includes/meta-boxes.php        2010-05-27 00:16:34 UTC (rev 14967)
</span><span class="lines">@@ -537,7 +537,7 @@
</span><span class="cx">                 $pages = wp_dropdown_pages(array('post_type' =&gt; $post-&gt;post_type, 'exclude_tree' =&gt; $post-&gt;ID, 'selected' =&gt; $post-&gt;post_parent, 'name' =&gt; 'parent_id', 'show_option_none' =&gt; __('(no parent)'), 'sort_column'=&gt; 'menu_order, post_title', 'echo' =&gt; 0));
</span><span class="cx">                 if ( ! empty($pages) ) {
</span><span class="cx"> ?&gt;
</span><del>-&lt;h5&gt;&lt;?php _e('Parent') ?&gt;&lt;/h5&gt;
</del><ins>+&lt;p&gt;&lt;strong&gt;&lt;?php _e('Parent') ?&gt;&lt;/strong&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;label class=&quot;screen-reader-text&quot; for=&quot;parent_id&quot;&gt;&lt;?php _e('Parent') ?&gt;&lt;/label&gt;
</span><span class="cx"> &lt;?php echo $pages; ?&gt;
</span><span class="cx"> &lt;?php
</span><span class="lines">@@ -546,15 +546,16 @@
</span><span class="cx">         if ( 'page' == $post-&gt;post_type &amp;&amp; 0 != count( get_page_templates() ) ) {
</span><span class="cx">                 $template = !empty($post-&gt;page_template) ? $post-&gt;page_template : false;
</span><span class="cx">                 ?&gt;
</span><del>-&lt;h5&gt;&lt;?php _e('Template') ?&gt;&lt;/h5&gt;
</del><ins>+&lt;p&gt;&lt;strong&gt;&lt;?php _e('Template') ?&gt;&lt;/strong&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;label class=&quot;screen-reader-text&quot; for=&quot;page_template&quot;&gt;&lt;?php _e('Page Template') ?&gt;&lt;/label&gt;&lt;select name=&quot;page_template&quot; id=&quot;page_template&quot;&gt;
</span><span class="cx"> &lt;option value='default'&gt;&lt;?php _e('Default Template'); ?&gt;&lt;/option&gt;
</span><span class="cx"> &lt;?php page_template_dropdown($template); ?&gt;
</span><span class="cx"> &lt;/select&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx">         } ?&gt;
</span><del>-&lt;h5&gt;&lt;?php _e('Order') ?&gt;&lt;/h5&gt;
</del><ins>+&lt;p&gt;&lt;strong&gt;&lt;?php _e('Order') ?&gt;&lt;/strong&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;p&gt;&lt;label class=&quot;screen-reader-text&quot; for=&quot;menu_order&quot;&gt;&lt;?php _e('Order') ?&gt;&lt;/label&gt;&lt;input name=&quot;menu_order&quot; type=&quot;text&quot; size=&quot;4&quot; id=&quot;menu_order&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;menu_order) ?&gt;&quot; /&gt;&lt;/p&gt;
</span><ins>+&lt;p&gt;&lt;?php if ( 'page' == $post-&gt;post_type ) _e( 'Need help? Use the Help tab in the upper right of your screen.' ); ?&gt;&lt;/p&gt;
</ins><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>