Skip to content

Commit 6553fff

Browse files
author
h3rby7
committed
Trello#1007 fix event shortcode $att 'details' missing; event_list missing ticketlink; cards wrong count
1 parent 72a4fe5 commit 6553fff

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

yesticket/src/shortcodes/yesticket_events.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public function __construct()
3838

3939
protected function shortCodeArgs($atts)
4040
{
41-
$att = parent::shortCodeArgs($atts);
42-
$att['count'] = 9;
43-
return $att;
41+
$pairs = parent::shortCodeArgs($atts);
42+
$pairs['details'] = 'no';
43+
return \shortcode_atts($pairs, $atts, 'yesticket_events');
4444
}
4545

4646
function render_contents($result, $att)

yesticket/src/shortcodes/yesticket_events_cards.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function __construct()
3737

3838
protected function shortCodeArgs($atts)
3939
{
40-
$att = parent::shortCodeArgs($atts);
41-
$att['details'] = 'no';
42-
return $att;
40+
$pairs = parent::shortCodeArgs($atts);
41+
$pairs['count'] = 9;
42+
return \shortcode_atts($pairs, $atts, 'yesticket_events_cards');
4343
}
4444

4545
function render_contents($result, $att)

yesticket/src/shortcodes/yesticket_events_list.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public function __construct()
3737

3838
protected function shortCodeArgs($atts)
3939
{
40-
$att = parent::shortCodeArgs($atts);
41-
$att['ticketlink'] = 'no';
42-
return $att;
40+
$pairs = parent::shortCodeArgs($atts);
41+
$pairs['ticketlink'] = 'no';
42+
return \shortcode_atts($pairs, $atts, 'yesticket_events_list');
4343
}
4444

4545
function render_contents($result, $att)

yesticket/src/shortcodes/yesticket_slides.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function shortCodeArgs($atts)
5656
'welcome-1' => __('welcome to our', "yesticket"),
5757
'welcome-2' => __('improv theatre show', "yesticket"),
5858
'welcome-3' => __('where everything is made up', "yesticket"),
59-
), $atts);
59+
), $atts, 'yesticket_slides');
6060
}
6161

6262
public function __construct()

yesticket/src/shortcodes/yesticket_testimonials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function shortcode_testimonials($atts)
2525
'count' => 100,
2626
'design' => 'basic',
2727
'details' => 'no',
28-
), $atts);
28+
), $atts, 'yesticket_testimonials');
2929
return Testimonials::getInstance()->get($att);
3030
}
3131

0 commit comments

Comments
 (0)