Skip to content

Commit

Permalink
PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Oct 25, 2023
1 parent b33c02b commit 3ef3e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/my-calendar-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Generate stylesheet editor
*/
function my_calendar_style_edit() {
$message = '';
$message = '';
if ( ! current_user_can( 'mc_edit_styles' ) ) {
echo wp_kses_post( '<p>' . __( 'You do not have permission to customize styles on this site.', 'my-calendar' ) . '</p>' );

Expand All @@ -29,7 +29,7 @@ function my_calendar_style_edit() {
if ( ! wp_verify_nonce( $nonce, 'my-calendar-nonce' ) ) {
wp_die( 'My Calendar: Security check failed' );
}

$mc_show_css = ( empty( $_POST['mc_show_css'] ) ) ? '' : stripcslashes( sanitize_text_field( $_POST['mc_show_css'] ) );
mc_update_option( 'show_css', $mc_show_css );
$use_styles = ( empty( $_POST['use_styles'] ) ) ? '' : 'true';
Expand Down

0 comments on commit 3ef3e67

Please sign in to comment.