Use comments_open() and pings_open(). Props coffee2code. fixes #9557

git-svn-id: https://develop.svn.wordpress.org/trunk@10982 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2009-04-17 07:02:55 +00:00
parent 91edad4f95
commit 1c97a58522
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -519,8 +519,8 @@ class wp_xmlrpc_server extends IXR_Server {
}
// Determine comment and ping settings.
$allow_comments = ("open" == $page->comment_status) ? 1 : 0;
$allow_pings = ("open" == $page->ping_status) ? 1 : 0;
$allow_comments = comments_open($page->ID) ? 1 : 0;
$allow_pings = pings_open($page->ID) ? 1 : 0;
// Format page date.
$page_date = mysql2date("Ymd\TH:i:s", $page->post_date);