Title: shotetsの返信 | WordPress.org 日本語

---

# shotets

  [  ](https://ja.wordpress.org/support/users/shotets/)

 *   [プロフィール](https://ja.wordpress.org/support/users/shotets/)
 *   [作成したトピック](https://ja.wordpress.org/support/users/shotets/topics/)
 *   [作成した返信](https://ja.wordpress.org/support/users/shotets/replies/)
 *   [返信したトピック](https://ja.wordpress.org/support/users/shotets/replied-to/)
 *   [エンゲージメント](https://ja.wordpress.org/support/users/shotets/engagements/)
 *   [お気に入り](https://ja.wordpress.org/support/users/shotets/favorites/)

 返信を検索

## フォーラムへの返信

11件の返信を表示中 - 1 - 11件目 (全11件中)

 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [画像のアップで出るエラーについて](https://ja.wordpress.org/support/topic/%e7%94%bb%e5%83%8f%e3%81%ae%e3%82%a2%e3%83%83%e3%83%97%e3%81%a7%e5%87%ba%e3%82%8b%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/)
 *  [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [13年、 4ヶ月前](https://ja.wordpress.org/support/topic/%e7%94%bb%e5%83%8f%e3%81%ae%e3%82%a2%e3%83%83%e3%83%97%e3%81%a7%e5%87%ba%e3%82%8b%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/page/2/#post-156154)
 * こちら、すでに解決されているでしょうか？
 * 私も同じ現象が発生して困っています。
    完全な解決にはなっていませんが、応急処置
   の方法が分かったので記します。
 * 以下をfunction.php に記述すればアップロード後に編集画面に変わります。
 *     ```
       add_filter('upload_post_params', 'custom_upload_post_params');
       function custom_upload_post_params( $post_params )
       {
       	$post_params["short"]=0;
       	$post_params["fetch"]=1;
       	return $post_params;
       }
       ```
   
 * アップロード後にメディアのIDらしき数字が出ていたのでソースを追ったところ、
    wp-
   admin/async-upload.phpの92行目に以下のソースがあり、
 *     ```
       if ( $_REQUEST['short'] ) {
       	// short form response - attachment ID only
       	echo $id;
       } else {
       	// long form response - big chunk o html
       	$type = $_REQUEST['type'];
       	echo apply_filters("async_upload_{$type}", $id);
       }
       ```
   
 * この$_REQUEST[‘short’]の送信元は wp-admin/includes/media.php の1499行目にありま
   した。
 *     ```
       $post_params = array(
       		"post_id" => $post_id,
       		"_wpnonce" => wp_create_nonce('media-form'),
       		"type" => $_type,
       		"tab" => $_tab,
       		"short" => "1",
       );
       ```
   
 * この $post_params にはフックがありましたので、それを利用したらうまくいきました。
   「
   処理中」のままステータスが変わらない点は解決していませんが、 これをきっかけに
   解決に進むと幸いです。
 *   フォーラム: [プラグイン](https://ja.wordpress.org/support/forum/plugins/)
    
   返信が含まれるトピック: [WP Link Directoryの日本語化パッチ](https://ja.wordpress.org/support/topic/wp-link-directory%e3%81%ae%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96%e3%83%91%e3%83%83%e3%83%81/)
 *  [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [14年、 7ヶ月前](https://ja.wordpress.org/support/topic/wp-link-directory%e3%81%ae%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96%e3%83%91%e3%83%83%e3%83%81/#post-145457)
 * 以前置いていたサイトは閉鎖してしまったため、個人的なブログに復活させました。
   
   [WP Link Directoryの日本語化パッチ](http://shotets.info/web%E3%82%B5%E3%82%A4%E3%83%88%E5%88%B6%E4%BD%9C%E6%8A%80%E8%A1%93/wordpress-link-directory-v-1-8-2-%E6%97%A5%E6%9C%AC%E8%AA%9E%E5%8C%96.html)
   こちらからどうぞ
 *   フォーラム: [自作品の告知](https://ja.wordpress.org/support/forum/showcase/)
   
   返信が含まれるトピック: [記事中のメールアドレスをHTMLエンティティ化するプラグイン](https://ja.wordpress.org/support/topic/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92html%e3%82%a8%e3%83%b3%e3%83%86%e3%82%a3%e3%83%86%e3%82%a3/)
 *  トピック投稿者 [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 8ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92html%e3%82%a8%e3%83%b3%e3%83%86%e3%82%a3%e3%83%86%e3%82%a3/#post-124655)
 * あ、間違えた。
 * >lilyfanさん
 * すいません。＠マークの右側ですね。
    左側のことを書いてしまいました。（＾＾；；
 * 時間があるときに検討＆勉強してみます。
 *   フォーラム: [自作品の告知](https://ja.wordpress.org/support/forum/showcase/)
   
   返信が含まれるトピック: [記事中のメールアドレスをHTMLエンティティ化するプラグイン](https://ja.wordpress.org/support/topic/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92html%e3%82%a8%e3%83%b3%e3%83%86%e3%82%a3%e3%83%86%e3%82%a3/)
 *  トピック投稿者 [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 8ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%a2%e3%83%89%e3%83%ac%e3%82%b9%e3%82%92html%e3%82%a8%e3%83%b3%e3%83%86%e3%82%a3%e3%83%86%e3%82%a3/#post-124654)
 * ご意見ありがとうございます。
 * >takuyaさん
 * テーマを編集できる方はいいですが、
    CMSを使うユーザーはスパムボットについて理解
   していない方も 使う可能性があることを考えると、 どんな投稿があってもエンコード
   されなければならないと思うのです。
 * >lilyfanさん
 * ありがとうございます。
    この正規表現で今までやってこれたので、そのまま使いました。（
   ＾＾；
 * アンダースコアは
    携帯のアカウントで使われているので採用しています。
 * ■ドコモのアカウント
    半角英数字　3～30文字以内 「_」アンダーバー 「-」ハイフン「.」
   ピリオド
 * ■ＡＵのアカウント
    半角英数小文字　20文字以内 「-」ハイフン 「.」ピリオド
 * ■softbank（ボーダフォン）のアカウント
    半角英数字　3～30文字以内 「_」アンダー
   バー 「-」ハイフン 「.」ピリオド
 * 以前に調べたときには
    特殊なメールアカウントなど、メールアドレスを完全にマッチ
   させる正規表現を書こうとすると そうとう長くなると聞きましたので、 一般的に使われる
   アカウントで作りました。
 *   フォーラム: [プラグイン](https://ja.wordpress.org/support/forum/plugins/)
    
   返信が含まれるトピック: [Contact Form 7 で、メール本文等にフィルターフックを当てたい](https://ja.wordpress.org/support/topic/contact-form-7-%e3%81%a7%e3%80%81%e3%83%a1%e3%83%bc%e3%83%ab%e6%9c%ac%e6%96%87%e7%ad%89%e3%81%ab%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf%e3%83%bc%e3%83%95%e3%83%83%e3%82%af%e3%82%92%e5%bd%93%e3%81%a6/)
 *  [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 9ヶ月前](https://ja.wordpress.org/support/topic/contact-form-7-%e3%81%a7%e3%80%81%e3%83%a1%e3%83%bc%e3%83%ab%e6%9c%ac%e6%96%87%e7%ad%89%e3%81%ab%e3%83%95%e3%82%a3%e3%83%ab%e3%82%bf%e3%83%bc%e3%83%95%e3%83%83%e3%82%af%e3%82%92%e5%bd%93%e3%81%a6/#post-122338)
 * classes.php にメール文にフックできるところがありますね。
 * >  do_action_ref_array( ‘wpcf7_before_send_mail’, array( &$this ) );
 * これを利用すれば、以下のようにメールにフックできるんじゃないですかね。
 *     ```
       // メール送信直前にフック
       add_action( 'wpcf7_before_send_mail', 'my_action' );
   
       function my_action( $cf7 )
       {
       	// フォームID
       	$id = $cf7->id;
       	// 入力されたデータ
       	$post = $cf7->posted_data;
       	// タイトル
       	$title = $cf7->title;
       	// メール
       	$mail = $cf7->mail;
       	// メール2
       	$mail_2 = $cf7->mail_2;
       	// メッセージ
       	$messages = $cf7->messages;
       }
       ```
   
 *   フォーラム: [プラグイン](https://ja.wordpress.org/support/forum/plugins/)
    
   返信が含まれるトピック: [Contact Form 7　送信後のフォーム内容について](https://ja.wordpress.org/support/topic/contact-form-7%e3%80%80%e9%80%81%e4%bf%a1%e5%be%8c%e3%81%ae%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e5%86%85%e5%ae%b9%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/)
 *  [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 9ヶ月前](https://ja.wordpress.org/support/topic/contact-form-7%e3%80%80%e9%80%81%e4%bf%a1%e5%be%8c%e3%81%ae%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e5%86%85%e5%ae%b9%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6/#post-123068)
 * [on_sent_ok とセッションを利用して、送信後に入力内容が表示される方法を紹介しています。](http://a-plan.cc/blog/blog/tips/wordpress-%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE-contact-form-7-%E3%81%A7%E3%82%B5%E3%83%B3%E3%82%AD%E3%83%A5%E3%83%BC%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%AB%E3%83%95%E3%82%A9%E3%83%BC.html)
   
   いかがでしょう。
 *   フォーラム: [自作品の告知](https://ja.wordpress.org/support/forum/showcase/)
   
   返信が含まれるトピック: [連続改行を可能にするプラグイン my_autop](https://ja.wordpress.org/support/topic/%e9%80%a3%e7%b6%9a%e6%94%b9%e8%a1%8c%e3%82%92%e5%8f%af%e8%83%bd%e3%81%ab%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3-my_autop/)
 *  トピック投稿者 [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e9%80%a3%e7%b6%9a%e6%94%b9%e8%a1%8c%e3%82%92%e5%8f%af%e8%83%bd%e3%81%ab%e3%81%99%e3%82%8b%e3%83%97%e3%83%a9%e3%82%b0%e3%82%a4%e3%83%b3-my_autop/#post-124237)
 * たぶん、wordpress 2.8以降で動作すると思います。
 *   フォーラム: [使い方全般](https://ja.wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   返信が含まれるトピック: [記事の作成で改行が反映されない](https://ja.wordpress.org/support/topic/%e8%a8%98%e4%ba%8b%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%a7%e6%94%b9%e8%a1%8c%e3%81%8c%e5%8f%8d%e6%98%a0%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84/)
 *  [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e8%a8%98%e4%ba%8b%e3%81%ae%e4%bd%9c%e6%88%90%e3%81%a7%e6%94%b9%e8%a1%8c%e3%81%8c%e5%8f%8d%e6%98%a0%e3%81%95%e3%82%8c%e3%81%aa%e3%81%84/#post-113282)
 * こんにちは。
 * [wordpressで連続改行を可能にするプラグイン](http://a-plan.cc/blog/%E9%85%8D%E5%B8%83%E7%89%A9/wordpress%E3%81%A7%E9%80%A3%E7%B6%9A%E6%94%B9%E8%A1%8C%E3%82%92%E5%8F%AF%E8%83%BD%E3%81%AB%E3%81%99%E3%82%8B%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3-my_autop.html)
   を作りました。
 * ちゃんと
 * `<p style="margin-top:5em;">ここからネタバレ。………`
 * となります。いかがでしょうか？
 *   フォーラム: [プラグイン](https://ja.wordpress.org/support/forum/plugins/)
    
   返信が含まれるトピック: [wordpress link directory v.1.8.2 日本語化](https://ja.wordpress.org/support/topic/wordpress-link-directory-v182-%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96/)
 *  トピック投稿者 [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 9ヶ月前](https://ja.wordpress.org/support/topic/wordpress-link-directory-v182-%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96/#post-124113)
 * ありがとうございます。
 * 翻訳ができたのは
    機能がある程度分かったから 翻訳サービスを利用しながら自分なり
   に解釈したのです。
 * とりあえず、これをたたき台にして
    自分なりに連絡してみます。
 *   フォーラム: [プラグイン](https://ja.wordpress.org/support/forum/plugins/)
    
   返信が含まれるトピック: [wordpress link directory v.1.8.2 日本語化](https://ja.wordpress.org/support/topic/wordpress-link-directory-v182-%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96/)
 *  トピック投稿者 [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 9ヶ月前](https://ja.wordpress.org/support/topic/wordpress-link-directory-v182-%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96/#post-124103)
 * はい。申し訳ありません。
    恥ずかしながら英語が苦手なもので…。 まだ、通知しており
   ません。
 * Compatible up to: 2.6.3
 * はどういう意味でしょう。2.6.3でも互換性がある？
 * 一応、動作は wordpress 2.9.1 で確認しております。
 *   フォーラム: [プラグイン](https://ja.wordpress.org/support/forum/plugins/)
    
   返信が含まれるトピック: [リンク集を作りたいのですが](https://ja.wordpress.org/support/topic/%e3%83%aa%e3%83%b3%e3%82%af%e9%9b%86%e3%82%92%e4%bd%9c%e3%82%8a%e3%81%9f%e3%81%84%e3%81%ae%e3%81%a7%e3%81%99%e3%81%8c/)
 *  [shotets](https://ja.wordpress.org/support/users/shotets/)
 * (@shotets)
 * [16年、 9ヶ月前](https://ja.wordpress.org/support/topic/%e3%83%aa%e3%83%b3%e3%82%af%e9%9b%86%e3%82%92%e4%bd%9c%e3%82%8a%e3%81%9f%e3%81%84%e3%81%ae%e3%81%a7%e3%81%99%e3%81%8c/#post-116001)
 * [WordPress Link Directory の日本語化ファイル](http://a-plan.cc/blog/%E9%85%8D%E5%B8%83%E7%89%A9/wordpress-link-directory-v-1-8-2-%E6%97%A5%E6%9C%AC%E8%AA%9E%E5%8C%96.html)
   を作りました。
 * 同じようなことでお悩みの方がいらっしゃいましたら、ぜひご利用ください。

11件の返信を表示中 - 1 - 11件目 (全11件中)