Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portfolio Shortcode: Remove WordAds #6962

Merged
merged 1 commit into from Apr 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions modules/custom-post-types/portfolios.php
Expand Up @@ -677,6 +677,7 @@ static function portfolio_shortcode_html( $atts ) {
<?php
// The content
if ( false !== $atts['display_content'] ) {
add_filter( 'wordads_inpost_disable', '__return_true', 20 );
if ( 'full' === $atts['display_content'] ) {
?>
<div class="portfolio-entry-content"><?php the_content(); ?></div>
Expand All @@ -686,6 +687,7 @@ static function portfolio_shortcode_html( $atts ) {
<div class="portfolio-entry-content"><?php the_excerpt(); ?></div>
<?php
}
remove_filter( 'wordads_inpost_disable', '__return_true', 20 );
}
?>
</div><!-- close .portfolio-entry -->
Expand Down