- Status
- Offen
- Gemeldet für
- WPML String Translation 3.2.8
- Themen-Tags
- Bug
Übersicht über das Problem
Must-Use (MU) Plugins sind auf der Seite WPML > Theme- und Plugin-Lokalisierung nicht für das Durchsuchen von Strings verfügbar.
Problemumgehung
Bitte stellen Sie sicher, dass Sie über ein vollständiges Backup Ihrer Website verfügen, bevor Sie fortfahren.
- Öffnen Sie die Datei …/wp-content/plugins/wpml-string-translation/classes/menus/theme-plugin-localization-ui/class-st-plugin-localization-ui-utils.php.
- Suchen Sie nach Zeile 6.
- Ersetzen Sie:
/** @return array */ public function get_plugins() { $plugins = get_plugins(); $mu_plugins = wp_get_mu_plugins(); if ( $mu_plugins ) { foreach ( $mu_plugins as $p ) { $plugin_file = basename( $p ); $plugins[ $plugin_file ] = array( 'Name' => 'MU :: ' . $plugin_file ); } } return $plugins; } - Durch:
public function get_plugins() { $plugins = get_plugins(); $mu_plugins = wp_get_mu_plugins(); if ( $mu_plugins ) { foreach ( $mu_plugins as $p ) { $plugin_file = basename( $p ); $plugins[ $plugin_file ] = array( 'Name' => 'MU :: ' . $plugin_file ); } //Workaround $folders = scandir(WPMU_PLUGIN_DIR); $folders = array_diff($folders, array('.', '..')); foreach($folders as $folder) { if (is_dir(WPMU_PLUGIN_DIR.'/'.$folder)) { $plugin_file = basename( $folder ); $plugins[ $plugin_file ] = array( 'Name' => 'MU :: ' . $plugin_file ); } } } return $plugins; }