Hide Broken Shortcodes

Software Screenshot:
Hide Broken Shortcodes
Software Details:
Version: 1.7 updated
Upload Date: 11 Apr 15
Developer: Scott Reilly
Distribution Type: Freeware
Downloads: 15

Rating: 3.3/5 (Total Votes: 3)

It can be used to clean up messy code and avoid breaking points in blogs whenever a plugin fails.

If the shortcode is of the self-closing variety, then the shortcode tag and its attributes are not displayed and nothing is shown in their place.

If the shortcode is of the enclosing variety, then the text that is being enclosed will be shown, but the shortcode tag and attributes that surround the text will not be displayed.

A filter is also available by the name of 'hide_broken_shortcode' that allows the developer to customize what, if anything, gets displayed when a broken shortcode is encountered.

The filter can have one of these 3 arguments:
The default display text (what the plugin would display by default)
The name of the shortcode
The text bookended by opening and closing broken shortcodes, if present

Installation:

Unpack and upload it to the /wp-content/plugins/ directory.
Activate the plugin through the 'Plugins' menu in WordPress.

What is new in this release:

  • Enhancement:
  • Filter 'the_excerpt' by default as well
  • Update:
  • Add more unit tests
  • Note compatibility through WP 4.2+
  • Add inline documentation to examples in readme.txt
  • Minor inline documentation tweaks (spacing, formatting)

What is new in version 1.6.3:

  • Re-license as GPLv2 or later (from X11)
  • Add 'License' and 'License URI' header tags to readme.txt and plugin file
  • Remove ending PHP close tag
  • Note compatibility through WP 3.4+
  • Fix error in example code in readme.txt

What is new in version 1.4:

  • Add version() to return plugin version
  • Note compatibility through WP 3.3+
  • Add Frequently Asked Questions section to readme.txt
  • Add link to plugin directory page to readme.txt
  • Update copyright date (2012)

What is new in version 1.3.1:

  • Note compatibility through WP 3.2+.
  • Minor code formatting changes (spacing, variable removal).
  • Fix plugin homepage and author links in description in readme.txt.

What is new in version 1.3:

  • Switch from object instantiation to direct class invocation.
  • Explicitly declare all functions public static.
  • Note compatibility through WP 3.1+.
  • Update copyright date (2011).

What is new in version 1.2:

  • Allow customization of the filters the plugin applies to via the 'hide_broken_shortcodes_filters' filter.
  • Change do_shortcode filter priority from 12 to 1001 (to avoid incompatibility with Preserve Code Formatting, and maybe others).
  • Move registering filters into register_filters().
  • Rename class from 'HideBrokenShortcodes' to 'c2c_HideBrokenShortcodes'.
  • Store plugin instance in global variable, $c2c_hide_broken_shortcodes, to allow for external manipulation.
  • Note compatibility with WP 3.0+.
  • Minor code reformatting (spacing).
  • Add Filters and Upgrade Notice sections to readme.txt.
  • Remove all header documentation and instructions from plugin file (all that and more are in readme.txt).
  • Remove trailing whitespace from header docs.

What is new in version 1.1:

  • Create filter 'hide_broken_shortcode' to allow customization of the output for broken shortcodes
  • Now also filter widget_text
  • Add PHPDoc documentation
  • Note compatibility with WP 2.9+

Requirements:

  • WordPress 2.5 or higher

Similar Software

Other Software of Developer Scott Reilly

Comments to Hide Broken Shortcodes

Comments not found
Add Comment
Turn on images!