Changeset 4905

Show
Ignore:
Timestamp:
02/22/07 01:34:06 (1 year ago)
Author:
ryan
Message:

Handle array of mt_tb_ping_urls. Props bafonso. fixes #3721

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/xmlrpc.php

    r4874 r4905  
    990990      } 
    991991 
    992         $to_ping = $content_struct['mt_tb_ping_urls']; 
     992      $to_ping = $content_struct['mt_tb_ping_urls']; 
     993      if ( is_array($to_ping) ) 
     994        $to_ping = implode(' ', $to_ping); 
    993995 
    994996      // Do some timestamp voodoo 
     
    11521154      } 
    11531155 
    1154         $to_ping = $content_struct['mt_tb_ping_urls']; 
    1155  
     1156      $to_ping = $content_struct['mt_tb_ping_urls']; 
     1157      if ( is_array($to_ping) ) 
     1158        $to_ping = implode(' ', $to_ping); 
     1159       
    11561160      $comment_status = (empty($content_struct['mt_allow_comments'])) ? 
    11571161        get_option('default_comment_status')