This commit is contained in:
Ben Goldsworthy 2021-01-23 13:26:37 +00:00
parent abd8c65ee7
commit d80cbb4c32
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ get_header(); ?>
<div class="entry-content tile" id="settings">
<h3 style="margin-bottom: 14px;" class="subheading">Settings</h3>
<form action="/experience" id="settings" method="POST">
<?php echo wp_kses_post(wp_nonce_field( 'experience', 'settings_nonce' )); ?>
<?php echo wp_kses_post( wp_nonce_field( 'experience', 'settings_nonce' ) ); ?>
<input class="checkbox" type="checkbox" id="toplevel" value="toplevel" checked="checked">
<label for="toplevel">Display only top-level organisations</label>
<br>

View File

@ -168,13 +168,13 @@
// phpcs:disable WordPress.CodeAnalysis.AssignmentInCondition
$i = 1;
while ( $section_title = get_post_meta( get_the_ID(), 'ToC' . $i, true ) ) :
?>
?>
<li>
<a href="#section-<?php echo esc_attr( $i++ ); ?>">
<?php echo wp_kses_post( $section_title ); ?>
</a>
</li>
<?php
<?php
endwhile;
// phpcs:enable
?>