Skip to content

Commit a5a1ef8

Browse files
chore: formatting
1 parent 934fa5f commit a5a1ef8

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

includes/layouts/settings.php

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class="btn btn-outline-primary<?php echo 0 === $index ? ' disabled' : ''; ?>" <?
268268
unset( $schedules['hourly'] );
269269
$schedules = array_merge( array( 'hourly' => $hourly ), $schedules );
270270
}
271-
$standard_schedules = array(
271+
$wp_standard_schedules = array(
272272
'hourly',
273273
'twicedaily',
274274
'daily',
@@ -279,17 +279,25 @@ class="btn btn-outline-primary<?php echo 0 === $index ? ' disabled' : ''; ?>" <?
279279
<?php
280280
$duplicate_schedule = array();
281281
foreach ( $schedules as $slug => $schedule ) :
282-
if ( empty( $schedule['interval'] ) || in_array( $schedule['interval'], $duplicate_schedule, true ) ) {
282+
if (
283+
empty( $schedule['interval'] ) ||
284+
in_array( $schedule['interval'], $duplicate_schedule, true )
285+
) {
283286
continue;
284287
}
285288
$duplicate_schedule[] = $schedule['interval'];
289+
$display_text = esc_html( $schedule['display'] );
286290

287-
$display_text = esc_html( $schedule['display'] );
288-
if ( ! in_array( $slug, $standard_schedules, true ) ) {
291+
if ( ! in_array( $slug, $wp_standard_schedules, true ) ) {
289292
$display_text .= ' ' . esc_html__( '(externally created)', 'feedzy-rss-feeds' );
290293
}
291294
?>
292-
<option value="<?php echo esc_attr( $slug ); ?>"<?php selected( $save_schedule, $slug ); ?>><?php echo esc_html( $display_text ); ?></option>
295+
<option
296+
value="<?php echo esc_attr( $slug ); ?>"
297+
<?php selected( $save_schedule, $slug ); ?>
298+
>
299+
<?php echo esc_html( $display_text ); ?>
300+
</option>
293301
<?php endforeach; ?>
294302
</select>
295303
</div>

0 commit comments

Comments
 (0)