Created
March 26, 2014 03:50
-
-
Save atwellpub/9776695 to your computer and use it in GitHub Desktop.
Breeze theme fix for landing pages
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 unisphere_portfolio_preset_content( $content ) { | |
global $post, $unisphere_options; | |
if ( $post->post_content == '' && $post->post_type == 'portfolio' ) { | |
$default_content = $unisphere_options['portfolio_default_text']; | |
} else { | |
$default_content = $content; | |
} | |
return $default_content; | |
} | |
add_filter('the_editor_content', 'unisphere_portfolio_preset_content'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This function starts at about line 76 in /breeze/library/misc.php