Lose reference to current_blog.
git-svn-id: http://svn.automattic.com/wordpress/trunk@5270 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d7a828c373
commit
6d3979b716
4
app.php
4
app.php
|
@ -400,7 +400,7 @@ EOD;
|
||||||
* Create Post (No arguments)
|
* Create Post (No arguments)
|
||||||
*/
|
*/
|
||||||
function create_post() {
|
function create_post() {
|
||||||
global $current_blog;
|
global $blog_id;
|
||||||
$this->get_accepted_content_type($this->atom_content_types);
|
$this->get_accepted_content_type($this->atom_content_types);
|
||||||
|
|
||||||
$parser = new AtomParser();
|
$parser = new AtomParser();
|
||||||
|
@ -417,7 +417,7 @@ EOD;
|
||||||
if(!current_user_can($cap))
|
if(!current_user_can($cap))
|
||||||
$this->auth_required('Sorry, you do not have the right to edit/publish new posts.');
|
$this->auth_required('Sorry, you do not have the right to edit/publish new posts.');
|
||||||
|
|
||||||
$blog_ID = (int )$current_blog->blog_id;
|
$blog_ID = (int ) $blog_id;
|
||||||
$post_status = ($publish) ? 'publish' : 'draft';
|
$post_status = ($publish) ? 'publish' : 'draft';
|
||||||
$post_author = (int) $user->ID;
|
$post_author = (int) $user->ID;
|
||||||
$post_title = $entry->title;
|
$post_title = $entry->title;
|
||||||
|
|
Loading…
Reference in New Issue