parent
25ea52dec1
commit
734bde83f9
|
@ -30,7 +30,7 @@ class WC_Breadcrumb {
|
||||||
*/
|
*/
|
||||||
public function add_crumb( $name, $link = '' ) {
|
public function add_crumb( $name, $link = '' ) {
|
||||||
$this->crumbs[] = array(
|
$this->crumbs[] = array(
|
||||||
$name,
|
strip_tags( $name ),
|
||||||
$link
|
$link
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ function wc_format_list_of_items( $items ) {
|
||||||
$item_string = '';
|
$item_string = '';
|
||||||
|
|
||||||
foreach ( $items as $key => $item ) {
|
foreach ( $items as $key => $item ) {
|
||||||
$item_string .= sprintf( _x( '“%s”', 'Item name in quotes', 'woocommerce' ), $item );
|
$item_string .= sprintf( _x( '“%s”', 'Item name in quotes', 'woocommerce' ), strip_tags( $item ) );
|
||||||
|
|
||||||
if ( $key + 2 === sizeof( $items ) ) {
|
if ( $key + 2 === sizeof( $items ) ) {
|
||||||
$item_string .= ' ' . __( 'and', 'woocommerce' ) . ' ';
|
$item_string .= ' ' . __( 'and', 'woocommerce' ) . ' ';
|
||||||
|
|
Loading…
Reference in New Issue