This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'the_content', 'my_pre_shortcode', 7 ); | |
function my_pre_shortcode( $content ) { | |
global $shortcode_tags; | |
$shortcode_tags_org = $shortcode_tags; | |
remove_all_shortcodes(); | |
add_shortcode( 'code', 'code_shortcode_handler' ); | |
$content = do_shortcode( $content ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package content_mayuge_systems | |
* @version 0.2 | |
*/ | |
/* | |
Plugin Name: Content Mayuge Systems | |
Plugin URI: http://wordpress.org/extend/plugins/hello-dolly/ | |
Description: 本文中に句点「。」があると「( ・ิω・)╯ิ」がくっつきます。 | |
Author: gatespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function get_the_khoshino($destination == null, $username == null) { | |
if ( $destination ) { | |
return 'というわけで、' . $destination . 'に向かっています'; | |
} else { | |
if (!empty($username)) { | |
return 'いやいや'.$username.'さんほどでは。'; | |
} else { | |
return 'やはりですか。なるほどですね。'; | |
} |