Fix phpcs complaints in options file
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
// Get categories
|
// Get categories
|
||||||
$cat_list = get_categories();
|
$cat_list = get_categories();
|
||||||
$final_cat_list = array();
|
$final_cat_list = array();
|
||||||
foreach ( $cat_list as $cw_cat ){
|
foreach ( $cat_list as $cw_cat ) {
|
||||||
$termID = $cw_cat->term_id;
|
$termID = $cw_cat->term_id;
|
||||||
$termName = $cw_cat->name;
|
$termName = $cw_cat->name;
|
||||||
|
|
||||||
@ -44,7 +44,6 @@ $cwv3_op_data = array(
|
|||||||
'def' => 'enabled',
|
'def' => 'enabled',
|
||||||
|
|
||||||
),
|
),
|
||||||
|
|
||||||
// jQuery.cookie doesn't allow hour/minutes, so we have to have a specific timeframe
|
// jQuery.cookie doesn't allow hour/minutes, so we have to have a specific timeframe
|
||||||
// in days only.
|
// in days only.
|
||||||
'death' => array(
|
'death' => array(
|
||||||
@ -53,7 +52,6 @@ $cwv3_op_data = array(
|
|||||||
'type' => 'number',
|
'type' => 'number',
|
||||||
'def' => '1',
|
'def' => '1',
|
||||||
),
|
),
|
||||||
|
|
||||||
// Dialog Options
|
// Dialog Options
|
||||||
'd_title' => array(
|
'd_title' => array(
|
||||||
'name' => __( 'Dialog Title', 'cwv3' ),
|
'name' => __( 'Dialog Title', 'cwv3' ),
|
||||||
@ -69,7 +67,7 @@ $cwv3_op_data = array(
|
|||||||
'settings' => array(
|
'settings' => array(
|
||||||
'teeny' => true,
|
'teeny' => true,
|
||||||
'media_buttons' => false,
|
'media_buttons' => false,
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
'exit_txt' => array(
|
'exit_txt' => array(
|
||||||
'name' => __( 'Exit Text', 'cwv3' ),
|
'name' => __( 'Exit Text', 'cwv3' ),
|
||||||
@ -126,7 +124,7 @@ $cwv3_op_data = array(
|
|||||||
'settings' => array(
|
'settings' => array(
|
||||||
'media_buttons' => false,
|
'media_buttons' => false,
|
||||||
'teeny' => true,
|
'teeny' => true,
|
||||||
)
|
),
|
||||||
),
|
),
|
||||||
// Advanced Options
|
// Advanced Options
|
||||||
//// Styling Options
|
//// Styling Options
|
||||||
@ -159,7 +157,6 @@ $cwv3_op_data = array(
|
|||||||
'desc' => __( 'Select categories that you would like to restrict with the dialog.', 'cwv3' ),
|
'desc' => __( 'Select categories that you would like to restrict with the dialog.', 'cwv3' ),
|
||||||
'type' => 'check',
|
'type' => 'check',
|
||||||
'fields' => $final_cat_list,
|
'fields' => $final_cat_list,
|
||||||
)
|
),
|
||||||
)
|
),
|
||||||
);
|
);
|
||||||
?>
|
|
Reference in New Issue
Block a user