From 6c9194abc0dc6d435577210d119aeb924af72ec6 Mon Sep 17 00:00:00 2001 From: MickeyKay Date: Tue, 11 Nov 2014 12:20:11 -0800 Subject: [PATCH] Add title att to button shortcode --- includes/shortcodes/shortcodes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/shortcodes/shortcodes.php b/includes/shortcodes/shortcodes.php index c6c3e15..5f6adcb 100644 --- a/includes/shortcodes/shortcodes.php +++ b/includes/shortcodes/shortcodes.php @@ -53,10 +53,11 @@ add_shortcode( 'col', 'trestle_column' ); */ function trestle_button( $atts, $content = null ) { extract( shortcode_atts( array( - 'href' => '#', + 'href' => '#', + 'title' => '', 'class' => '', ), $atts ) ); - return '' . do_shortcode( $content ) . ''; + return '' . do_shortcode( $content ) . ''; } add_shortcode( 'button', 'trestle_button' );