Fix escaped html

Fix php error reporting security alert
Allow to see mainwp child plugin in plugins search
This commit is contained in:
ruben- 2015-12-12 18:39:23 +01:00
parent 5907f65e06
commit 7019c798ea
5 changed files with 12 additions and 13 deletions

View file

@ -338,7 +338,7 @@ class MainWP_Clone {
$dirparts = '<a href="' . $durl . '">' . $part . DIRECTORY_SEPARATOR . '</a>' . $dirparts;
}
echo '<p>' . esc_html__( '<strong>Current Directory:</strong> <span>' . $dirparts . '</span>', 'mainwp' ) . '</p>';
echo '<p>' . __( '<strong>Current Directory:</strong> <span>' . $dirparts . '</span>', 'mainwp' ) . '</p>';
$quick_dirs = array();
$quick_dirs[] = array( __( 'Site Root', 'mainwp' ), ABSPATH );
$quick_dirs[] = array( __( 'Backup', 'mainwp' ), $backup_dir );
@ -359,7 +359,7 @@ class MainWP_Clone {
}
if ( ! empty( $quick_links ) ) {
echo '<p><strong>' . esc_html__( 'Quick Jump:', 'mainwp' ) . '</strong> ' . esc_html( implode( ' | ', $quick_links ) ) . '</p>';
echo '<p><strong>' . esc_html__( 'Quick Jump:', 'mainwp' ) . '</strong> ' . __( implode( ' | ', $quick_links ) ) . '</p>';
}
$dir_files = scandir( $current_dir );