You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, WordPress is not very consistent when it comes to naming files on single site vs. multisite. For example, there's no wp-admin/network/options.php file. But this very options.php is hardcoded in the plugin:
Expectedly, saving SatisPress' settings in multisite won't work and triggers a 404.
Changing the line to this solves it but I'm not sure if it's the right approach: <form action="<?php echo admin_url( 'options.php' ); ?>" method="post">
The text was updated successfully, but these errors were encountered:
I guess that shows how often SatisPress is being used with multisite!
I've usually used a custom action for saving network settings, but if using admin_url() works, let's go with that. Would you like to submit a PR? If so, please throw esc_url() in there, too.
Unfortunately, WordPress is not very consistent when it comes to naming files on single site vs. multisite. For example, there's no
wp-admin/network/options.php
file. But this veryoptions.php
is hardcoded in the plugin:satispress/views/screen-settings.php
Line 49 in 203c878
Expectedly, saving SatisPress' settings in multisite won't work and triggers a 404.
Changing the line to this solves it but I'm not sure if it's the right approach:
<form action="<?php echo admin_url( 'options.php' ); ?>" method="post">
The text was updated successfully, but these errors were encountered: