Version Description
- Released 2017-01-31
- Fixed issue with updating the settings
Download this release
Release Info
Developer | mrsztuczkens |
Plugin | jQuery Pin It Button for Images |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.2.5
includes/includes/versions/JPIBFI_Version_Update_2_2_3.php
CHANGED
@@ -86,24 +86,17 @@ class JPIBFI_Version_Update_2_2_3 {
|
|
86 |
}
|
87 |
|
88 |
private function create_disable_on() {
|
|
|
89 |
$result = array();
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
if ( $my_query->have_posts() ) {
|
98 |
-
while ( $my_query->have_posts() ) {
|
99 |
-
$my_query->the_post();
|
100 |
-
$post_meta = get_post_meta( get_the_ID(), 'jpibfi_meta', true );
|
101 |
-
if ( array_key_exists( 'jpibfi_disable_for_post', $post_meta ) && '1' == $post_meta['jpibfi_disable_for_post'] ) {
|
102 |
-
$result[] = get_the_ID();
|
103 |
-
}
|
104 |
}
|
105 |
}
|
106 |
-
wp_reset_postdata();
|
107 |
|
108 |
return implode( ',', $result );
|
109 |
}
|
86 |
}
|
87 |
|
88 |
private function create_disable_on() {
|
89 |
+
global $wpdb;
|
90 |
$result = array();
|
91 |
+
|
92 |
+
$entries = $wpdb->get_results( "SELECT post_id, meta_value FROM $wpdb->postmeta WHERE meta_key = 'jpibfi_meta'", ARRAY_A );
|
93 |
+
for($i = 0; $i < count( $entries ); $i++ ){
|
94 |
+
$meta_val = maybe_unserialize( $entries[ $i ][ 'meta_value'] );
|
95 |
+
$post_id = $entries[ $i ][ 'post_id' ];
|
96 |
+
if ( array_key_exists( 'jpibfi_disable_for_post', $meta_val ) && '1' == $meta_val['jpibfi_disable_for_post'] ) {
|
97 |
+
$result[] = $post_id;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
99 |
}
|
|
|
100 |
|
101 |
return implode( ',', $result );
|
102 |
}
|
jquery-pin-it-button-for-images.php
CHANGED
@@ -6,7 +6,7 @@ Description: Highlights images on hover and adds a "Pin It" button over them for
|
|
6 |
Text Domain: jquery-pin-it-button-for-images
|
7 |
Domain Path: /languages
|
8 |
Author: Marcin Skrzypiec
|
9 |
-
Version:2.2.
|
10 |
Author URI: https://highfiveplugins.com/
|
11 |
*/
|
12 |
|
@@ -18,7 +18,7 @@ if ( !class_exists( 'jQuery_Pin_It_Button_For_Images' ) ) {
|
|
18 |
final class jQuery_Pin_It_Button_For_Images {
|
19 |
|
20 |
function __construct() {
|
21 |
-
$version = '2.2.
|
22 |
require_once plugin_dir_path(__FILE__) . 'includes/jpibfi.php';
|
23 |
new JPIBFI(__FILE__, $version);
|
24 |
}
|
6 |
Text Domain: jquery-pin-it-button-for-images
|
7 |
Domain Path: /languages
|
8 |
Author: Marcin Skrzypiec
|
9 |
+
Version:2.2.5
|
10 |
Author URI: https://highfiveplugins.com/
|
11 |
*/
|
12 |
|
18 |
final class jQuery_Pin_It_Button_For_Images {
|
19 |
|
20 |
function __construct() {
|
21 |
+
$version = '2.2.5';
|
22 |
require_once plugin_dir_path(__FILE__) . 'includes/jpibfi.php';
|
23 |
new JPIBFI(__FILE__, $version);
|
24 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: mrsztuczkens, redearthdesign, brocheafoin, robertark
|
|
3 |
Tags: pinterest, pin it, button, image, images, pinit, social media, hover, click, photo, photos
|
4 |
Requires at least: 3.3.0
|
5 |
Tested up to: 4.6.1
|
6 |
-
Stable tag: 2.2.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Highlights images on hover and adds a Pinterest "Pin It" button over them for easy pinning.
|
@@ -68,6 +68,10 @@ Please report them in the plugin's support forum on Wordpress.org.
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
|
|
71 |
= 2.2.4 =
|
72 |
* Released 2017-01-30
|
73 |
* Fix to support old versions of PHP
|
@@ -300,6 +304,9 @@ Please report them in the plugin's support forum on Wordpress.org.
|
|
300 |
|
301 |
== Upgrade Notice ==
|
302 |
|
|
|
|
|
|
|
303 |
= 2.2.4 =
|
304 |
* Fix to support old versions of PHP
|
305 |
|
3 |
Tags: pinterest, pin it, button, image, images, pinit, social media, hover, click, photo, photos
|
4 |
Requires at least: 3.3.0
|
5 |
Tested up to: 4.6.1
|
6 |
+
Stable tag: 2.2.5
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Highlights images on hover and adds a Pinterest "Pin It" button over them for easy pinning.
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 2.2.5 =
|
72 |
+
* Released 2017-01-31
|
73 |
+
* Fixed issue with updating the settings
|
74 |
+
|
75 |
= 2.2.4 =
|
76 |
* Released 2017-01-30
|
77 |
* Fix to support old versions of PHP
|
304 |
|
305 |
== Upgrade Notice ==
|
306 |
|
307 |
+
= 2.2.5 =
|
308 |
+
* Fixed issue with updating the settings
|
309 |
+
|
310 |
= 2.2.4 =
|
311 |
* Fix to support old versions of PHP
|
312 |
|