Skip to content

Commit

Permalink
Update get_first_paragraphy function
Browse files Browse the repository at this point in the history
  • Loading branch information
oberonlai committed Nov 1, 2016
1 parent d58bf7e commit 8c2c506
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 2 deletions.
Empty file modified css/normalize.css
100644 → 100755
Empty file.
Empty file modified include/admin.php
100644 → 100755
Empty file.
Empty file modified include/cpt.php
100644 → 100755
Empty file.
Empty file modified include/nav.php
100644 → 100755
Empty file.
Empty file modified include/shortcode.php
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions include/tool.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ function get_first_paragraph(){
return get_the_excerpt();
} else {
$str = wpautop( get_the_content() );
$str = substr( $str, 0, strpos( $str, '</p>' ) + 4 );
$str = strip_tags($str, '<a><strong><em>');
$str = strip_tags(str_replace(array("<q>", "</q>"), array("_", "_"), $str));
return $str;
}
}
Expand Down
Empty file modified include/widget.php
100644 → 100755
Empty file.
Empty file modified js/plugin.js
100644 → 100755
Empty file.
Empty file modified languages/zh_TW.mo
100644 → 100755
Empty file.
Empty file modified languages/zh_TW.po
100644 → 100755
Empty file.

0 comments on commit 8c2c506

Please sign in to comment.