Skip to content

Commit

Permalink
Update wp-to-twitter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Apr 14, 2024
1 parent ffdb170 commit 4992529
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/wp-to-twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1459,10 +1459,10 @@ function wpt_add_twitter_inner_box( $post ) {
if ( function_exists( 'wpt_pro_exists' ) && wpt_pro_exists() ) {
?>
<div id="wpt_set_tweet_time">
<?php
$datavalue = gmdate( 'Y-m-d', current_time( 'timestamp' ) ); // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
$timevalue = date_i18n( 'h:s a', current_time( 'timestamp' ) + 3600 ); // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
?>
<?php
$datavalue = gmdate( 'Y-m-d', current_time( 'timestamp' ) ); // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
$timevalue = date_i18n( 'h:s a', current_time( 'timestamp' ) + 3600 ); // phpcs:ignore WordPress.DateTime.CurrentTimeTimestamp.Requested
?>
<div class="wpt-date-field">
<label for='wpt_date'><?php _e( 'Date', 'wp-to-twitter' ); ?></label>
<input type='date' value='' class='wpt_date date' name='wpt_datetime' id='wpt_date' data-value='<?php echo $datavalue; ?>' /><br/>
Expand All @@ -1472,9 +1472,9 @@ function wpt_add_twitter_inner_box( $post ) {
<input type='time' value='<?php echo $timevalue; ?>' class='wpt_time time' name='wpt_datetime' id='wpt_time'/>
</div>
</div>
<?php
}
?>
<?php
}
?>
</div>
<div class='wpt_log' aria-live='assertive'></div>
<?php
Expand Down

0 comments on commit 4992529

Please sign in to comment.