mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
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:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user