Skip to content

Commit 52fe889

Browse files
authored
Merge pull request #32 from samperrow/dev-1.6.41
1.6.41
2 parents 9056096 + 0967555 commit 52fe889

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
== Changelog ==
22

3-
1. Most recent update: September 15, 2019.
4-
2. Version 1.6.2
3+
1. Most recent update: October 5, 2019.
4+
2. Version 1.6.41
5+
6+
October 5, 2019:
7+
1) Entered URL's will no longer be converted to lower case. This is because some sites have case-sensitive URI's.
8+
9+
September 28, 2019:
10+
1) Fixed bug with preconnect-ajax hints.
11+
2) fixed issue with upgrading db table from v 1.5.8
512

613
September 15, 2019:
714
1) Dramatically reconfigured plugin. Version 1.6.0 is basically a complete rewrite of all code used. It is more organized, concise, efficient, easy to understand, simple, and user friendly than previously.
@@ -131,4 +138,4 @@ Nov 4, 2016:
131138
1) Fixed some images that were not loading properly.
132139

133140
Nov 3, 2016:
134-
1) initial commit.
141+
1) initial commit.

admin.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Pre* Party Resource Hints
44
* Plugin URI: https://wordpress.org/plugins/pre-party-browser-hints/
55
* Description: Take advantage of the browser resource hints DNS-Prefetch, Prerender, Preconnect, Prefetch, and Preload to improve page load time.
6-
* Version: 1.6.4
6+
* Version: 1.6.41
77
* Requires at least: 4.4
88
* Requires PHP: 5.3
99
* Author: Sam Perrow
@@ -177,6 +177,17 @@ public function upgrade_db( $new_table, $old_table ) {
177177
// Multisite install/delete db table.
178178
public function install_db_table() {
179179
global $wpdb;
180+
$new_table = $wpdb->prefix . 'pprh_table';
181+
$old_table = $wpdb->prefix . 'gktpp_table';
182+
183+
$prev_table_exists = $wpdb->query(
184+
$wpdb->prepare( 'SHOW TABLES LIKE %s', $old_table )
185+
);
186+
187+
// user is upgrading to new version.
188+
if ( 1 === $prev_table_exists ) {
189+
return $this->upgrade_db( $new_table, $old_table );
190+
}
180191

181192
$new_table = $wpdb->prefix . 'pprh_table';
182193
$old_table = $wpdb->prefix . 'gktpp_table';

includes/class-pprh-create-hints.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private function set_hint_type( $hint_type ) {
5353
}
5454

5555
private function set_url( $url ) {
56-
$this->url = strtolower( filter_var( str_replace( ' ', '', $url ), FILTER_SANITIZE_URL ) );
56+
$this->url = filter_var( str_replace( ' ', '', $url ), FILTER_SANITIZE_URL );
5757

5858
if ( preg_match( '/(dns-prefetch|preconnect)/', $this->hint_type ) ) {
5959
$this->parse_for_domain_name();

readme.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.me/samperrow
44
Tags: W3C, DNS prefetch, prerender, preconnect, prefetch, preload, web perf, performance, speed, resource hints
55
Requires at least: 4.4
66
Tested up to: 5.2.3
7-
Stable tag: 1.6.4
7+
Stable tag: 1.6.41
88
Requires PHP: 5.3.0
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -82,8 +82,11 @@ To activate the preloaded resource, you must call that file in HTML as you would
8282

8383
== Changelog ==
8484

85-
1. Most recent update: September 28, 2019.
86-
2. Version 1.6.4
85+
1. Most recent update: October 5, 2019.
86+
2. Version 1.6.41
87+
88+
October 5, 2019:
89+
1) Entered URL's will no longer be converted to lower case. This is because some sites have case-sensitive URI's.
8790

8891
September 28, 2019:
8992
1) Fixed bug with preconnect-ajax hints.

0 commit comments

Comments
 (0)