[wp-trac] [WordPress Trac] #10126: Warning upon saving draft page

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 27 10:56:31 UTC 2009


#10126: Warning upon saving draft page
-----------------------+----------------------------------------------------
  Reporter:  Beee      |        Type:  defect (bug)  
    Status:  reopened  |    Priority:  normal        
 Milestone:  3.0       |   Component:  Administration
   Version:  2.8       |    Severity:  normal        
Resolution:            |    Keywords:  needs-patch   
-----------------------+----------------------------------------------------

Comment(by dd32):

 Replying to [comment:28 hakre]:
 > Just reviewed. The original patch author was right:
 $hierarchical_post_types is actually an array. currently it is passed to
 esc_sql (line 1980) which only accepts strings. This needs to be fixed. I
 create an updated patch.

 Just rechecked that for you.. {{{esc_sql()}}} uses $wpdb->escape, And like
 Ryan posted higher in the thread, Handles arrays.

 The entire reason for the warning, will be that
 {{{$hierarchical_post_types}}} was not an array, Now, For whatever reason
 that is, It shouldnt be happening.. so escaping will not help here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10126#comment:33>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list