Plugin Directory

Changeset 1700951


Ignore:
Timestamp:
07/23/2017 07:14:09 AM (9 years ago)
Author:
dreamerklim
Message:

dns-prefetch Emojii

Location:
disable-unnecessary-functionality/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • disable-unnecessary-functionality/trunk/disable-unnecessary-functionality.php

    r1700943 r1700951  
    44Plugin URI: https://pupi-boy.ru/wordpress/wordpress-otklyuchaem-wp-json-emoji-xml-rpc-head.html
    55Description: 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.1
     6Version: 1.3.2
    77Author: DreamerKlim
    88Author URI: https://pupi-boy.ru/avtor-ivanov-klim
     
    145145    return $urls;
    146146}
     147//dns-prefetch
     148add_filter( 'emoji_svg_url', '__return_false' );
    147149
    148150/* --------------------------------------------------------------------------
     
    238240*  Удаляем опасные методы работы XML-RPC Pingback
    239241* -------------------------------------------------------------------------- */
     242
     243
     244/* --------------------------------------------------------------------------
     245*  Убирает версию из скритов и стилей (jquery.js?ver=1.12.4)
     246* -------------------------------------------------------------------------- */
     247function _remove_script_version( $src ){
     248    $parts = explode( '?', $src );
     249    return $parts[0];
     250}
     251//Фильтр для скриптов
     252add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
     253//Фильтр для стилей
     254add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
     255
     256/* --------------------------------------------------------------------------
     257*  Убирает версию из скритов и стилей (jquery.js?ver=1.12.4)
     258* -------------------------------------------------------------------------- */
    240259?>
  • disable-unnecessary-functionality/trunk/readme.txt

    r1700941 r1700951  
    55Requires at least: 3.7
    66Tested up to: 4.8
    7 Stable tag: 1.3.1
     7Stable tag: 1.3.2
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.