Skip to content

Commit

Permalink
deploy: 3bed33f
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Jan 6, 2025
1 parent d2a4cf0 commit 44a327c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mc_after_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="my-calendar-settings.php.html">my-calendar-settings.php</a>, <a href="my-calendar-settings.php.html#line2060">line 2060</a>
<a href="my-calendar-settings.php.html">my-calendar-settings.php</a>, <a href="my-calendar-settings.php.html#line2065">line 2065</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion mc_save_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="my-calendar-settings.php.html">my-calendar-settings.php</a>, <a href="my-calendar-settings.php.html#line643">line 643</a>
<a href="my-calendar-settings.php.html">my-calendar-settings.php</a>, <a href="my-calendar-settings.php.html#line648">line 648</a>
</li></ul></dd>


Expand Down
2 changes: 1 addition & 1 deletion mc_settings_section_links.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h5>Parameters:</h5>

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="my-calendar-settings.php.html">my-calendar-settings.php</a>, <a href="my-calendar-settings.php.html#line691">line 691</a>
<a href="my-calendar-settings.php.html">my-calendar-settings.php</a>, <a href="my-calendar-settings.php.html#line696">line 696</a>
</li></ul></dd>


Expand Down
5 changes: 5 additions & 0 deletions my-calendar-settings.php.html
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,12 @@
// This is the &lt;title> element, and should not contain HTML.
$options['event_title_template'] = $post['mc_event_title_template'];
foreach ( $post as $key => $value ) {
$nonce = $_REQUEST['_wpnonce'];
if ( ! wp_verify_nonce( $nonce, 'my-calendar-nonce' ) ) {
wp_die( 'My Calendar: Security check failed' );
}
// If POST is set, change the sanitizing for settings in this group.
// The POST array was sanitized before being sent, but that sanitizing strips HTML.
$post[ $key ] = isset( $_POST[ $key ] ) ? wp_kses_post( wp_unslash( $_POST[ $key ] ) ) : $value;
}
$options['heading_text'] = isset( $_POST['mc_heading_text'] ) ? wp_kses_post( wp_unslash( $_POST['mc_heading_text'] ) ) : $post['mc_heading_text'];
Expand Down

0 comments on commit 44a327c

Please sign in to comment.