[wp-trac] [WordPress Trac] #7984: JS inline post is not coherent with PHP inline post

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 27 21:23:46 GMT 2008


#7984: JS inline post is not coherent with PHP inline post
----------------------------+-----------------------------------------------
 Reporter:  Malaiac         |       Owner:  anonymous  
     Type:  defect          |      Status:  new        
 Priority:  normal          |   Milestone:  2.7        
Component:  Administration  |     Version:  2.7        
 Severity:  normal          |    Keywords:  inline-edit
----------------------------+-----------------------------------------------
 In Javascript : ( /wp-admin/js/inline-edit-post.js?ver=20081023 )

 {{{
 var fields = ['post_title', 'post_name', 'post_author', '_status', 'jj',
 'mm', 'aa', 'hh', 'mn', 'post_password'];
                 if ( t.type == 'page' ) fields.push('post_parent',
 'menu_order', 'page_template');
                 if ( t.type == 'post' ) fields.push('tags_input');
 }}}

 in PHP : ( wp-admin/includes/template.php, function inline_edit_row()
 starting line 877)
 {{{
 switch($column_name) {
 /* ... */
  default:
   if ( $bulk )
     do_action('bulk_edit_custom_box', $column_name, $type);
   else
     do_action('quick_edit_custom_box', $column_name, $type);
  break;

 }}}


 Any mod/plugin using an extra field may manage it by PHP (with
 (quick_edit_custombox,'my extra field').

 But it cannot access javascript and add the extra field name to fields[]

 Using revision 9368

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


More information about the wp-trac mailing list