This file contains hidden or 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 filter_wp_caption_text( $content ) { | |
return preg_replace( | |
'/<p[^>]+class="wp-caption-text"[^>]*>(.+)(?=<\/p>)/s', | |
'<div class="wp-caption-text">\1</div>', | |
$content | |
); | |
} |
This file contains hidden or 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
add_filter( 'img_caption_shortcode', 'my_img_caption_shortcode', 10, 3 ); | |
function my_img_caption_shortcode( $empty, $attr, $content ){ | |
$attr = shortcode_atts( array( | |
'id' => '', | |
'align' => 'alignnone', | |
'width' => '', | |
'caption' => '' | |
), $attr ); |
This file contains hidden or 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
############################## | |
## Java | |
############################## | |
.mtj.tmp/ | |
*.class | |
*.jar | |
*.war | |
*.ear | |
*.nar | |
hs_err_pid* |