[wp-trac] [WordPress Trac] #5855: Optimize generic_ping function

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 14 04:46:29 GMT 2008


#5855: Optimize generic_ping function
--------------------------+-------------------------------------------------
 Reporter:  fitztrev      |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  low           |   Milestone:  2.5      
Component:  Optimization  |     Version:           
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 The `generic_ping` function currently sends weblog_ping() a null value if
 there is an empty line in the ping_sites option.  The regexp pattern in
 the function only replaces 2 or more empty lines with 1--it doesn't get
 rid of it altogether.  There's no check anywhere down the line to stop the
 IXR class from trying to ping an empty string.

 This restructure will address this problem and speed the function up at
 the same time.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5855>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list