[wp-trac] Re: [WordPress Trac] #7435: Reply to comments from admin

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 27 10:10:47 GMT 2008


#7435: Reply to comments from admin
----------------------------+-----------------------------------------------
 Reporter:  ryan            |        Owner:  azaozz
     Type:  enhancement     |       Status:  new   
 Priority:  normal          |    Milestone:  2.7   
Component:  Administration  |      Version:        
 Severity:  normal          |   Resolution:        
 Keywords:  blessed         |  
----------------------------+-----------------------------------------------
Comment (by azaozz):

 Replying to [comment:6 caesarsgrunt]:
 > I think the default form code should passed to the existing filter,
 allowing plugins to either replace it entirely or just change it slightly
 and return it. Just like most other WP filters.

 That would mean the plugin will have to parse the HTML to modify it. Not
 that easy/fast as supplying replacement form.

 > I didn't mean the default form should alow this, I just meant the PHP
 script which handles the AJAX submission should support POSTed values for
 all comment metadata. Plugins can do the rest.[[BR]]
 > Regarding the specific security issue you mention, the plugin I am
 developing only allows admins to submit comments 'from' other users. I
 need it for my own blog because users often email me and then ask me to
 post the email as a comment from them...

 Still not convinced we should allow that. There's a good reason why this
 is not allowed in wp-comments-post.php too. Of course you can make a
 plugin that would insert the comment directly and doesn't have this
 restriction.

 > I meant the ''reply form'' as a row in the table, not my submitted reply
 below the replyed-to comment. Like in my plugin. Interesting that you had
 it like that and changed it...

 This has some other implications: now comments are listed on the write
 page too, but there they are in the main form. Appending the comment reply
 form inside the table would break the HTML completely (nested forms).

 > More importantly, what if the internet connection goes down or times out
 whilst submitting the comment? If you just close the form the comment will
 be lost, since when the form is reopened it is cleared. Clicking my 'Go
 Back' button, however, just un-hides the form field, with it's existing
 contents still in it. For me, on my slow internet connection (I live on a
 boat), this is a major consideration - and probably for plenty of other
 people too.

 Agreed. Will add the Back button in the next patch.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7435#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list