月別アーカイブ: 2010年11月

[wordpress] Can’t updalot comment image whith “Comment Image” plugin

I install  “Commet Image” plugin to wordpress.

And set “Iinject via wordpress hook”.

Input image form was showed And worpress say “comment regist sucess”.

But Image isn’t  Upload ed.

So I chaged soucre code comment-template.php which exist at “wp-includes” folder.

Add ”enctype=”multipart/form-data”” at line 1560

<form action=”<?php echo site_url( ‘/wp-comments-post.php’ ); ?>” method=”post” id=”<?php echo esc_attr( $args[‘id_form’] ); ?>” >

<form action=”<?php echo site_url( ‘/wp-comments-post.php’ ); ?>” method=”post” id=”<?php echo esc_attr( $args[‘id_form’] ); ?>”  enctype=”multipart/form-data”>