Smart WYSIWYG Blocks Of Content
[resolved] Wonderful plugin - just minor tweaks (2 posts)

  1. dariodev
    Posted 4 years ago #

    Thank you for this great plugin. For me this is one of the most useful plugins ever.

    I made just two minor tweaks. First one is to remove code for before and after title when title is not set.

    if ($swboc_title !== '') {
         echo $before_title.$swboc_title.$after_title;

    second, change in "function form( $instance )" to prevent Notices in Debug mode

    function form( $instance ) {
    		$swboc_id = isset( $instance['swboc_id'] ) ? esc_attr($instance['swboc_id']) : '';
    		$swboc_title = isset( $instance['title'] ) ? esc_attr($instance['title']) : '';

    Thanks man!


  2. Coen Jacobs
    Plugin Author

    Posted 4 years ago #

    Thanks for reporting these bugs. The first one is actually already fixed in the latest release of the plugin.

    I've added the second bug to the list of todos for this plugin and it will be fixed in the next version of the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Smart WYSIWYG Blocks Of Content
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic