Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

abstract basic formatting

  • Loading branch information...
commit 76cb414417e77fabe70e4f7a9351ef504a8aef3e 1 parent 1ab7b90
@alexkingorg alexkingorg authored
Showing with 9 additions and 4 deletions.
  1. +1 −4 carrington.php
  2. +8 −0 utility.php
View
5 carrington.php
@@ -51,10 +51,7 @@ function cfct_wp_footer() {
function cfct_about_text() {
$about_text = get_option('cfct_about_text');
if (!empty($about_text)) {
- $about_text = wptexturize($about_text);
- $about_text = convert_smilies($about_text);
- $about_text = convert_chars($about_text);
- $about_text = wpautop($about_text);
+ $about_text = cfct_basic_content_formatting($about_text);
}
else {
global $post;
View
8 utility.php
@@ -679,4 +679,12 @@ function cfct_post_id_to_slug($id) {
return $post->post_name;
}
+function cfct_basic_content_formatting($str) {
+ $str = wptexturize($str);
+ $str = convert_smilies($str);
+ $str = convert_chars($str);
+ $str = wpautop($str);
+ return $str;
+}
+
?>
Please sign in to comment.
Something went wrong with that request. Please try again.