Skip to content

Commit

Permalink
Fix deprecated function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Feb 7, 2024
1 parent 5883988 commit b788b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
*
* @since 6.0.0
*/
function yksemeProcessSnippet( $list=false, $submit_text ) {
$submit_text = ( isset( $submit_text ) ) ? 'submit="' . $submit_text . '"' : '';
function yksemeProcessSnippet( $list=false, $submit_text='' ) {
$submit_text = ( empty( $submit_text ) ) ? '' : 'submit="' . $submit_text . '"';
return do_shortcode( '[yikes-mailchimp form="' . $list . '" ' . $submit_text . ']' );
}

Expand Down

0 comments on commit b788b00

Please sign in to comment.