Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin - Version 1.6.9

Version Description

  • Fixed deprecated get_currentuserinfo() call
Download this release

Release Info

Developer cartpauj
Plugin Icon 128x128 Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin
Version 1.6.9
Comparing to
See all releases

Code changes from version 1.6.8 to 1.6.9

classes/models/PrliClick.php CHANGED
@@ -6,7 +6,7 @@ class PrliClick
6
  {
7
  var $table_name;
8
 
9
- function PrliClick()
10
  {
11
  global $wpdb;
12
  $this->table_name = "{$wpdb->prefix}prli_clicks";
6
  {
7
  var $table_name;
8
 
9
+ function __construct()
10
  {
11
  global $wpdb;
12
  $this->table_name = "{$wpdb->prefix}prli_clicks";
classes/models/PrliUtils.php CHANGED
@@ -101,11 +101,11 @@ class PrliUtils
101
  $slug = $slug_components[0];
102
 
103
  // Check slug uniqueness against posts, pages and categories
104
- $postname = $wpdb->get_var($wpdb->prepare("SELECT post_name FROM {$wpdb->posts} WHERE post_name=%s LIMIT 1",$slug));
105
  $taxonomy = $wpdb->get_var($wpdb->prepare("SELECT taxonomy FROM {$wpdb->term_taxonomy} WHERE taxonomy=%s LIMIT 1",$slug));
106
 
107
  // If anything was returned for these two calls then the slug has been taken
108
- if( $postname or $taxonomy )
109
  return false;
110
 
111
  // Check slug against files on the root wordpress install
101
  $slug = $slug_components[0];
102
 
103
  // Check slug uniqueness against posts, pages and categories
104
+ // $postname = $wpdb->get_var($wpdb->prepare("SELECT post_name FROM {$wpdb->posts} WHERE post_name=%s LIMIT 1",$slug));
105
  $taxonomy = $wpdb->get_var($wpdb->prepare("SELECT taxonomy FROM {$wpdb->term_taxonomy} WHERE taxonomy=%s LIMIT 1",$slug));
106
 
107
  // If anything was returned for these two calls then the slug has been taken
108
+ if(/* $postname or */$taxonomy )
109
  return false;
110
 
111
  // Check slug against files on the root wordpress install
classes/models/models.inc.php CHANGED
@@ -63,7 +63,7 @@ function prli_get_main_message($message='',$expiration=1800) // Get new messages
63
  if(!$messages)
64
  {
65
  $remote_controller = $prli_update->pro_is_installed_and_authorized() ? 'prlipro' : 'prli';
66
- $message_mothership = "http://prettylinkpro.com/index.php?controller={$remote_controller}&action=json_messages";
67
 
68
  if( !class_exists( 'WP_Http' ) )
69
  include_once( ABSPATH . WPINC . '/class-http.php' );
63
  if(!$messages)
64
  {
65
  $remote_controller = $prli_update->pro_is_installed_and_authorized() ? 'prlipro' : 'prli';
66
+ $message_mothership = "https://prettylinkpro.com/index.php?controller={$remote_controller}&action=json_messages";
67
 
68
  if( !class_exists( 'WP_Http' ) )
69
  include_once( ABSPATH . WPINC . '/class-http.php' );
classes/views/prli-clicks/csv.php CHANGED
@@ -2,7 +2,7 @@
2
  if(!defined('ABSPATH'))
3
  die('You are not allowed to call this page directly.');
4
 
5
- if(is_user_logged_in() and current_user_can('level_10'))
6
  {
7
 
8
  $filename = date("ymdHis",time()) . '_' . $link_name . '_pretty_link_clicks_' . $hmin . '-' . $hmax . '.csv';
2
  if(!defined('ABSPATH'))
3
  die('You are not allowed to call this page directly.');
4
 
5
+ if(is_user_logged_in() and current_user_can( 'update_core' ))
6
  {
7
 
8
  $filename = date("ymdHis",time()) . '_' . $link_name . '_pretty_link_clicks_' . $hmin . '-' . $hmax . '.csv';
pretty-link.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Pretty Link Lite
4
  Plugin URI: http://blairwilliams.com/pretty-link
5
  Description: Shrink, track and share any URL on the Internet from your WordPress website!
6
- Version: 1.6.8
7
  Author: Caseproof
8
  Author URI: http://caseproof.com
9
  Text Domain: pretty-link
3
  Plugin Name: Pretty Link Lite
4
  Plugin URI: http://blairwilliams.com/pretty-link
5
  Description: Shrink, track and share any URL on the Internet from your WordPress website!
6
+ Version: 1.6.9
7
  Author: Caseproof
8
  Author URI: http://caseproof.com
9
  Text Domain: pretty-link
prli-main.php CHANGED
@@ -154,9 +154,7 @@ function prli_dashboard_widget_function() {
154
 
155
  // Create the function use in the action hook
156
  function prli_add_dashboard_widgets() {
157
- global $current_user;
158
- get_currentuserinfo();
159
- if($current_user->user_level >= 8)
160
  {
161
  wp_add_dashboard_widget('prli_dashboard_widget', __('Pretty Link Quick Add', 'pretty-link'), 'prli_dashboard_widget_function');
162
 
154
 
155
  // Create the function use in the action hook
156
  function prli_add_dashboard_widgets() {
157
+ if(current_user_can( 'update_core' ))
 
 
158
  {
159
  wp_add_dashboard_widget('prli_dashboard_widget', __('Pretty Link Quick Add', 'pretty-link'), 'prli_dashboard_widget_function');
160
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: supercleanse
3
  Donate link: http://prettylinkpro.com
4
  Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
5
  Requires at least: 3.9
6
- Tested up to: 4.4
7
- Stable tag: 1.6.8
8
 
9
  Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
10
 
@@ -66,6 +66,9 @@ http://blairwilliams.com/w7a
66
 
67
  == Changelog ==
68
 
 
 
 
69
  = 1.6.8 =
70
  * Small security fix
71
 
3
  Donate link: http://prettylinkpro.com
4
  Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
5
  Requires at least: 3.9
6
+ Tested up to: 4.6
7
+ Stable tag: 1.6.9
8
 
9
  Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
10
 
66
 
67
  == Changelog ==
68
 
69
+ = 1.6.9 =
70
+ * Fixed deprecated get_currentuserinfo() call
71
+
72
  = 1.6.8 =
73
  * Small security fix
74