Regular filtration special expressions

/**[ Filter and upload special emoticons Symbolic]

* @param $str
* @return mixed
*/
function filter_emoji($str)
{
$str = preg_replace_callback( //Perform a regular expression search and replace with a callback
‘/./u’,
function (array $match) {
return strlen($match[0]) >= 4?'': $match[0];
}
,
$str);

return $str;
}

/**[Filter uploading special emoticons]

* @param $str
* @return mixed
*/
function filter_emoji($str)
{
$str = preg_replace_callback( //Perform a regular expression search and replace with a callback
‘/./u’,
function (array $match) {
return strlen($match[0]) >= 4?'': $match[0];
}
,
$str);

return $str;
}

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5478 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.