- md5
- f850d94a5d9127b9938c97c1f102cc3b
- sha1
- fd8e34a0552748fdcbf90ff09cfa82c0a719b724
- sha256
- f569be7262d502bc4867bc3ff26122b9821d4ed35571d0b78aef3c43856cd662
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
<?php
$mode = 'sidebar';
require_once('admin.php');
if ( ! current_user_can('edit_posts') )
wp_die(__('Cheatin’ uh?'));
if ('b' == $_GET['a']) {
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=UTF-8" />
<title>WordPress › Posted</title>
<?php
wp_admin_css( 'css/global' );
wp_admin_css();
?>
</head>
<body>
<p>Posted !</p>
<p><a href="sidebar.php">Click here</a> to post again.</p>
</body>
</html><?php
} else {
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />
<title>WordPress › Sidebar</title>
<?php
wp_admin_css( 'css/global' );
wp_admin_css();
?>
<style type="text/css" media="screen">
form {
padding: 3px;
}
.sidebar-categories {
display: block;
height: 6.6em;
overflow: auto;
background-color: #f4f4f4;
}
.sidebar-categories label {
font-size: 10px;
display: block;
width: 90%;
}
</style>
</head>
<body id="sidebar">
<h1 id="wphead"><a href="http://wordpress.org/" rel="external">WordPress</a></h1>
<form name="post" action="post.php" method="post">
<div><input type="hidden" name="action" value="post" />
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
<input type="hidden" name="mode" value="sidebar" />
<p>Title:
<input type="text" name="post_title" size="20" tabindex="1" style="width: 100%;" />
</p>
<p>Categories:
<span class="sidebar-categories">
<?php dropdown_categories(); ?>
</span>
</p>
<p>
Post:
<textarea rows="8" cols="12" style="width: 100%" name="content" tabindex="2"></textarea>
</p>
<p>
<input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" value="Save as Draft" />
<?php if ( current_user_can('publish_posts') ) : ?>
<input name="publish" type="submit" id="publish" tabindex="6" value="Publish" class="button button-highlighted" />
<?php endif; ?>
</p>
</div>
</form>
</body>
</html>
<?php
}
?>
The same content is in 2 releases, WordPress 2.5-RC1 to 2.5-RC2. See them all, or every version of this file.