public_html/wp-content/plugins/media-file-manager/media-selector.php
/**
	 *  embed a script to insert a shortcoed.
	 */
embed a script to insert a shortcoed.
embed a script to insert a shortcoed .
public function onAddShortCode()
	{
		if( strpos( $_SERVER[ "REQUEST_URI" ], "post.php"     ) ||
			strpos( $_SERVER[ "REQUEST_URI" ], "post-new.php" ) ||
			strpos( $_SERVER[ "REQUEST_URI" ], "page-new.php" ) ||
			strpos( $_SERVER[ "REQUEST_URI" ], "page.php"     ) ||
			strpos( $_SERVER[ "REQUEST_URI" ], "index.php"     ) )
		{
			echo <<<HTML
<script type="text/javascript">
//<![CDATA
function onMrlMediaSelector_ShortCode( text ) { send_to_editor( text ); }
//]]>
</script>
HTML;
		}
	}
public function onAddShortCode ( ) { if ( strpos ( $ _SERVER [ " REQUEST_URI " ] , " post.php " ) || strpos ( $ _SERVER [ " REQUEST_URI " ] , " post-new.php " ) || strpos ( $ _SERVER [ " REQUEST_URI " ] , " page-new.php " ) || strpos ( $ _SERVER [ " REQUEST_URI " ] , " page.php " ) || strpos ( $ _SERVER [ " REQUEST_URI " ] , " index.php " ) ) { echo <<< HTML <script type="text/javascript"> //<![CDATA function onMrlMediaSelector_ShortCode( text ) { send_to_editor( text ); } //]]> </script> 
HTML ; } }
embed a script to insert a shortcoed.
embed a script to insert a shortcoed .
//  only in the posting page 投稿の編集画面だけを対象とする