Changeset 4906

Show
Ignore:
Timestamp:
02/22/07 01:34:29 (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
  • branches/2.1/xmlrpc.php

    r4807 r4906  
    536536      } 
    537537 
    538         $to_ping = $content_struct['mt_tb_ping_urls']; 
     538      $to_ping = $content_struct['mt_tb_ping_urls']; 
     539      if ( is_array($to_ping) ) 
     540        $to_ping = implode(' ', $to_ping); 
    539541 
    540542      // Do some timestamp voodoo 
     
    634636      } 
    635637 
    636         $to_ping = $content_struct['mt_tb_ping_urls']; 
    637  
     638      $to_ping = $content_struct['mt_tb_ping_urls']; 
     639      if ( is_array($to_ping) ) 
     640        $to_ping = implode(' ', $to_ping); 
     641       
    638642      $comment_status = (empty($content_struct['mt_allow_comments'])) ? 
    639643        get_option('default_comment_status')