wp/wp-content/plugins/portfolio/includes/class-prtfl-settings.php
changeset 23 417f20492bf7
parent 21 48c4eec2b7e6
--- a/wp/wp-content/plugins/portfolio/includes/class-prtfl-settings.php	Fri Sep 05 18:52:52 2025 +0200
+++ b/wp/wp-content/plugins/portfolio/includes/class-prtfl-settings.php	Mon Sep 08 19:44:41 2025 +0200
@@ -207,7 +207,11 @@
 				$this->options['slug'] = sanitize_text_field( wp_unslash( $_POST['prtfl_slug'] ) );
 
 				if ( is_plugin_active( 'sender-pro/sender-pro.php' ) ) {
-					$sndr_options = get_option( 'sndr_options' );
+					if ( is_multisite() ) {
+						$sndr_options = get_site_option( 'sndr_options' );
+					} else {
+						$sndr_options = get_option( 'sndr_options' );
+					}
 					/* mailout when publishing quote */
 					if ( ! empty( $_POST['sndr_distribution_select'] ) && ! empty( $_POST['sndr_templates_select'] ) && ! empty( $_POST['sndr_priority'] ) ) {
 						if ( isset( $_POST['prtfl_sndr_mailout'] ) ) {
@@ -311,7 +315,11 @@
 		 */
 		public function tab_settings() {
 			if ( is_plugin_active( 'sender-pro/sender-pro.php' ) ) {
-				$sndr_options = get_option( 'sndr_options' );
+				if ( is_multisite() ) {
+					$sndr_options = get_site_option( 'sndr_options' );
+				} else {
+					$sndr_options = get_option( 'sndr_options' );
+				}
 			}
 			?>
 			<h3 class="bws_tab_label"><?php esc_html_e( 'Portfolio Settings', 'portfolio' ); ?></h3>