Fixed that flags do not show with WPML plugin
This commit is contained in:
parent
49edd7c2f6
commit
58d7d9b792
|
|
@ -235,6 +235,23 @@ if ( ! function_exists( 'understrap_kses_title' ) ) {
|
|||
}
|
||||
} // End of if function_exists( 'understrap_kses_title' ).
|
||||
|
||||
// Add the 'data' protocol to the array of allowed protocols
|
||||
add_filter( 'kses_allowed_protocols' , 'upderstrap_allow_data_protocol' );
|
||||
|
||||
if ( ! function_exists( 'upderstrap_allow_data_protocol' ) ) {
|
||||
/**
|
||||
* Add 'data' protocol to the array of allowed protocols
|
||||
*
|
||||
* @param string[] Array of allowed protocols e.g. 'http', 'ftp', 'tel', and more.
|
||||
* @return Filters the list of protocols allowed in HTML attributes.
|
||||
*/
|
||||
function upderstrap_allow_data_protocol( $protocols ) {
|
||||
array_push( $protocols, 'data' );
|
||||
|
||||
return $protocols;
|
||||
}
|
||||
} // End of if function_exists( 'upderstrap_allow_data_protocol' ).
|
||||
|
||||
if ( ! function_exists( 'understrap_hide_posted_by' ) ) {
|
||||
/**
|
||||
* Hides the posted by markup in `understrap_posted_on()`.
|
||||
|
|
|
|||
Loading…
Reference in New Issue