@@ 2114-2127 (lines=14) @@ | ||
2111 | ||
2112 | $deactivated_modules = get_site_option( 'wordpoints_breaking_deactivated_modules' ); |
|
2113 | ||
2114 | if ( is_array( $deactivated_modules ) ) { |
|
2115 | wordpoints_show_admin_error( |
|
2116 | sprintf( |
|
2117 | // translators: 1. Plugin version; 2. List of extensions. |
|
2118 | __( 'WordPoints has deactivated the following extensions because of incompatibilities with WordPoints %1$s: %2$s', 'wordpoints' ) |
|
2119 | , WORDPOINTS_VERSION |
|
2120 | , implode( ', ', $deactivated_modules ) |
|
2121 | ) |
|
2122 | , array( |
|
2123 | 'dismissible' => true, |
|
2124 | 'option' => 'wordpoints_breaking_deactivated_modules', |
|
2125 | ) |
|
2126 | ); |
|
2127 | } |
|
2128 | ||
2129 | $incompatible_modules = get_site_option( 'wordpoints_incompatible_modules' ); |
|
2130 | ||
@@ 2131-2144 (lines=14) @@ | ||
2128 | ||
2129 | $incompatible_modules = get_site_option( 'wordpoints_incompatible_modules' ); |
|
2130 | ||
2131 | if ( is_array( $incompatible_modules ) ) { |
|
2132 | wordpoints_show_admin_error( |
|
2133 | sprintf( |
|
2134 | // translators: 1. Plugin version; 2. List of extensions. |
|
2135 | __( 'WordPoints has deactivated the following network-active extensions because of incompatibilities with WordPoints %1$s: %2$s', 'wordpoints' ) |
|
2136 | , WORDPOINTS_VERSION |
|
2137 | , implode( ', ', $incompatible_modules ) |
|
2138 | ) |
|
2139 | , array( |
|
2140 | 'dismissible' => true, |
|
2141 | 'option' => 'wordpoints_incompatible_modules', |
|
2142 | ) |
|
2143 | ); |
|
2144 | } |
|
2145 | ||
2146 | } else { |
|
2147 | ||
@@ 2146-2165 (lines=20) @@ | ||
2143 | ); |
|
2144 | } |
|
2145 | ||
2146 | } else { |
|
2147 | ||
2148 | $incompatible_modules = get_option( 'wordpoints_incompatible_modules' ); |
|
2149 | ||
2150 | if ( is_array( $incompatible_modules ) ) { |
|
2151 | wordpoints_show_admin_error( |
|
2152 | sprintf( |
|
2153 | // translators: 1. Plugin version; 2. List of extensions. |
|
2154 | __( 'WordPoints has deactivated the following extensions on this site because of incompatibilities with WordPoints %1$s: %2$s', 'wordpoints' ) |
|
2155 | , WORDPOINTS_VERSION |
|
2156 | , implode( ', ', $incompatible_modules ) |
|
2157 | ) |
|
2158 | , array( |
|
2159 | 'dismissible' => true, |
|
2160 | 'option' => 'wordpoints_incompatible_modules', |
|
2161 | ) |
|
2162 | ); |
|
2163 | } |
|
2164 | ||
2165 | } // End if ( is_network_admin() ) else. |
|
2166 | ||
2167 | } // End if ( user can activate modules ). |
|
2168 |