mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-05 09:19:53 +08:00
Fix escaped html
Fix php error reporting security alert Allow to see mainwp child plugin in plugins search
This commit is contained in:
parent
5907f65e06
commit
7019c798ea
5 changed files with 12 additions and 13 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue