<!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>[22653] trunk: Revert page on front changes.</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/22653">22653</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2012-11-19 01:28:32 +0000 (Mon, 19 Nov 2012)</dd>
</dl>

<h3>Log Message</h3>
<pre>Revert page on front changes. Reverts <a href="http://core.trac.wordpress.org/changeset/22127">[22127]</a> <a href="http://core.trac.wordpress.org/changeset/22129">[22129]</a> <a href="http://core.trac.wordpress.org/changeset/22135">[22135]</a> <a href="http://core.trac.wordpress.org/changeset/22136">[22136]</a>. see <a href="http://core.trac.wordpress.org/ticket/16379">#16379</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincsswpadminrtlcss">trunk/wp-admin/css/wp-admin-rtl.css</a></li>
<li><a href="#trunkwpadmincsswpadmincss">trunk/wp-admin/css/wp-admin.css</a></li>
<li><a href="#trunkwpadminincludesajaxactionsphp">trunk/wp-admin/includes/ajax-actions.php</a></li>
<li><a href="#trunkwpadminincludespostphp">trunk/wp-admin/includes/post.php</a></li>
<li><a href="#trunkwpadminjspostjs">trunk/wp-admin/js/post.js</a></li>
<li><a href="#trunkwpadminoptionsreadingphp">trunk/wp-admin/options-reading.php</a></li>
<li><a href="#trunkwpadminoptionsphp">trunk/wp-admin/options.php</a></li>
<li><a href="#trunkwpincludesformattingphp">trunk/wp-includes/formatting.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadminjssamplepermalinkjs">trunk/wp-admin/js/sample-permalink.js</a></li>
<li><a href="#trunkwpadminjssamplepermalinkminjs">trunk/wp-admin/js/sample-permalink.min.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincsswpadminrtlcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin-rtl.css (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin-rtl.css        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/css/wp-admin-rtl.css        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -971,7 +971,8 @@
</span><span class="cx">         border-bottom-right-radius: 3px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#front-static-pages .sub-option,
</del><ins>+#front-page-warning,
+#front-static-pages ul,
</ins><span class="cx"> ul.export-filters,
</span><span class="cx"> .inline-editor ul.cat-checklist ul,
</span><span class="cx"> .categorydiv ul.categorychecklist ul,
</span></span></pre></div>
<a id="trunkwpadmincsswpadmincss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/wp-admin.css (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/wp-admin.css        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/css/wp-admin.css        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -716,6 +716,10 @@
</span><span class="cx">         color: #000;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+select[disabled] {
+        color: #7f7f7f;
+}
+
</ins><span class="cx"> select:focus {
</span><span class="cx">         border-color: #aaa;
</span><span class="cx"> }
</span><span class="lines">@@ -3020,10 +3024,6 @@
</span><span class="cx">         font-size: 11px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#front-static-pages #edit-slug-box {
-        padding: 0;
-}
-
</del><span class="cx"> #editable-post-name-full {
</span><span class="cx">         display: none;
</span><span class="cx"> }
</span><span class="lines">@@ -3510,7 +3510,8 @@
</span><span class="cx">         margin: 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#front-static-pages .sub-option,
</del><ins>+#front-page-warning,
+#front-static-pages ul,
</ins><span class="cx"> ul.export-filters,
</span><span class="cx"> .inline-editor ul.cat-checklist ul,
</span><span class="cx"> .categorydiv ul.categorychecklist ul,
</span><span class="lines">@@ -5066,19 +5067,6 @@
</span><span class="cx">         margin: -3px 3px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.js.options-reading-php .if-page-on-front,
-.js.options-reading-php .if-page-for-posts,
-.options-reading-php .if-new-front-page {
-        display: none;
-}
-.options-reading-php .page-on-front .if-page-on-front,
-.options-reading-php .page-for-posts .if-page-for-posts {
-        display: block;
-}
-.options-reading-php .new-front-page .if-new-front-page {
-        display: inline;
-}
-
</del><span class="cx"> /*------------------------------------------------------------------------------
</span><span class="cx">   21.0 - Admin Footer
</span><span class="cx"> ------------------------------------------------------------------------------*/
</span></span></pre></div>
<a id="trunkwpadminincludesajaxactionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/ajax-actions.php (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/ajax-actions.php        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/includes/ajax-actions.php        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -1298,8 +1298,7 @@
</span><span class="cx">         $post_id = isset($_POST['post_id'])? intval($_POST['post_id']) : 0;
</span><span class="cx">         $title = isset($_POST['new_title'])? $_POST['new_title'] : '';
</span><span class="cx">         $slug = isset($_POST['new_slug'])? $_POST['new_slug'] : null;
</span><del>-        $screen = isset( $_POST['screen'] ) ? $_POST['screen'] : 'post';
-        wp_die( get_sample_permalink_html( $post_id, $title, $slug, $screen ) );
</del><ins>+        wp_die( get_sample_permalink_html( $post_id, $title, $slug ) );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function wp_ajax_inline_save() {
</span></span></pre></div>
<a id="trunkwpadminincludespostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/post.php (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/post.php        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/includes/post.php        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -1055,20 +1055,14 @@
</span><span class="cx">  * @param int|object $id Post ID or post object.
</span><span class="cx">  * @param string $new_title Optional. New title.
</span><span class="cx">  * @param string $new_slug Optional. New slug.
</span><del>- * @param string|WP_Screen $screen Optional. Screen where the editor is being shown.
</del><span class="cx">  * @return string The HTML of the sample permalink slug editor.
</span><span class="cx">  */
</span><del>-function get_sample_permalink_html( $id, $new_title = null, $new_slug = null, $screen = null ) {
</del><ins>+function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
</ins><span class="cx">         global $wpdb;
</span><span class="cx">         $post = get_post($id);
</span><span class="cx"> 
</span><span class="cx">         list($permalink, $post_name) = get_sample_permalink($post-&gt;ID, $new_title, $new_slug);
</span><span class="cx"> 
</span><del>-        if ( isset( $screen ) )
-                $screen = convert_to_screen( $screen );
-        else
-                $screen = get_current_screen();
-
</del><span class="cx">         if ( 'publish' == get_post_status( $post ) ) {
</span><span class="cx">                 $ptype = get_post_type_object($post-&gt;post_type);
</span><span class="cx">                 $view_post = $ptype-&gt;labels-&gt;view_item;
</span><span class="lines">@@ -1078,12 +1072,10 @@
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         if ( false === strpos($permalink, '%postname%') &amp;&amp; false === strpos($permalink, '%pagename%') ) {
</span><del>-                if ( 'options-reading' == $screen-&gt;id )
-                        return '';
</del><span class="cx">                 $return = '&lt;strong&gt;' . __('Permalink:') . &quot;&lt;/strong&gt;\n&quot; . '&lt;span id=&quot;sample-permalink&quot; tabindex=&quot;-1&quot;&gt;' . $permalink . &quot;&lt;/span&gt;\n&quot;;
</span><span class="cx">                 if ( '' == get_option( 'permalink_structure' ) &amp;&amp; current_user_can( 'manage_options' ) &amp;&amp; !( 'page' == get_option('show_on_front') &amp;&amp; $id == get_option('page_on_front') ) )
</span><span class="cx">                         $return .= '&lt;span id=&quot;change-permalinks&quot;&gt;&lt;a href=&quot;options-permalink.php&quot; class=&quot;button button-small&quot; target=&quot;_blank&quot;&gt;' . __('Change Permalinks') . &quot;&lt;/a&gt;&lt;/span&gt;\n&quot;;
</span><del>-                if ( isset($view_post) )
</del><ins>+                if ( isset( $view_post ) )
</ins><span class="cx">                         $return .= &quot;&lt;span id='view-post-btn'&gt;&lt;a href='$permalink' class='button button-small'&gt;$view_post&lt;/a&gt;&lt;/span&gt;\n&quot;;
</span><span class="cx"> 
</span><span class="cx">                 $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug);
</span><span class="lines">@@ -1108,12 +1100,12 @@
</span><span class="cx">         $post_name_html = '&lt;span id=&quot;editable-post-name&quot; title=&quot;' . $title . '&quot;&gt;' . $post_name_abridged . '&lt;/span&gt;';
</span><span class="cx">         $display_link = str_replace(array('%pagename%','%postname%'), $post_name_html, $permalink);
</span><span class="cx">         $view_link = str_replace(array('%pagename%','%postname%'), $post_name, $permalink);
</span><del>-        $return  = ( 'options-reading' == $screen-&gt;id ) ? __( 'Located at' ) . &quot;\n&quot; : '&lt;strong&gt;' . __( 'Permalink:' ) . &quot;&lt;/strong&gt;\n&quot;;
</del><ins>+        $return =  '&lt;strong&gt;' . __('Permalink:') . &quot;&lt;/strong&gt;\n&quot;;
</ins><span class="cx">         $return .= '&lt;span id=&quot;sample-permalink&quot; tabindex=&quot;-1&quot;&gt;' . $display_link . &quot;&lt;/span&gt;\n&quot;;
</span><span class="cx">         $return .= '&amp;lrm;'; // Fix bi-directional text display defect in RTL languages.
</span><span class="cx">         $return .= '&lt;span id=&quot;edit-slug-buttons&quot;&gt;&lt;a href=&quot;#post_name&quot; class=&quot;edit-slug button button-small hide-if-no-js&quot; onclick=&quot;editPermalink(' . $id . '); return false;&quot;&gt;' . __('Edit') . &quot;&lt;/a&gt;&lt;/span&gt;\n&quot;;
</span><span class="cx">         $return .= '&lt;span id=&quot;editable-post-name-full&quot;&gt;' . $post_name . &quot;&lt;/span&gt;\n&quot;;
</span><del>-        if ( isset( $view_post ) &amp;&amp; 'options-reading' != $screen-&gt;id )
</del><ins>+        if ( isset($view_post) )
</ins><span class="cx">                 $return .= &quot;&lt;span id='view-post-btn'&gt;&lt;a href='$view_link' class='button button-small'&gt;$view_post&lt;/a&gt;&lt;/span&gt;\n&quot;;
</span><span class="cx"> 
</span><span class="cx">         $return = apply_filters('get_sample_permalink_html', $return, $id, $new_title, $new_slug);
</span><span class="lines">@@ -1329,118 +1321,3 @@
</span><span class="cx"> 
</span><span class="cx">         return $url;
</span><span class="cx"> }
</span><del>-
-/**
- * Creates new pages to be set as a front page or a page for posts in Reading Settings.
- *
- * @todo Make sure we are doing adequate sanitization on success, and cleanup/reset on failure.
- *
- * @since 3.5.0
- * @access private
- */
-function _show_on_front_reading_settings( $show_on_front_value ) {
-        // If we're not saving the Reading Settings screen, don't intercept.
-        if ( ! $_POST || ! strpos( wp_get_referer(), 'options-reading.php' ) )
-                return $show_on_front_value;
-
-        if ( 'posts' == $show_on_front_value ) {
-                update_option( 'page_on_front', 0 );
-                update_option( 'page_for_posts', 0 );
-                return $show_on_front_value;
-        }
-
-        // If a new front page was meant to be created, go forth and create it.
-        if ( 'new' == $_POST['page_on_front'] ) {
-
-                // If the user can't create pages, revert.
-                if ( ! current_user_can( 'create_posts', 'page' ) ) {
-                        // If an existing page is set, keep things as is, rather than reverting to showing posts.
-                        if ( get_option( 'page_on_front' ) ) {
-                                $show_on_front_value = 'page';
-                        } else {
-                                $show_on_front_value = 'posts';
-                                update_option( 'page_on_front', 0 );
-                                update_option( 'page_for_posts', 0 );
-                        }
-                        add_settings_error( 'page_on_front', 'create_pages', __( 'You are not allowed to create pages on this site.' ) );
-                        return $show_on_front_value;
-                }
-
-                $existing_page = get_page_by_title( stripslashes( $_POST['page_on_front_title'] ) );
-
-                // If page already exists and it's public, there's no need to create a new page.
-                if ( $existing_page &amp;&amp; 'publish' == $existing_page-&gt;post_status ) {
-                        $page_id = $existing_page-&gt;ID;
-                } else {
-                        $page_id = wp_insert_post( array(
-                                'post_title' =&gt; $_POST['page_on_front_title'],
-                                'post_type' =&gt; 'page',
-                                'post_status' =&gt; 'publish',
-                                'comment_status' =&gt; 'closed',
-                                'ping_status' =&gt; 'closed',
-                                // @todo Create some sort of a 'context' in postmeta so we know we created a page through these means.
-                                //       Consider then showing that context in the list table as a good-first-step.
-                        ) );
-                }
-
-                if ( $page_id ) {
-                        update_option( 'page_on_front', $page_id );
-                // If we can't save it, revert.
-                } elseif ( get_option( 'page_on_front' ) ) {
-                        // If an existing page is set, keep things as is, rather than reverting to showing posts.
-                        $show_on_front_value = 'page';
-                } else {
-                        $show_on_front_value = 'posts';
-                        update_option( 'page_on_front', 0 );
-                        update_option( 'page_for_posts', 0 );
-                        return $show_on_front_value;
-                }
-        } elseif ( $_POST['page_on_front'] ) {
-                update_option( 'page_on_front', $_POST['page_on_front'] );
-        } else {
-                // They didn't select a page at all. Sad face.
-                $show_on_front_value = 'posts';
-                update_option( 'page_on_front', 0 );
-                update_option( 'page_for_posts', 0 );
-                add_settings_error( 'page_on_front', 'no_page_selected', __( 'You must select a page to set a static front page.' ) );
-                return $show_on_front_value;
-        }
-
-        // If a page for posts was meant to be specified, update/create it.
-        if ( ! isset( $_POST['page_for_posts'] ) ) {
-                update_option( 'page_for_posts', 0 );
-                return $show_on_front_value;
-        }
-
-        $page_for_posts = (int) $_POST['page_for_posts'];
-
-        if ( ! $page_for_posts || ! $page = get_post( $page_for_posts, ARRAY_A ) ) {
-                update_option( 'page_for_posts', 0 );
-                return $show_on_front_value;
-        }
-
-        if ( 'page' != $page['post_type'] || ! current_user_can( 'edit_post', $page_for_posts ) ) {
-                update_option( 'page_for_posts', 0 );
-                return $show_on_front_value;
-        }
-
-        if ( 'publish' != $page['post_status'] &amp;&amp; ! current_user_can( 'publish_post', $page_for_posts ) ) {
-                update_option( 'page_for_posts', 0 );
-                return $show_on_front_value;
-        }
-
-        $args = add_magic_quotes( $page );
-        $args['post_title']  = $_POST['page_for_posts_title'];
-        $args['post_name']   = $_POST['post_name'];
-        $args['post_status'] = 'publish';
-        if ( 'auto-draft' == $page['post_status'] ) {
-                $args['comment_status'] = 'closed';
-                $args['ping_status'] = 'closed';
-        }
-
-        $page_id = wp_insert_post( $args );
-        update_option( 'page_for_posts', $page_id );
-
-        return $show_on_front_value;
-}
-add_filter( 'sanitize_option_show_on_front', '_show_on_front_reading_settings' );
</del></span></pre></div>
<a id="trunkwpadminjspostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.js (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.js        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/js/post.js        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -572,6 +572,71 @@
</span><span class="cx">                 });
</span><span class="cx">         } // end submitdiv
</span><span class="cx"> 
</span><ins>+        // permalink
+        if ( $('#edit-slug-box').length ) {
+                editPermalink = function(post_id) {
+                        var i, c = 0, e = $('#editable-post-name'), revert_e = e.html(), real_slug = $('#post_name'), revert_slug = real_slug.val(), b = $('#edit-slug-buttons'), revert_b = b.html(), full = $('#editable-post-name-full').html();
+
+                        $('#view-post-btn').hide();
+                        b.html('&lt;a href=&quot;#&quot; class=&quot;save button button-small&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+'&lt;/a&gt;');
+                        b.children('.save').click(function() {
+                                var new_slug = e.children('input').val();
+                                if ( new_slug == $('#editable-post-name-full').text() ) {
+                                        return $('.cancel', '#edit-slug-buttons').click();
+                                }
+                                $.post(ajaxurl, {
+                                        action: 'sample-permalink',
+                                        post_id: post_id,
+                                        new_slug: new_slug,
+                                        new_title: $('#title').val(),
+                                        samplepermalinknonce: $('#samplepermalinknonce').val()
+                                }, function(data) {
+                                        $('#edit-slug-box').html(data);
+                                        b.html(revert_b);
+                                        real_slug.val(new_slug);
+                                        makeSlugeditClickable();
+                                        $('#view-post-btn').show();
+                                });
+                                return false;
+                        });
+
+                        $('.cancel', '#edit-slug-buttons').click(function() {
+                                $('#view-post-btn').show();
+                                e.html(revert_e);
+                                b.html(revert_b);
+                                real_slug.val(revert_slug);
+                                return false;
+                        });
+
+                        for ( i = 0; i &lt; full.length; ++i ) {
+                                if ( '%' == full.charAt(i) )
+                                        c++;
+                        }
+
+                        slug_value = ( c &gt; full.length / 4 ) ? '' : full;
+                        e.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children('input').keypress(function(e){
+                                var key = e.keyCode || 0;
+                                // on enter, just save the new slug, don't save the post
+                                if ( 13 == key ) {
+                                        b.children('.save').click();
+                                        return false;
+                                }
+                                if ( 27 == key ) {
+                                        b.children('.cancel').click();
+                                        return false;
+                                }
+                                real_slug.val(this.value);
+                        }).focus();
+                }
+
+                makeSlugeditClickable = function() {
+                        $('#editable-post-name').click(function() {
+                                $('#edit-slug-buttons').children('.edit-slug').click();
+                        });
+                }
+                makeSlugeditClickable();
+        }
+
</ins><span class="cx">         // word count
</span><span class="cx">         if ( typeof(wpWordCount) != 'undefined' ) {
</span><span class="cx">                 $(document).triggerHandler('wpcountwords', [ co.val() ]);
</span></span></pre></div>
<a id="trunkwpadminjssamplepermalinkjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/sample-permalink.js (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/sample-permalink.js        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/js/sample-permalink.js        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -1,75 +0,0 @@
</span><del>-var editPermalink, makeSlugeditClickable;
-
-(function($){
-        if ( ! $('#edit-slug-box').length )
-                return;
-        editPermalink = function(post_id) {
-                var i, c = 0,
-                        e = $('#editable-post-name'),
-                        revert_e = e.html(),
-                        real_slug = $('#post_name'),
-                        revert_slug = real_slug.val(),
-                        b = $('#edit-slug-buttons'),
-                        revert_b = b.html(),
-                        full = $('#editable-post-name-full').html();
-
-                $('#view-post-btn').hide();
-                b.html('&lt;a href=&quot;#&quot; class=&quot;save button button-small&quot;&gt;'+samplePermalinkL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+samplePermalinkL10n.cancel+'&lt;/a&gt;');
-                b.children('.save').click(function() {
-                        var new_slug = e.children('input').val();
-                        if ( new_slug == $('#editable-post-name-full').text() ) {
-                                return $('.cancel', '#edit-slug-buttons').click();
-                        }
-                        $.post(ajaxurl, {
-                                action: 'sample-permalink',
-                                post_id: post_id,
-                                new_slug: new_slug,
-                                new_title: $('#title').val(),
-                                screen: pagenow,
-                                samplepermalinknonce: $('#samplepermalinknonce').val()
-                        }, function(data) {
-                                $('#edit-slug-box').html(data);
-                                b.html(revert_b);
-                                real_slug.val(new_slug);
-                                makeSlugeditClickable();
-                                $('#view-post-btn').show();
-                        });
-                        return false;
-                });
-
-                $('.cancel', '#edit-slug-buttons').click(function() {
-                        $('#view-post-btn').show();
-                        e.html(revert_e);
-                        b.html(revert_b);
-                        real_slug.val(revert_slug);
-                        return false;
-                });
-
-                for ( i = 0; i &lt; full.length; ++i ) {
-                        if ( '%' == full.charAt(i) )
-                                c++;
-                }
-
-                slug_value = ( c &gt; full.length / 4 ) ? '' : full;
-                e.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children('input').keypress(function(e){
-                        var key = e.keyCode || 0;
-                        // on enter, just save the new slug, don't save the post
-                        if ( 13 == key ) {
-                                b.children('.save').click();
-                                return false;
-                        }
-                        if ( 27 == key ) {
-                                b.children('.cancel').click();
-                                return false;
-                        }
-                        real_slug.val(this.value);
-                }).focus();
-        }
-
-        makeSlugeditClickable = function() {
-                $('#editable-post-name').click(function() {
-                        $('#edit-slug-buttons').children('.edit-slug').click();
-                });
-        }
-        makeSlugeditClickable();
-})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjssamplepermalinkminjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/sample-permalink.min.js (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/sample-permalink.min.js        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/js/sample-permalink.min.js        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-var editPermalink,makeSlugeditClickable;(function(a){if(!a(&quot;#edit-slug-box&quot;).length){return}editPermalink=function(d){var f,j=0,h=a(&quot;#editable-post-name&quot;),k=h.html(),n=a(&quot;#post_name&quot;),o=n.val(),l=a(&quot;#edit-slug-buttons&quot;),m=l.html(),g=a(&quot;#editable-post-name-full&quot;).html();a(&quot;#view-post-btn&quot;).hide();l.html('&lt;a href=&quot;#&quot; class=&quot;save button button-small&quot;&gt;'+samplePermalinkL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+samplePermalinkL10n.cancel+&quot;&lt;/a&gt;&quot;);l.children(&quot;.save&quot;).click(function(){var b=h.children(&quot;input&quot;).val();if(b==a(&quot;#editable-post-name-full&quot;).text()){return a(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click()}a.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:d,new_slug:b,new_title:a(&quot;#title&quot;).val(),screen:pagenow,samplepermalinknonce:a(&quot;#samplepermalinknonce&quot;).va
 l()},function(c){a(&quot;#edit-slug-box&quot;).html(c);l.html(m);n.val(b);makeSlugeditClickable();a(&quot;#view-post-btn&quot;).show()});return false});a(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){a(&quot;#view-post-btn&quot;).show();h.html(k);l.html(m);n.val(o);return false});for(f=0;f&lt;g.length;++f){if(&quot;%&quot;==g.charAt(f)){j++}}slug_value=(j&gt;g.length/4)?&quot;&quot;:g;h.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(c){var b=c.keyCode||0;if(13==b){l.children(&quot;.save&quot;).click();return false}if(27==b){l.children(&quot;.cancel&quot;).click();return false}n.val(this.value)}).focus()};makeSlugeditClickable=function(){a(&quot;#editable-post-name&quot;).click(function(){a(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()})(jQuery);
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminoptionsreadingphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options-reading.php (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options-reading.php        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/options-reading.php        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -15,8 +15,6 @@
</span><span class="cx"> $title = __( 'Reading Settings' );
</span><span class="cx"> $parent_file = 'options-general.php';
</span><span class="cx"> 
</span><del>-wp_enqueue_script( 'sample-permalink' );
-
</del><span class="cx"> /**
</span><span class="cx">  * Display JavaScript on the page.
</span><span class="cx">  *
</span><span class="lines">@@ -24,28 +22,23 @@
</span><span class="cx">  */
</span><span class="cx"> function options_reading_add_js() {
</span><span class="cx"> ?&gt;
</span><del>-&lt;script&gt;
-jQuery(document).ready( function($) {
-        var section = $('#front-static-pages');
-        $('#show_on_front').change( function() {
-                var checked = $(this).prop('checked');
-                section.toggleClass('page-on-front', checked);
-                if ( checked )
-                        $('#page_for_posts').prop('checked', true).change();
-                else
-                        section.removeClass('page-for-posts');
</del><ins>+&lt;script type=&quot;text/javascript&quot;&gt;
+//&lt;![CDATA[
+        jQuery(document).ready(function($){
+                var section = $('#front-static-pages'),
+                        staticPage = section.find('input:radio[value=&quot;page&quot;]'),
+                        selects = section.find('select'),
+                        check_disabled = function(){
+                                selects.prop( 'disabled', ! staticPage.prop('checked') );
+                        };
+                check_disabled();
+                 section.find('input:radio').change(check_disabled);
</ins><span class="cx">         });
</span><del>-        $('#page_for_posts').change( function() {
-                section.toggleClass('page-for-posts', $(this).prop('checked'));
-        });
-        $('#page_on_front').change( function() {
-                section.toggleClass('new-front-page', 'new' === $(this).val());
-        });
-});
</del><ins>+//]]&gt;
</ins><span class="cx"> &lt;/script&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><del>-add_action( 'admin_head', 'options_reading_add_js' );
</del><ins>+add_action('admin_head', 'options_reading_add_js');
</ins><span class="cx"> 
</span><span class="cx"> /**
</span><span class="cx">  * Render the blog charset setting.
</span><span class="lines">@@ -89,101 +82,47 @@
</span><span class="cx"> &lt;form method=&quot;post&quot; action=&quot;options.php&quot;&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> settings_fields( 'reading' );
</span><del>-wp_nonce_field( 'samplepermalink', 'samplepermalinknonce', false );
-?&gt;
-&lt;table class=&quot;form-table&quot;&gt;
-&lt;?php
</del><ins>+
</ins><span class="cx"> if ( ! in_array( get_option( 'blog_charset' ), array( 'utf8', 'utf-8', 'UTF8', 'UTF-8' ) ) )
</span><span class="cx">         add_settings_field( 'blog_charset', __( 'Encoding for pages and feeds' ), 'options_reading_blog_charset', 'reading', 'default', array( 'label_for' =&gt; 'blog_charset' ) );
</span><ins>+?&gt;
</ins><span class="cx"> 
</span><del>-$classes = '';
-if ( 'page' == get_option( 'show_on_front' ) ) {
-        if ( ! get_pages() || ! get_option( 'page_on_front' ) &amp;&amp; ! get_option( 'page_for_posts' ) ) {
</del><ins>+&lt;?php if ( ! get_pages() ) : ?&gt;
+&lt;input name=&quot;show_on_front&quot; type=&quot;hidden&quot; value=&quot;posts&quot; /&gt;
+&lt;table class=&quot;form-table&quot;&gt;
+&lt;?php
+        if ( 'posts' != get_option( 'show_on_front' ) ) :
</ins><span class="cx">                 update_option( 'show_on_front', 'posts' );
</span><del>-        } else {
-                $classes = 'page-on-front';
-                if ( get_option( 'page_for_posts' ) )
-                        $classes .= ' page-for-posts';
-        }
-}
</del><ins>+        endif;
</ins><span class="cx"> 
</span><del>-$all_pages = get_pages();
-$new_front_page_only = ! get_option( 'page_on_front' ) &amp;&amp; ( ! $all_pages || ( 1 == count( $all_pages ) &amp;&amp; __( 'sample-page' ) == $all_pages[0]-&gt;post_name ) );
-
-if ( current_user_can( 'create_posts', 'page' ) &amp;&amp; ! ( get_option( 'page_for_posts' ) &amp;&amp; $page_for_posts = get_post( get_option( 'page_for_posts' ) ) ) ) {
-        $title = _x( 'Blog', 'default page for posts title' );
-        // @todo What if the found page is post_type = attachment or post_status != publish?
-        //       We could go ahead and create a new one, but we would not be able to take over
-        //       the slug from another page. (We could for an attachment.)
-        //       We must also check that the user can edit this page and publish a page.
-        //       Otherwise, we must assume they cannot create pages (throughout), and thus
-        //       should fall back to the dropdown.
-        $page_for_posts = get_page_by_path( sanitize_title( $title ) );
-        if ( ! $page_for_posts || $page_for_posts-&gt;ID == get_option( 'page_on_front' ) ) {
-                $page_for_posts = get_default_post_to_edit( 'page', true );
-                $page_for_posts-&gt;post_title = $title;
-                $page_for_posts-&gt;post_name = sanitize_title( $title );
-        }
-}
-
-if ( ! $new_front_page_only || current_user_can( 'create_posts', 'page' ) ) : ?&gt;
</del><ins>+else :
+        if ( 'page' == get_option( 'show_on_front' ) &amp;&amp; ! get_option( 'page_on_front' ) &amp;&amp; ! get_option( 'page_for_posts' ) )
+                update_option( 'show_on_front', 'posts' );
+?&gt;
+&lt;table class=&quot;form-table&quot;&gt;
</ins><span class="cx"> &lt;tr valign=&quot;top&quot;&gt;
</span><del>-&lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Enable a static front page' ); ?&gt;&lt;/th&gt;
-&lt;td id=&quot;front-static-pages&quot; class=&quot;&lt;?php echo $classes; ?&gt;&quot;&gt;
-        &lt;fieldset&gt;&lt;legend class=&quot;screen-reader-text&quot;&gt;&lt;span&gt;&lt;?php _e( 'Enable a static front page' ); ?&gt;&lt;/span&gt;&lt;/legend&gt;
-        &lt;p&gt;&lt;label for=&quot;show_on_front&quot;&gt;
-                &lt;input id=&quot;show_on_front&quot; name=&quot;show_on_front&quot; type=&quot;checkbox&quot; value=&quot;page&quot; &lt;?php checked( 'page', get_option( 'show_on_front' ) ); ?&gt; /&gt;
-                &lt;?php printf( __( 'Show a &lt;a href=&quot;%s&quot;&gt;page&lt;/a&gt; instead of your latest posts' ), 'edit.php?post_type=page' ); ?&gt;
-        &lt;/label&gt;&lt;/p&gt;
-        &lt;p class=&quot;if-page-on-front sub-option&quot;&gt;
-        &lt;?php if ( $new_front_page_only ) : // If no pages, or only sample page, only allow a new page to be added ?&gt;
-                &lt;label for=&quot;page_on_front_title&quot;&gt;&lt;?php _e( 'Add new page titled:' ); ?&gt;
-        &lt;?php else : ?&gt;
-                &lt;label for=&quot;page_on_front&quot;&gt;
-                        &lt;select name=&quot;page_on_front&quot; id=&quot;page_on_front&quot;&gt;
-                                &lt;option value=&quot;0&quot;&gt;&lt;?php _e( '&amp;mdash; Select &amp;mdash;' ); ?&gt;&lt;/option&gt;
-                                &lt;?php if ( current_user_can( 'create_posts', 'page' ) ) : ?&gt;
-                                &lt;option value=&quot;new&quot; id=&quot;new-page&quot;&gt;&lt;?php _e( '&amp;mdash; Add new page &amp;mdash;' ); ?&gt;&lt;/option&gt;
-                                &lt;?php endif; ?&gt;
-                                &lt;?php echo walk_page_dropdown_tree( $all_pages, 0, array( 'selected' =&gt; get_option( 'page_on_front' ) ) ); ?&gt;
-                        &lt;/select&gt;
-                &lt;/label&gt;
-                &lt;?php if ( current_user_can( 'create_posts', 'page' ) ) : ?&gt;
-                &lt;label for=&quot;page_on_front_title&quot; class=&quot;if-new-front-page&quot;&gt;&lt;?php _e( 'titled:' ); ?&gt;
-                &lt;?php endif; ?&gt;
-        &lt;?php endif; ?&gt;
-        &lt;?php if ( current_user_can( 'create_posts', 'page' ) ) : ?&gt;
-                        &lt;input name=&quot;page_on_front_title&quot; type=&quot;text&quot; id=&quot;page_on_front_title&quot; value=&quot;&lt;?php echo esc_attr_x( 'Home', 'default page on front title' ); ?&gt;&quot; /&gt;
-                &lt;/label&gt;
-        &lt;?php endif; ?&gt;
</del><ins>+&lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Front page displays' ); ?&gt;&lt;/th&gt;
+&lt;td id=&quot;front-static-pages&quot;&gt;&lt;fieldset&gt;&lt;legend class=&quot;screen-reader-text&quot;&gt;&lt;span&gt;&lt;?php _e( 'Front page displays' ); ?&gt;&lt;/span&gt;&lt;/legend&gt;
+        &lt;p&gt;&lt;label&gt;
+                &lt;input name=&quot;show_on_front&quot; type=&quot;radio&quot; value=&quot;posts&quot; class=&quot;tog&quot; &lt;?php checked( 'posts', get_option( 'show_on_front' ) ); ?&gt; /&gt;
+                &lt;?php _e( 'Your latest posts' ); ?&gt;
+        &lt;/label&gt;
</ins><span class="cx">         &lt;/p&gt;
</span><del>-        &lt;p class=&quot;if-page-on-front&quot;&gt;&lt;label for=&quot;page_for_posts&quot;&gt;
-                &lt;input id=&quot;page_for_posts&quot; name=&quot;page_for_posts&quot; type=&quot;checkbox&quot; value=&quot;&lt;?php echo $page_for_posts-&gt;ID; ?&gt;&quot; &lt;?php checked( (bool) get_option( 'page_for_posts' ) ); ?&gt; /&gt;
-                &lt;?php _e( 'Show latest posts on a separate page' ); ?&gt;
-        &lt;/label&gt;&lt;/p&gt;
-        &lt;?php if ( current_user_can( 'create_posts', 'page' ) ) : ?&gt;
-        &lt;p class=&quot;if-page-for-posts sub-option&quot;&gt;&lt;label for=&quot;page_for_posts_title&quot;&gt;&lt;?php _e( 'Page title:' ); ?&gt;
-                &lt;input name=&quot;page_for_posts_title&quot; type=&quot;text&quot; id=&quot;page_for_posts_title&quot; value=&quot;&lt;?php echo esc_attr( htmlspecialchars( $page_for_posts-&gt;post_title ) ); ?&gt;&quot; /&gt;
-        &lt;/label&gt;&lt;/p&gt;
-        &lt;p class=&quot;if-page-for-posts sub-option&quot; id=&quot;edit-slug-box&quot;&gt;
-                &lt;?php echo get_sample_permalink_html( $page_for_posts-&gt;ID, $page_for_posts-&gt;post_title, $page_for_posts-&gt;post_name ); ?&gt;
</del><ins>+        &lt;p&gt;&lt;label&gt;
+                &lt;input name=&quot;show_on_front&quot; type=&quot;radio&quot; value=&quot;page&quot; class=&quot;tog&quot; &lt;?php checked( 'page', get_option( 'show_on_front' ) ); ?&gt; /&gt;
+                &lt;?php printf( __( 'A &lt;a href=&quot;%s&quot;&gt;static page&lt;/a&gt; (select below)' ), 'edit.php?post_type=page' ); ?&gt;
+        &lt;/label&gt;
</ins><span class="cx">         &lt;/p&gt;
</span><del>-        &lt;input name=&quot;post_name&quot; type=&quot;hidden&quot; id=&quot;post_name&quot; value=&quot;&lt;?php echo esc_attr( apply_filters( 'editable_slug', $page_for_posts-&gt;post_name ) ); ?&gt;&quot; /&gt;
-        &lt;?php if ( 'page' == get_option( 'show_on_front' ) &amp;&amp; get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?&gt;
-        &lt;div class=&quot;error inline&quot;&gt;&lt;p&gt;&lt;strong&gt;&lt;?php _e( 'ERROR:' ); ?&gt;&lt;/strong&gt; &lt;?php _e( 'These pages should not be the same!' ); ?&gt;&lt;/p&gt;&lt;/div&gt;
-        &lt;?php endif; ?&gt;
-        &lt;/fieldset&gt;
-        &lt;?php else : // cannot create pages, so fall back to a selector of existing pages ?&gt;
-        &lt;p class=&quot;if-page-for-posts sub-option&quot;&gt;&lt;label for=&quot;page_for_posts&quot;&gt;
-                &lt;?php wp_dropdown_pages( array(
-                        'name' =&gt; 'page_for_posts', 'show_option_none' =&gt; __( '&amp;mdash; Select &amp;mdash;' ),
-                        'option_none_value' =&gt; '0', 'selected' =&gt; get_option( 'page_for_posts' )
-                ) ); ?&gt;
-        &lt;?php endif; // create pages ?&gt;
-&lt;/td&gt;
</del><ins>+&lt;ul&gt;
+        &lt;li&gt;&lt;label for=&quot;page_on_front&quot;&gt;&lt;?php printf( __( 'Front page: %s' ), wp_dropdown_pages( array( 'name' =&gt; 'page_on_front', 'echo' =&gt; 0, 'show_option_none' =&gt; __( '&amp;mdash; Select &amp;mdash;' ), 'option_none_value' =&gt; '0', 'selected' =&gt; get_option( 'page_on_front' ) ) ) ); ?&gt;&lt;/label&gt;&lt;/li&gt;
+        &lt;li&gt;&lt;label for=&quot;page_for_posts&quot;&gt;&lt;?php printf( __( 'Posts page: %s' ), wp_dropdown_pages( array( 'name' =&gt; 'page_for_posts', 'echo' =&gt; 0, 'show_option_none' =&gt; __( '&amp;mdash; Select &amp;mdash;' ), 'option_none_value' =&gt; '0', 'selected' =&gt; get_option( 'page_for_posts' ) ) ) ); ?&gt;&lt;/label&gt;&lt;/li&gt;
+&lt;/ul&gt;
+&lt;?php if ( 'page' == get_option( 'show_on_front' ) &amp;&amp; get_option( 'page_for_posts' ) == get_option( 'page_on_front' ) ) : ?&gt;
+&lt;div id=&quot;front-page-warning&quot; class=&quot;error inline&quot;&gt;&lt;p&gt;&lt;?php _e( '&lt;strong&gt;Warning:&lt;/strong&gt; these pages should not be the same!' ); ?&gt;&lt;/p&gt;&lt;/div&gt;
+&lt;?php endif; ?&gt;
+&lt;/fieldset&gt;&lt;/td&gt;
</ins><span class="cx"> &lt;/tr&gt;
</span><del>-&lt;?php endif; // if no pages to choose from and can't create pages ?&gt;
-
</del><ins>+&lt;?php endif; ?&gt;
</ins><span class="cx"> &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx"> &lt;th scope=&quot;row&quot;&gt;&lt;label for=&quot;posts_per_page&quot;&gt;&lt;?php _e( 'Blog pages show at most' ); ?&gt;&lt;/label&gt;&lt;/th&gt;
</span><span class="cx"> &lt;td&gt;
</span></span></pre></div>
<a id="trunkwpadminoptionsphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/options.php (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/options.php        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-admin/options.php        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx">         'general' =&gt; array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string' ),
</span><span class="cx">         'discussion' =&gt; array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ),
</span><span class="cx">         'media' =&gt; array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type' ),
</span><del>-        'reading' =&gt; array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'show_on_front', 'blog_public' ),
</del><ins>+        'reading' =&gt; array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'show_on_front', 'page_on_front', 'page_for_posts', 'blog_public' ),
</ins><span class="cx">         'writing' =&gt; array( 'use_smilies', 'default_category', 'default_email_category', 'use_balanceTags', 'default_link_category', 'default_post_format' )
</span><span class="cx"> );
</span><span class="cx"> $whitelist_options['misc'] = $whitelist_options['options'] = $whitelist_options['privacy'] = array();
</span></span></pre></div>
<a id="trunkwpincludesformattingphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/formatting.php (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/formatting.php        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-includes/formatting.php        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -2786,11 +2786,6 @@
</span><span class="cx">                         $value = absint( $value );
</span><span class="cx">                         break;
</span><span class="cx"> 
</span><del>-                case 'show_on_front' :
-                        if ( ! $value )
-                                $value = 'posts';
-                        break;
-
</del><span class="cx">                 case 'posts_per_page':
</span><span class="cx">                 case 'posts_per_rss':
</span><span class="cx">                         $value = (int) $value;
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (22652 => 22653)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2012-11-19 01:23:45 UTC (rev 22652)
+++ trunk/wp-includes/script-loader.php        2012-11-19 01:28:32 UTC (rev 22653)
</span><span class="lines">@@ -357,14 +357,10 @@
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), false, 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'sample-permalink', &quot;/wp-admin/js/sample-permalink$suffix.js&quot;, array(), false, 1 );
-                did_action( 'init' ) &amp;&amp; $scripts-&gt;localize( 'sample-permalink', 'samplePermalinkL10n', array(
</del><ins>+                $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox'), false, 1 );
+                did_action( 'init' ) &amp;&amp; $scripts-&gt;localize( 'post', 'postL10n', array(
</ins><span class="cx">                         'ok' =&gt; __('OK'),
</span><span class="cx">                         'cancel' =&gt; __('Cancel'),
</span><del>-                ) );
-
-                $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox', 'sample-permalink' ), false, 1 );
-                did_action( 'init' ) &amp;&amp; $scripts-&gt;localize( 'post', 'postL10n', array(
</del><span class="cx">                         'publishOn' =&gt; __('Publish on:'),
</span><span class="cx">                         'publishOnFuture' =&gt;  __('Schedule for:'),
</span><span class="cx">                         'publishOnPast' =&gt; __('Published on:'),
</span></span></pre>
</div>
</div>

</body>
</html>