WordPress plugin intelligence profile

Shortcode Empty Paragraph Fix

Fix known issues when shortcodes are embedded in a block of content that is filtered by wpautop.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.8
Current version0.2
WordPress coverageTested up to WordPress 4.8
Minimum stackWP 2.5 · PHP —
Directory statusactive
Last directory update22 Jan 201610y ago
Active installations800Adoption metric — not a quality score
WordPress.org rating4.8 / 5 from 20 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Shortcode Empty Paragraph Fix version 0.2 as active, updated 10y ago and tested up to WordPress 4.8.

Overview

About this plugin

Fix known issues when shortcodes are embedded in a block of content that is filtered by wpautop.

for Theme Developers

php. This code filters only the shortcodes you defined. Otherwise you risk a failed review because the code in the plugin filters content in general which may is not acceptet.

function shortcode_empty_paragraph_fix( $content ) {

// define your shortcodes to filter, '' filters all shortcodes $shortcodes = array( 'your_shortcode_1', 'your_shortcode_2' );

foreach ( $shortcodes as $shortcode ) {

$array = array ( '<p>['. $shortcode, '<p>[/'. $shortcode, $shortcode.

']</p>' => $shortcode. ']', $shortcode. ']<br />' => $shortcode.

']' );

$content = strtr( $content, $array ); }

return $content; }

add_filter( 'the_content', 'shortcode_empty_paragraph_fix' );

Another solution that is acceptet at the envato (themeforest) marketplace comes from bitfade.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • fix
  • shortcode
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.8
Minimum requirementsWordPress 2.5 · PHP not listed
Update activity22 Jan 201610y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.