<!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>[15857] trunk/wp-admin: Remove wp-admin/sidebar.php.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15857">15857</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-10-20 09:58:21 +0000 (Wed, 20 Oct 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove wp-admin/sidebar.php. fixes <a href="http://trac.wordpress.org/ticket/15164">#15164</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminpostphp">trunk/wp-admin/post.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadminsidebarphp">trunk/wp-admin/sidebar.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminpostphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/post.php (15856 => 15857)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/post.php        2010-10-20 09:32:16 UTC (rev 15856)
+++ trunk/wp-admin/post.php        2010-10-20 09:58:21 UTC (rev 15857)
</span><span class="lines">@@ -51,12 +51,7 @@
</span><span class="cx">  * @param int $post_id Optional. Post ID.
</span><span class="cx">  */
</span><span class="cx"> function redirect_post($post_id = '') {
</span><del>-        if ( !empty($_POST['mode']) &amp;&amp; 'sidebar' == $_POST['mode'] ) {
-                if ( isset($_POST['saveasdraft']) )
-                        $location = 'sidebar.php?a=c';
-                elseif ( isset($_POST['publish']) )
-                        $location = 'sidebar.php?a=b';
-        } elseif ( isset($_POST['save']) || isset($_POST['publish']) ) {
</del><ins>+        if ( isset($_POST['save']) || isset($_POST['publish']) ) {
</ins><span class="cx">                 $status = get_post_status( $post_id );
</span><span class="cx"> 
</span><span class="cx">                 if ( isset( $_POST['publish'] ) ) {
</span></span></pre></div>
<a id="trunkwpadminsidebarphp"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/sidebar.php (15856 => 15857)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/sidebar.php        2010-10-20 09:32:16 UTC (rev 15856)
+++ trunk/wp-admin/sidebar.php        2010-10-20 09:58:21 UTC (rev 15857)
</span><span class="lines">@@ -1,128 +0,0 @@
</span><del>-&lt;?php
-/**
- * Quick way to create a WordPress Post.
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/**
- * @var string
- * @name $mode
- */
-$mode = 'sidebar';
-
-/** WordPress Administration Bootstrap */
-require_once('./admin.php');
-
-if ( ! current_user_can('edit_posts') )
-        wp_die(__('Cheatin&amp;#8217; uh?'));
-
-$post = get_default_post_to_edit();
-
-?&gt;&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
-&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
-&lt;head&gt;
-&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;&lt;?php bloginfo('html_type'); ?&gt;; charset=&lt;?php bloginfo('blog_charset'); ?&gt;&quot; /&gt;
-&lt;title&gt;&lt;?php bloginfo('name') ?&gt; &amp;rsaquo; &lt;?php _e('Sidebar'); ?&gt;&lt;/title&gt;
-&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
-body {
-        font-size: 0.9em;
-        margin: 0;
-        padding: 0;
-}
-form {
-        padding: 1%;
-}
-.tags-wrap p {
-        font-size: 0.75em;
-        margin-top: 0.4em;
-}
-.button-highlighted, #wphead, label {
-        font-weight: bold;
-}
-#post-title, #tags-input, #content {
-        width: 99%;
-        padding: 2px;
-}
-#wphead {
-        font-size: 1.4em;
-        background-color: #E4F2FD;
-        color: #555555;
-        padding: 0.2em 1%;
-}
-#wphead p {
-        margin: 3px;
-}
-.button {
-        font-family: &quot;Lucida Grande&quot;, &quot;Lucida Sans Unicode&quot;, Tahoma, Verdana, sans-serif;
-        padding: 3px 5px;
-        margin-right: 5px;
-        font-size: 0.75em;
-        line-height: 1.5em;
-        border: 1px solid #80b5d0;
-        -moz-border-radius: 3px;
-        -khtml-border-radius: 3px;
-        -webkit-border-radius: 3px;
-        border-radius: 3px;
-        cursor: pointer;
-        background-color: #e5e5e5;
-        color: #246;
-}
-.button:hover {
-        border-color: #535353;
-}
-.updated {
-        background-color: #FFFBCC;
-        border: 1px solid #E6DB55;
-        margin-bottom: 1em;
-        padding: 0 0.6em;
-}
-.updated p {
-        margin: 0.6em;
-}
-&lt;/style&gt;
-&lt;/head&gt;
-&lt;body id=&quot;sidebar&quot;&gt;
-&lt;div id=&quot;wphead&quot;&gt;&lt;p&gt;&lt;?php bloginfo('name') ?&gt; &amp;rsaquo; &lt;?php _e('Sidebar'); ?&gt;&lt;/p&gt;&lt;/div&gt;
-&lt;form name=&quot;post&quot; action=&quot;post.php&quot; method=&quot;post&quot;&gt;
-&lt;div&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;post&quot; /&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;user_ID&quot; value=&quot;&lt;?php echo esc_attr($user_ID) ?&gt;&quot; /&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;mode&quot; value=&quot;sidebar&quot; /&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;ping_status&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;ping_status); ?&gt;&quot; /&gt;
-&lt;input type=&quot;hidden&quot; name=&quot;comment_status&quot; value=&quot;&lt;?php echo esc_attr($post-&gt;comment_status); ?&gt;&quot; /&gt;
-&lt;?php wp_nonce_field('add-post');
-
-if ( 'b' == $_GET['a'] )
-        echo '&lt;div class=&quot;updated&quot;&gt;&lt;p&gt;' . __('Post published.') . '&lt;/p&gt;&lt;/div&gt;';
-elseif ( 'c' == $_GET['a'] )
-        echo '&lt;div class=&quot;updated&quot;&gt;&lt;p&gt;' . __('Post saved.') . '&lt;/p&gt;&lt;/div&gt;';
-?&gt;
-&lt;p&gt;
-&lt;label for=&quot;post-title&quot;&gt;&lt;?php _e('Title:'); ?&gt;&lt;/label&gt;
-&lt;input type=&quot;text&quot; name=&quot;post_title&quot; id=&quot;post-title&quot; size=&quot;20&quot; tabindex=&quot;1&quot; autocomplete=&quot;off&quot; value=&quot;&quot; /&gt;
-&lt;/p&gt;
-
-&lt;p&gt;
-&lt;label for=&quot;content&quot;&gt;&lt;?php _e('Post:'); ?&gt;&lt;/label&gt;
-&lt;textarea rows=&quot;8&quot; cols=&quot;12&quot; name=&quot;content&quot; id=&quot;content&quot; style=&quot;height:10em;line-height:1.4em;&quot; tabindex=&quot;2&quot;&gt;&lt;/textarea&gt;
-&lt;/p&gt;
-
-&lt;div class=&quot;tags-wrap&quot;&gt;
-&lt;label for=&quot;tags-input&quot;&gt;&lt;?php _e('Tags:') ?&gt;&lt;/label&gt;
-&lt;input type=&quot;text&quot; name=&quot;tags_input&quot; id=&quot;tags-input&quot; tabindex=&quot;3&quot; value=&quot;&quot; /&gt;
-&lt;p&gt;&lt;?php _e('Separate tags with commas'); ?&gt;&lt;/p&gt;
-&lt;/div&gt;
-
-&lt;p&gt;
-&lt;input name=&quot;saveasdraft&quot; type=&quot;submit&quot; id=&quot;saveasdraft&quot; tabindex=&quot;9&quot; accesskey=&quot;s&quot; class=&quot;button&quot; value=&quot;&lt;?php esc_attr_e('Save as Draft'); ?&gt;&quot; /&gt;
-&lt;?php if ( current_user_can('publish_posts') ) : ?&gt;
-&lt;input name=&quot;publish&quot; type=&quot;submit&quot; id=&quot;publish&quot; tabindex=&quot;6&quot; accesskey=&quot;p&quot; value=&quot;&lt;?php esc_attr_e('Publish') ?&gt;&quot; class=&quot;button button-highlighted&quot; /&gt;
-&lt;?php endif; ?&gt;
-&lt;/p&gt;
-&lt;/div&gt;
-&lt;/form&gt;
-
-&lt;/body&gt;
-&lt;/html&gt;
</del></span></pre>
</div>
</div>

</body>
</html>