diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-23 17:46:02 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-23 17:46:02 +0000 |
| commit | 2e96b99ceb195735a641e299f3209840cc101052 (patch) | |
| tree | 374954833d10017ae7adb6a031d54fd0dc36f3a2 /app.php | |
| parent | bf6a271edebcceb76d6e378156e92fe72c1fbb18 (diff) | |
| download | wordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.tar.gz wordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.tar.xz wordpress-mu-2e96b99ceb195735a641e299f3209840cc101052.zip | |
Ryan casts an int and catches a fish, someone buy him a pint! merge to 5092
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@933 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'app.php')
| -rw-r--r-- | app.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -417,9 +417,9 @@ EOD; if(!current_user_can($cap)) $this->auth_required('Sorry, you do not have the right to edit/publish new posts.'); - $blog_ID = $current_blog->blog_id; + $blog_ID = (int )$current_blog->blog_id; $post_status = ($publish) ? 'publish' : 'draft'; - $post_author = $user->ID; + $post_author = (int) $user->ID; $post_title = $entry->title; $post_content = $entry->content; $post_excerpt = $entry->summary; @@ -788,7 +788,7 @@ EOD; global $use_querystring; if(!isset($postID)) { global $post; - $postID = $GLOBALS['post']->ID; + $postID = (int) $GLOBALS['post']->ID; } if ($use_querystring) { @@ -810,7 +810,7 @@ EOD; global $use_querystring; if(!isset($postID)) { global $post; - $postID = $GLOBALS['post']->ID; + $postID = (int) $GLOBALS['post']->ID; } if ($use_querystring) { @@ -885,7 +885,7 @@ EOD; $wp = $GLOBALS['wp']; $wp_query = $GLOBALS['wp_query']; $wpdb = $GLOBALS['wpdb']; - $blog_id = $GLOBALS['blog_id']; + $blog_id = (int) $GLOBALS['blog_id']; $post_cache = $GLOBALS['post_cache']; |
