Make WordPress Core

Changeset 4906


Ignore:
Timestamp:
02/22/2007 01:34:29 AM (20 years ago)
Author:
ryan
Message:

Handle array of mt_tb_ping_urls. Props bafonso. fixes #3721

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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')
Note: See TracChangeset for help on using the changeset viewer.