wordpress如何禁止加载s.w.org

/, 未分类/wordpress如何禁止加载s.w.org

wordpress如何禁止加载s.w.org

新开淘宝店铺,欢迎你的光临欢迎选购 淘宝店铺

 

wordpress禁止加载s.w.org的步骤:
function disable_emoji9s_tinymce($plugins) { if (is_array($plugins)) { return array_diff($plugins, array( ‘wpemoji’ )); } else { return array(); }}
function custom_gitsmilie_src($old, $img) { return get_stylesheet_directory_uri() . ‘/img/smilies/’ . $img;}
function init_gitsmilie() { global $wpsmiliestrans; $wpsmiliestrans = array(
‘:mrgreen:’ => ‘icon_mrgreen.gif’,
‘:neutral:’ => ‘icon_neutral.gif’,
‘:twisted:’ => ‘icon_twisted.gif’,
‘:arrow:’ => ‘icon_arrow.gif’,
‘:shock:’ => ‘icon_eek.gif’,
‘:smile:’ => ‘icon_smile.gif’,
‘:???:’ => ‘icon_confused.gif’,
‘:cool:’ => ‘icon_cool.gif’,
‘:evil:’ => ‘icon_evil.gif’,
‘:grin:’ => ‘icon_biggrin.gif’,
‘:idea:’ => ‘icon_idea.gif’,
‘:oops:’ => ‘icon_redface.gif’,
‘:razz:’ => ‘icon_razz.gif’,
‘:roll:’ => ‘icon_rolleyes.gif’,
‘:wink:’ => ‘icon_wink.gif’,
‘:cry:’ => ‘icon_cry.gif’,
‘:eek:’ => ‘icon_surprised.gif’,
‘:lol:’ => ‘icon_lol.gif’,
‘:mad:’ => ‘icon_mad.gif’,
‘:sad:’ => ‘icon_sad.gif’,
‘8-)’ => ‘icon_cool.gif’,
‘8-O’ => ‘icon_eek.gif’,
‘:-(‘ => ‘icon_sad.gif’,
‘:-)’ => ‘icon_smile.gif’,
‘:-?’ => ‘icon_confused.gif’,
‘:-D’ => ‘icon_biggrin.gif’,
‘:-P’ => ‘icon_razz.gif’,
‘:-o’ => ‘icon_surprised.gif’,
‘:-x’ => ‘icon_mad.gif’,
‘:-|’ => ‘icon_neutral.gif’,
‘;-)’ => ‘icon_wink.gif’,
‘8O’ => ‘icon_eek.gif’,
‘:(‘ => ‘icon_sad.gif’,
‘:)’ => ‘icon_smile.gif’,
‘:?’ => ‘icon_confused.gif’,
‘:D’ => ‘icon_biggrin.gif’,
‘:P’ => ‘icon_razz.gif’,
‘:o’ => ‘icon_surprised.gif’,
‘:x’ => ‘icon_mad.gif’,
‘:|’ => ‘icon_neutral.gif’,
‘;)’ => ‘icon_wink.gif’,
‘:!:’ => ‘icon_exclaim.gif’,
‘:?:’ => ‘icon_question.gif’,);
remove_action(‘wp_head’, ‘print_emoji_detection_script’, 7);
remove_action(‘admin_print_scripts’, ‘print_emoji_detection_script’);
remove_action(‘wp_print_styles’, ‘print_emoji_styles’);
remove_action(‘admin_print_styles’, ‘print_emoji_styles’);
remove_filter(‘the_content_feed’, ‘wp_staticize_emoji’);
remove_filter(‘comment_text_rss’, ‘wp_staticize_emoji’);
remove_filter(‘wp_mail’, ‘wp_staticize_emoji_for_email’);
add_filter(‘tiny_mce_plugins’, ‘disable_emoji9s_tinymce’);
add_filter(‘smilies_src’, ‘custom_gitsmilie_src’, 10, 2);}
add_action(‘init’, ‘init_gitsmilie’, 5);

将以上代码放入主题functions.php文件即可。

本文来源:http://zhidao.baidu.com/link?url=_bcDvbn7V3-nI__2UHx4iZ_XStinoQT7xyrnWphAHF5LZ3oTNaCqEeONS99izoQN0Evr672G-gYctp4HLIXaAAPntw25EMStwc5M2uYXcpa

© 2016, 管理员. 版权所有.第一资源网 本站收集文章仅供个人生活学习之用,具体版权问题,请访问版权和转载声明

关于作者:

管理员

一条评论

  1. http://xxmgjx.com 2016年11月2日 at 下午3:51- 回复

    曾经有一只蚂蚁和一头大象,他们是好朋友,经常再一起玩耍,一起吃饭,一起洗澡。有一天蚂蚁与大象之间有了一点误会,大象就去追蚂蚁,蚂蚁撒腿就跑,跑啊跑啊,跑到一堆沙前,蚂蚁钻到沙里了,只露出一条腿,一只老鼠看见了,就问蚂蚁,说:蚂蚁,蚂蚁,你为什么还露出了一条腿?大象会看到你的。你真的很笨。蚂蚁没好气的说:你才笨呢!我露出一条腿是想把大象拌倒,你这只笨老鼠,别管我,等着看好戏吧!大象怎么爬起来吧!说完之后还坏坏的笑了几声。
    http://xxmgjx.com http://xxmgjx.com

发表评论:

*

code