Changeset 1700951
- Timestamp:
- 07/23/2017 07:14:09 AM (9 years ago)
- Location:
- disable-unnecessary-functionality/trunk
- Files:
-
- 2 edited
-
disable-unnecessary-functionality.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
disable-unnecessary-functionality/trunk/disable-unnecessary-functionality.php
r1700943 r1700951 4 4 Plugin URI: https://pupi-boy.ru/wordpress/wordpress-otklyuchaem-wp-json-emoji-xml-rpc-head.html 5 5 Description: Disables unnecessary functionality: REST API, Emoji, links to the blog-clients, links to the RSS feed version of your WordPress, automatic links in comments and some other functions. 6 Version: 1.3. 16 Version: 1.3.2 7 7 Author: DreamerKlim 8 8 Author URI: https://pupi-boy.ru/avtor-ivanov-klim … … 145 145 return $urls; 146 146 } 147 //dns-prefetch 148 add_filter( 'emoji_svg_url', '__return_false' ); 147 149 148 150 /* -------------------------------------------------------------------------- … … 238 240 * Удаляем опасные методы работы XML-RPC Pingback 239 241 * -------------------------------------------------------------------------- */ 242 243 244 /* -------------------------------------------------------------------------- 245 * Убирает версию из скритов и стилей (jquery.js?ver=1.12.4) 246 * -------------------------------------------------------------------------- */ 247 function _remove_script_version( $src ){ 248 $parts = explode( '?', $src ); 249 return $parts[0]; 250 } 251 //Фильтр для скриптов 252 add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); 253 //Фильтр для стилей 254 add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); 255 256 /* -------------------------------------------------------------------------- 257 * Убирает версию из скритов и стилей (jquery.js?ver=1.12.4) 258 * -------------------------------------------------------------------------- */ 240 259 ?> -
disable-unnecessary-functionality/trunk/readme.txt
r1700941 r1700951 5 5 Requires at least: 3.7 6 6 Tested up to: 4.8 7 Stable tag: 1.3. 17 Stable tag: 1.3.2 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.