From 9ef91c2f0c07d2b98a8a3584f04ac5ee544c2785 Mon Sep 17 00:00:00 2001 From: Bearded Avenger Date: Wed, 10 Jun 2015 19:13:55 -0500 Subject: [PATCH] option to modify "entries found" text --- public/includes/class.shortcode.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/public/includes/class.shortcode.php b/public/includes/class.shortcode.php index 2079ed0..d41b953 100644 --- a/public/includes/class.shortcode.php +++ b/public/includes/class.shortcode.php @@ -10,23 +10,30 @@ public function __construct(){ public function shortcode( $atts, $content = null ) { $defaults = array( - 'type' => 'posts' + 'type' => 'posts', + 'results' => __('entries found','wp-search') ); $atts = shortcode_atts( $defaults, $atts ); + $results_text = $atts['results'] ? $atts['results'] : false; + ob_start(); ?>