kses store notice

This commit is contained in:
Mike Jolley 2015-07-16 17:06:12 +01:00
parent 7cc0c6044f
commit cbf373ab3c
1 changed files with 6 additions and 3 deletions

View File

@ -423,14 +423,17 @@ if ( ! function_exists( 'woocommerce_demo_store' ) ) {
*
*/
function woocommerce_demo_store() {
if ( !is_store_notice_showing() )
if ( ! is_store_notice_showing() ) {
return;
}
$notice = get_option( 'woocommerce_demo_store_notice' );
if ( empty( $notice ) )
if ( empty( $notice ) ) {
$notice = __( 'This is a demo store for testing purposes — no orders shall be fulfilled.', 'woocommerce' );
}
echo apply_filters( 'woocommerce_demo_store', '<p class="demo_store">' . $notice . '</p>' );
echo apply_filters( 'woocommerce_demo_store', '<p class="demo_store">' . wp_kses_post( $notice ) . '</p>' );
}
}