removed un-necessary esc_html

This commit is contained in:
corsonr 2016-07-20 14:43:41 +02:00
parent c2eb7f50ca
commit b825b0b943
1 changed files with 2 additions and 2 deletions

View File

@ -350,10 +350,10 @@ global $wpdb;
<td data-export-label="WC Database Prefix"><?php _e( 'Database Prefix', 'woocommerce' ); ?></td>
<td class="help">&nbsp;</td>
<td><?php
if ( strlen( esc_html( $wpdb->prefix ) ) > 20 ) {
if ( strlen( $wpdb->prefix ) > 20 ) {
echo '<mark class="error"><span class="dashicons dashicons-warning"></span> ' . sprintf( __( '%s - We recommend using a prefix with less than 20 characters. See: %s', 'woocommerce' ), esc_html( $wpdb->prefix ), '<a href="https://docs.woocommerce.com/document/completed-order-email-doesnt-contain-download-links/#section-2" target="_blank">' . __( 'How to update your database table prefix', 'woocommerce' ) . '</a>' ) . '</mark>';
} else {
echo '<mark class="yes">' . esc_html( esc_html( $wpdb->prefix ) ) . '</mark>';
echo '<mark class="yes">' . esc_html( $wpdb->prefix ) . '</mark>';
}
?>
</td>