This commit is contained in:
Javier Casares 2026-08-18 10:48:13 +00:00
commit 5589c54b9b
13 changed files with 138 additions and 58 deletions

View file

@ -107,7 +107,7 @@ $compat_warnings = 0;
sprintf(
/* translators: %s: settings URL. */
__( 'ROBOTSTXT Manager is not configured yet. <a href="%s">Set the Store URL and API key</a> to see your plugin catalog.', 'robotstxt-manager' ),
esc_url( admin_url( 'admin.php?page=' . Robotstxt_Manager_Settings::PAGE_SLUG ) )
esc_url( ( is_multisite() ? network_admin_url( 'admin.php?page=' . Robotstxt_Manager_Settings::PAGE_SLUG ) : admin_url( 'admin.php?page=' . Robotstxt_Manager_Settings::PAGE_SLUG ) ) )
)
);
?>

View file

@ -12,9 +12,9 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="wrap">
<h1><?php esc_html_e( 'Manager (by ROBOTSTXT) — Settings', 'robotstxt-manager' ); ?></h1>
<?php settings_errors(); ?>
<form method="post" action="<?php echo esc_url( admin_url( 'options.php' ) ); ?>">
<form method="post" action="">
<?php
settings_fields( Robotstxt_Manager_Settings::OPTION_GROUP );
wp_nonce_field( 'robotstxt_manager_settings_group', 'robotstxt_manager_settings_group_nonce' );
do_settings_sections( Robotstxt_Manager_Settings::PAGE_SLUG );
submit_button();
?>