Make WordPress Core

Changeset 9696


Ignore:
Timestamp:
11/14/2008 10:33:13 PM (16 years ago)
Author:
ryan
Message:

Use pings_open() to check ping status

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r9615 r9696  
    15711571
    15721572/**
    1573  * Close comments on an old post.  Hooked to comments_open.
     1573 * Close comments on an old post.  Hooked to comments_open and pings_open.
    15741574 *
    15751575 * @access private
  • trunk/xmlrpc.php

    r9568 r9696  
    32373237
    32383238        // Check if pings are on
    3239         if ( 'closed' == $post->ping_status )
     3239        if ( !pings_open($post) )
    32403240            return new IXR_Error(33, __('The specified target URL cannot be used as a target. It either doesn\'t exist, or it is not a pingback-enabled resource.'));
    32413241
Note: See TracChangeset for help on using the changeset viewer.