Plugin Directory

Changeset 3468004


Ignore:
Timestamp:
02/23/2026 08:26:40 PM (5 weeks ago)
Author:
davidfcarr
Message:

Fix RSVP guest block

Location:
rsvpmaker
Files:
1526 added
6 edited

Legend:

Unmodified
Added
Removed
  • rsvpmaker/trunk/README.txt

    r3465199 r3468004  
    99Requires at least: 5.0
    1010Tested up to: 6.9
    11 Stable tag: 11.8
     11Stable tag: 11.8.1
    1212
    1313Event and email marketing. Register guests and collect payment by PayPal or Stripe. Send invitations and newsletters.
  • rsvpmaker/trunk/admin/build/formguests/render.php

    r3465199 r3468004  
    11<div <?php echo get_block_wrapper_attributes(); ?>>
    22<?php
    3 echo rsvp_form_select($attributes, $content);
     3echo rsvp_form_guests($attributes, $content);
    44?>
    55</div>
  • rsvpmaker/trunk/admin/src/formguests/render.php

    r3465199 r3468004  
    11<div <?php echo get_block_wrapper_attributes(); ?>>
    22<?php
    3 echo rsvp_form_select($attributes, $content);
     3echo rsvp_form_guests($attributes, $content);
    44?>
    55</div>
  • rsvpmaker/trunk/rsvpmaker-email.php

    r3465199 r3468004  
    11011101    else
    11021102        $rsvpmailer_default_block_template = get_rsvpmailer_default_block_template();
    1103     if(!empty($rsvpmailer_default_block_template))
     1103    if(!empty($rsvpmailer_default_block_template))
    11041104        {
    1105         if(strpos($rsvpmailer_default_block_template, '<!-- wp:paragraph {"placeholder"')) {
    1106         $content = preg_replace(
    1107             '/<!--\s*wp:paragraph\s+{"placeholder":[^}]*}-->.*?<!--\s*\/wp:paragraph\s*-->/s',
    1108             $content,
    1109             $rsvpmailer_default_block_template,
    1110             1
    1111         );
    1112         }
    1113         else {
    11141105        $temp = preg_replace('/<div[^>]+class="wp-block-rsvpmaker-emailcontent"[^>]*>/',"$0 <!--content-->",$rsvpmailer_default_block_template, 1);
    11151106        $content = str_replace('<!--content-->',$content,$temp);
    1116         }
    11171107        }       
    11181108    return $content;
     
    11351125                $content = '';
    11361126                if(!empty($_GET['excerpt'])) {
    1137                     $content .= sprintf("<!-- wp:heading -->\n".'<h2 class="wp-block-heading"><a class="headline-link" href="%s" class="article">%s</a></h2>'."\n<!-- /wp:heading -->\n",$permalink,$post->post_title);
     1127                    $content .= sprintf("<!-- wp:heading -->\n".'<h2 class="wp-block-heading"><a class="headline-link article" href="%s">%s</a></h2>'."\n<!-- /wp:heading -->\n",$permalink,$post->post_title);
    11381128                    $content .= rsvpmail_post_excerpt($post);
    11391129                }
     
    30783068        $event_embed["subject"] = $event_post->post_title;
    30793069        $event_embed["content"] = sprintf('<!-- wp:heading -->
    3080 <h2 class="email_event"><a href="%s">%s</a></h2>
     3070<h2 class="wp-block-heading"><a href="%s">%s</a></h2>
    30813071<!-- /wp:heading -->'."\n",get_permalink($post_id),apply_filters('the_title',$event_post->post_title));
    30823072        if($event_post->post_type == 'rsvpmaker')
  • rsvpmaker/trunk/rsvpmaker-postmark.php

    r3419017 r3468004  
    270270        }
    271271    }
     272    return count($sent);
    272273}
    273274
     
    282283    error_log('rsvpmaker_postmark_chunked_batches '.sizeof($results));
    283284    if($results) {
    284         $batchrow = $results[0];
    285         $doneafterthis = sizeof($results) == 1;
    286         $recipients = unserialize($batchrow->meta_value);
     285    foreach($results as $index => $batchrow) {
     286    if(10 == $index)
     287        continue;
     288    $doneafterthis = sizeof($results) - $index == 1;
     289    $recipients = unserialize($batchrow->meta_value);
     290        //returns number sent, 'duplicate message' or null
     291    $batch_result = rsvpmaker_postmark_broadcast($recipients,$batchrow->post_id);
     292    if($batch_result)
     293    {
    287294        $sql = $wpdb->prepare("update %i set meta_key='rsvprelay_to_batch_done' where meta_id=%d",$wpdb->postmeta,$batchrow->meta_id);
    288295        error_log($sql);
    289         $wpdb->query($sql);
    290         $log .= rsvpmaker_postmark_broadcast($recipients,$batchrow->post_id);
     296    $wpdb->query($sql);
     297    }
    291298        $postmark_options = get_rsvpmaker_postmark_options();
    292299        if(!empty($postmark_options['notify_batch_send']))
     
    306313            wp_clear_scheduled_hook('rsvpmaker_postmark_chunked_batches');
    307314        }
     315   
     316    }
    308317    }
    309318    else {
  • rsvpmaker/trunk/rsvpmaker.php

    r3465199 r3468004  
    1111* License:           GPL v2 or later
    1212* License URI:       https://www.gnu.org/licenses/gpl-2.0.html
    13 * Version: 11.8
     13* Version: 11.8.1
    1414*/
    1515
    1616function get_rsvpversion() {
    17     return '11.8';
     17    return '11.8.1';
    1818}
    1919
Note: See TracChangeset for help on using the changeset viewer.