Skip to content

Commit

Permalink
Update src/xml-sitemaps.php
Browse files Browse the repository at this point in the history
Co-authored-by: Igor <35524806+igorschoester@users.noreply.github.com>
  • Loading branch information
vraja-pro and igorschoester authored Aug 22, 2023
1 parent cdf7ec4 commit c5294ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml-sitemaps.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function handle_submit() {
$this->option->set( 'disable_xml_sitemap_cache', isset( $_POST['disable_xml_sitemap_cache'] ) );
$xml_sitemap_entries = null;
if ( isset( $_POST['xml_sitemap_entries'] ) ) {
$xml_sitemap_entries = intval( \wp_unslash( $_POST['xml_sitemap_entries'] ) );
$xml_sitemap_entries = \intval( \wp_unslash( $_POST['xml_sitemap_entries'] ) );
}
$this->option->set( 'xml_sitemap_entries', $xml_sitemap_entries );
}
Expand Down

0 comments on commit c5294ea

Please sign in to comment.