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

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 28 13:56:03 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 hakre):

 I do not see a problem with the patch after another review (maybe hard to
 read because of having sprintf() and then ->prepare()). what do you mean
 with "escaping will not help here" ?

 and what about the loss of {{{$post_ID}}} and {{{$post_parent}}}? Those
 are passed as parameter to ->prepare():

 {{{
 $params    = array( $slug, $post_ID, $post_parent ) +
 $hierarchical_post_types;
 ...
 $post_name_check = $wpdb->get_var($wpdb->prepare($check_sql, $params));
 }}}}

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


More information about the wp-trac mailing list