Plugin Directory

Changeset 1997170


Ignore:
Timestamp:
12/18/2018 11:16:57 AM (7 years ago)
Author:
8bitsinarow
Message:

Hot fixed search bar shortcode - v.2.0.2

Location:
basepress/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • basepress/trunk/basepress.php

    r1977295 r1997170  
    55 * Plug URI: http://www.8bitsinarow.com
    66 * Description: The perfect Knowledge Base plugin for WordPress
    7  * Version: 2.0.1
     7 * Version: 2.0.2
    88 * Author: 8Bits in a row
    99 * Author URI: http://www.8bitsinarow.com
     
    7373             * @var string
    7474             */
    75             public  $ver = '2.0.1' ;
     75            public  $ver = '2.0.2' ;
    7676            /**
    7777             * Database version
  • basepress/trunk/public/class-basepress-search.php

    r1975463 r1997170  
    657657         * @param $content
    658658         * @param $tag
     659         * @return false|string|void
    659660         */
    660661        public function do_shortcode( $atts, $content, $tag ) {
     
    667668                $width = isset( $atts['width'] ) ? ' style="max-width:' . $atts['width'] . '"' : '';
    668669
     670                ob_start();
    669671                echo '<div class="bpress-search-shortcode"' . $width . '>';
    670672                $this->render_searchbar( $product );
    671673                echo '</div>';
    672             }
    673 
     674
     675                return ob_get_clean();
     676            }
     677
     678            return;
    674679        }
    675680
  • basepress/trunk/readme.txt

    r1991032 r1997170  
    55Requires at least: 4.5
    66Tested up to: 5.0
    7 Stable tag: 2.0.1
     7Stable tag: 2.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140== Changelog ==
    141141
     142= 2.0.2 =
     143* Fixed search bar shortcode which made bar always appear at the top of the page
     144
    142145= 2.0.1 =
    143146* Added option to order articles alphabetically
Note: See TracChangeset for help on using the changeset viewer.