get_col( "SELECT DISTINCT context FROM {$wpdb->prefix}icl_strings" ); foreach ( $contexts as $context ) { if ( strpos( $context, ' (removed)') > 0 ) { $fix_context = 'theme ' . str_replace( ' (removed)', '', $context ); $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->prefix}icl_strings SET context = %s WHERE context = %s", $fix_context, $context ) ); } } } fix_removed_contexts_from_3_2_upgrade( ); function show_automatic_text_domain_checkbox( ) { global $sitepress_settings; ?>
/> '; $doing_it_wrong .= __('Internationalization: You’re probably doing it wrong', 'wpml-string-translation'); $doing_it_wrong .= ''; ?>


get_theme_localization_stats(); $theme_requires_rescan = $local->does_theme_require_rescan(); $plugin_localization_stats = $local->get_plugin_localization_stats(); $plugin_wrong_localization_stats = $local->get_wrong_plugin_localization_stats(); $theme_localization_domains = icl_get_sub_setting( 'st', 'theme_localization_domains' ); ?>

> > >
 
' . __( 'no domain', 'wpml-string-translation' ) . ''; ?>

   

"/>


'MU :: ' . $pfile ); $mu_plugins_base[ $pfile ] = true; } $wpmu_sitewide_plugins = (array) maybe_unserialize( get_site_option( 'active_sitewide_plugins' ) ); ?>
$plugin ): ?> get_most_popular_domain ( $plugin_id ); if ( isset( $plugin_localization_stats[ $plugin_id ][ $domain_name ] ) ) { $_tmpcomp = $plugin_localization_stats[ $plugin_id ][ $domain_name ][ 'complete' ]; $_tmpinco = $plugin_localization_stats[ $plugin_id ][ $domain_name ][ 'incomplete' ]; $_tmptotal = $_tmpcomp + $_tmpinco; $_tmplink = true; } //TODO: [WPML 3.2.1] If `isset( $plugin_localization_stats[ $plugin_id ][ $domain_name ] ) === false` we should probably remove the data from `'st' => 'plugin_localization_domains'` } $is_mu_plugin = false; if ( in_array( $file, $active_plugins ) ) { $plugin_active_status = __( 'Yes', 'wpml-string-translation' ); } elseif ( isset( $wpmu_sitewide_plugins[ $file ] ) ) { $plugin_active_status = __( 'Network', 'wpml-string-translation' ); } elseif ( isset( $mu_plugins_base[ $file ] ) ) { $plugin_active_status = __( 'MU', 'wpml-string-translation' ); $is_mu_plugin = true; } else { $plugin_active_status = __( 'No', 'wpml-string-translation' ); } // check for plugins with wrong/old contexts $old_plugin_context = 'plugin ' . dirname( $plugin_id ); $requires_update = isset( $plugin_wrong_localization_stats[ $old_plugin_context ] ); if ( $requires_update ) { // Unset it so we are then left with the plugins that are no longer installed. unset( $plugin_wrong_localization_stats[ $old_plugin_context ] ); } ?> >
   
   

"/>