Skip to content

Commit

Permalink
chore: remove deprecated Campaigns methods (#1498)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoo authored Aug 17, 2023
1 parent f4b6faf commit 2a722c1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,25 +311,6 @@ protected static function render_donate_form_input() {
return ob_get_clean();
}

/**
* Render Client ID hidden form input.
*/
protected static function render_client_id_form_input() {
if ( class_exists( 'Newspack_Popups_Segmentation' ) ) {
$client_id = Newspack_Popups_Segmentation::NEWSPACK_SEGMENTATION_CID_NAME;
ob_start();
?>
<input
name="cid"
type="hidden"
value="CLIENT_ID(<?php echo esc_attr( $client_id ); ?>)"
data-amp-replace="CLIENT_ID"
/>
<?php
return ob_get_clean();
}
}

/**
* Render the block HTML.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ private static function render_footer( $attributes ) {
<?php if ( $campaign ) : ?>
<input type='hidden' name='campaign' value='<?php echo esc_attr( $campaign ); ?>' />
<?php endif; ?>
<?php echo self::render_client_id_form_input(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

<?php
return ob_get_clean();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ class="wpbnbd__button <?php echo $intial_selected_frequency === $frequency_slug
<?php echo self::render_streamlined_payment_ui( $attributes ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<input data-is-streamlined-input-amount type="hidden" name="" value="0">
<input type="hidden" name="<?php echo esc_attr( self::FREQUENCY_PARAM ); ?>" value="<?php echo esc_attr( $intial_selected_frequency ); ?>">
<?php echo self::render_client_id_form_input(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</div>
</form>
<?php endif; ?>
Expand Down

0 comments on commit 2a722c1

Please sign in to comment.