Skip to content

Commit

Permalink
Ignore a few more.
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Dec 15, 2019
1 parent 596aa76 commit ee89528
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/my-calendar-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,8 @@ function mc_ajax_add_date() {
$format = array( '%d', '%s', '%s', '%d' );
$data = array(
'occur_event_id' => $event_id,
'occur_begin' => date( 'Y-m-d H:i:s', $begin ),
'occur_end' => date( 'Y-m-d H:i:s', $end ),
'occur_begin' => date( 'Y-m-d H:i:s', $begin ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
'occur_end' => date( 'Y-m-d H:i:s', $end ), // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
'occur_group_id' => $group_id,
);
$result = $wpdb->insert( my_calendar_event_table(), $data, $format );
Expand Down
2 changes: 1 addition & 1 deletion src/my-calendar-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ function mc_migrate_db() {
// assign endtimes to all events.
if ( '00:00:00' === $event->event_endtime && '00:00:00' !== $event->event_time ) {
$event->event_endtime = date( 'H:i:s', strtotime( "$event->event_time +1 hour" ) ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
mc_flag_event( $event->event_id, $event->event_endtime );
mc_flag_event( $event->event_id, $event->event_endtime );
}
// Set up category relationships if missing.
$cats = $wpdb->get_results( $wpdb->prepare( 'SELECT category_id FROM ' . my_calendar_category_relationships_table() . ' WHERE event_id = %d', $event->event_id ) ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
Expand Down
4 changes: 2 additions & 2 deletions src/my-calendar-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function my_calendar_import() {
$event_ids = array();
$events_results = false;
foreach ( $events as $key ) {
$endtime = ( '00:00:00' === $key['event_time'] ) ? '00:00:00' : date( 'H:i:s', strtotime( "$key[event_time] +1 hour" ) );
$endtime = ( '00:00:00' === $key['event_time'] ) ? '00:00:00' : date( 'H:i:s', strtotime( "$key[event_time] +1 hour" ) ); // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
$data = array(
'event_title' => $key['event_title'],
'event_desc' => $key['event_desc'],
Expand Down Expand Up @@ -648,7 +648,7 @@ function mc_remote_db() {
$time_format = ( '' === get_option( 'mc_time_format', '' ) ) ? date_i18n( get_option( 'time_format' ) ) : date_i18n( get_option( 'mc_time_format' ) );
$week_format = ( '' === get_option( 'mc_week_format', '' ) ) ? date_i18n( 'M j, \'y' ) : date_i18n( get_option( 'mc_week_format' ) );
$date_format = ( '' === get_option( 'mc_date_format', '' ) ) ? date_i18n( get_option( 'date_format' ) ) : date_i18n( get_option( 'mc_date_format' ) );
$tomorrow = date( 'j' ) + 1;
$tomorrow = date( 'j' ) + 1; // phpcs:ignore WordPress.DateTime.RestrictedFunctions.date_date
$multi_format = ( '' === get_option( 'mc_multidate_format', '' ) ) ? date_i18n( str_replace( '%d', $tomorrow, 'F j-%d, Y' ) ) : date_i18n( str_replace( '%j', $tomorrow, get_option( 'mc_multidate_format' ) ) );
?>
<li><?php mc_settings_field( 'mc_date_format', __( 'Primary Date Format', 'my-calendar' ), '', $date_format ); ?></li>
Expand Down

0 comments on commit ee89528

Please sign in to comment.