Plugin Directory

Changeset 1486614


Ignore:
Timestamp:
08/30/2016 05:53:23 PM (9 years ago)
Author:
dsgnr
Message:

Tag 1.1.0

Location:
wp-theme-optimizer
Files:
11 edited
15 copied

Legend:

Unmodified
Added
Removed
  • wp-theme-optimizer/tags/1.1.0/README.md

    r1464043 r1486614  
    77
    88
    9 This WordPress plugin allows you to optimize your WordPress theme header by removing excess tags and scripts. 
     9This WordPress plugin allows you to optimize your WordPress theme header by removing excess tags and scripts.
    1010
    1111
     
    4242* Remove Yoast SEO comments in front-end HTML<br>
    4343* Option to Minify front-end HTML<br>
     44* Remove DNS prefetch tags<br>
    4445
    4546
     
    5051* <a href="https://github.com/dsgnr/WP-Theme-Optimizer/issues">Submit an issue</a>
    5152* <a href="mailto:[email protected]">Email Us</a>
    52 
    53 
    54 
  • wp-theme-optimizer/tags/1.1.0/README.txt

    r1464449 r1486614  
    44Tags: theme, optimiser, optimizer, remove query strings from static resources, remove header information
    55Requires at least: 3.0.1
    6 Tested up to:  4.5.3
    7 Stable tag: 4.5.3
     6Tested up to:  4.6
     7Stable tag: 4.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323== Changelog ==
    2424
     25= 1.1.0 =
     26
     27* Fixed a few bugs.
     28* Added removal of DNS prefetch.
     29
    2530= 1.0.1 =
    2631
     
    2934* Added activate/deactivate all button.
    3035* Changed spellings to be consistent between UK/US spellings.
     36
    3137
    3238= 1.0.0 =
  • wp-theme-optimizer/tags/1.1.0/admin/class-wpto-admin.php

    r1464448 r1486614  
    8484         * class.
    8585         */
    86         if ( 'settings_page_wpto' == get_current_screen() -> id ) {
     86 if ( 'settings_page_wpto' == get_current_screen() -> id ) {
    8787            wp_enqueue_media();
    8888            wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpto-admin.js', array( 'jquery' ), $this->version, false );
    8989        }
    90 
    9190    }
    9291
     
    166165        $valid['remove_wp_post_links'] = (isset($input['remove_wp_post_links']) && !empty($input['remove_wp_post_links'])) ? 1 : 0;
    167166        $valid['remove_pingback'] = (isset($input['remove_pingback']) && !empty($input['remove_pingback'])) ? 1 : 0;
     167        $valid['remove_dns_prefetch'] = (isset($input['remove_dns_prefetch']) && !empty($input['remove_dns_prefetch'])) ? 1 : 0;
    168168
    169169        // Yoast
  • wp-theme-optimizer/tags/1.1.0/admin/partials/wpto-admin-display.php

    r1464448 r1486614  
    4848            $remove_wp_post_links = $options['remove_wp_post_links'];
    4949            $remove_pingback = $options['remove_pingback'];
     50            $remove_dns_prefetch = $options['remove_dns_prefetch'];
    5051
    5152
     
    9293         require_once('wpto_theme_links.php');
    9394         require_once('wpto_misc.php');
    94 
     95require_once('wpto_wc.php');
    9596            if ( class_exists( 'WooCommerce' ) ) {
    9697                require_once('wpto_wc.php');
  • wp-theme-optimizer/tags/1.1.0/admin/partials/wpto_wc.php

    r1464448 r1486614  
    1     <?php
     1<?php
    22
    33/**
  • wp-theme-optimizer/tags/1.1.0/includes/class-wpto-loader.php

    r1464448 r1486614  
    1 
    21<?php
    32/**
  • wp-theme-optimizer/tags/1.1.0/includes/class-wpto.php

    r1464448 r1486614  
    195195        $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_wp_shortlink');
    196196        $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_wp_post_links');
     197        $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_dns_prefetch');
    197198// Yoast
    198199$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_yoast_information');
  • wp-theme-optimizer/tags/1.1.0/public/class-wpto-public.php

    r1464448 r1486614  
    211211    }
    212212
    213 
     213    // Remove DNS Prefetch
     214    public function wpto_remove_dns_prefetch( ) {
     215        if(!empty($this->wpto_options['remove_dns_prefetch'])){
     216        remove_action( 'wp_head', 'wp_resource_hints', 2 );
     217        }
     218    }
    214219/* WOOCOMMERCE
    215220
  • wp-theme-optimizer/tags/1.1.0/uninstall.php

    r1464448 r1486614  
    1 
    21<?php
    32
  • wp-theme-optimizer/tags/1.1.0/wpto.php

    r1464448 r1486614  
    1111 * Plugin URI:        www.themeoptimizer.io
    1212 * Description:       Optimize your WordPress theme header by removing excess tags and scripts. Make your site faster and more secure by hiding WordPress tags.
    13  * Version:           1.0.1
     13 * Version:           1.1.0
    1414 * Author:            Studio Touch (Daniel Hand)
    1515 * Author URI:        https://www.designsbytouch.co.uk
  • wp-theme-optimizer/trunk/README.md

    r1464043 r1486614  
    77
    88
    9 This WordPress plugin allows you to optimize your WordPress theme header by removing excess tags and scripts. 
     9This WordPress plugin allows you to optimize your WordPress theme header by removing excess tags and scripts.
    1010
    1111
     
    4242* Remove Yoast SEO comments in front-end HTML<br>
    4343* Option to Minify front-end HTML<br>
     44* Remove DNS prefetch tags<br>
    4445
    4546
     
    5051* <a href="https://github.com/dsgnr/WP-Theme-Optimizer/issues">Submit an issue</a>
    5152* <a href="mailto:[email protected]">Email Us</a>
    52 
    53 
    54 
  • wp-theme-optimizer/trunk/README.txt

    r1464449 r1486614  
    44Tags: theme, optimiser, optimizer, remove query strings from static resources, remove header information
    55Requires at least: 3.0.1
    6 Tested up to:  4.5.3
    7 Stable tag: 4.5.3
     6Tested up to:  4.6
     7Stable tag: 4.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2323== Changelog ==
    2424
     25= 1.1.0 =
     26
     27* Fixed a few bugs.
     28* Added removal of DNS prefetch.
     29
    2530= 1.0.1 =
    2631
     
    2934* Added activate/deactivate all button.
    3035* Changed spellings to be consistent between UK/US spellings.
     36
    3137
    3238= 1.0.0 =
  • wp-theme-optimizer/trunk/admin/class-wpto-admin.php

    r1464448 r1486614  
    8484         * class.
    8585         */
    86         if ( 'settings_page_wpto' == get_current_screen() -> id ) {
     86 if ( 'settings_page_wpto' == get_current_screen() -> id ) {
    8787            wp_enqueue_media();
    8888            wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/wpto-admin.js', array( 'jquery' ), $this->version, false );
    8989        }
    90 
    9190    }
    9291
     
    166165        $valid['remove_wp_post_links'] = (isset($input['remove_wp_post_links']) && !empty($input['remove_wp_post_links'])) ? 1 : 0;
    167166        $valid['remove_pingback'] = (isset($input['remove_pingback']) && !empty($input['remove_pingback'])) ? 1 : 0;
     167        $valid['remove_dns_prefetch'] = (isset($input['remove_dns_prefetch']) && !empty($input['remove_dns_prefetch'])) ? 1 : 0;
    168168
    169169        // Yoast
  • wp-theme-optimizer/trunk/admin/partials/wpto-admin-display.php

    r1464448 r1486614  
    4848            $remove_wp_post_links = $options['remove_wp_post_links'];
    4949            $remove_pingback = $options['remove_pingback'];
     50            $remove_dns_prefetch = $options['remove_dns_prefetch'];
    5051
    5152
     
    9293         require_once('wpto_theme_links.php');
    9394         require_once('wpto_misc.php');
    94 
     95require_once('wpto_wc.php');
    9596            if ( class_exists( 'WooCommerce' ) ) {
    9697                require_once('wpto_wc.php');
  • wp-theme-optimizer/trunk/admin/partials/wpto_wc.php

    r1464448 r1486614  
    1     <?php
     1<?php
    22
    33/**
  • wp-theme-optimizer/trunk/includes/class-wpto-loader.php

    r1464448 r1486614  
    1 
    21<?php
    32/**
  • wp-theme-optimizer/trunk/includes/class-wpto.php

    r1464448 r1486614  
    195195        $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_wp_shortlink');
    196196        $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_wp_post_links');
     197        $this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_dns_prefetch');
    197198// Yoast
    198199$this->loader->add_action( 'after_setup_theme', $plugin_public, 'wpto_remove_yoast_information');
  • wp-theme-optimizer/trunk/public/class-wpto-public.php

    r1464448 r1486614  
    211211    }
    212212
    213 
     213    // Remove DNS Prefetch
     214    public function wpto_remove_dns_prefetch( ) {
     215        if(!empty($this->wpto_options['remove_dns_prefetch'])){
     216        remove_action( 'wp_head', 'wp_resource_hints', 2 );
     217        }
     218    }
    214219/* WOOCOMMERCE
    215220
  • wp-theme-optimizer/trunk/uninstall.php

    r1464448 r1486614  
    1 
    21<?php
    32
  • wp-theme-optimizer/trunk/wpto.php

    r1464448 r1486614  
    1111 * Plugin URI:        www.themeoptimizer.io
    1212 * Description:       Optimize your WordPress theme header by removing excess tags and scripts. Make your site faster and more secure by hiding WordPress tags.
    13  * Version:           1.0.1
     13 * Version:           1.1.0
    1414 * Author:            Studio Touch (Daniel Hand)
    1515 * Author URI:        https://www.designsbytouch.co.uk
Note: See TracChangeset for help on using the changeset viewer.