FancyBox for WordPress - Version 3.2.4

Version Description

  • Removed dashboard news widget
Download this release

Release Info

Developer machothemes
Plugin Icon wp plugin FancyBox for WordPress
Version 3.2.4
Comparing to
See all releases

Code changes from version 3.2.3 to 3.2.4

fancybox.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: FancyBox for WordPress
4
  * Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
5
  * Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress.
6
- * Version: 3.2.3
7
  * Author: Colorlib
8
  * Author URI: https://colorlib.com/wp/
9
  * Tested up to: 5.2
@@ -11,11 +11,11 @@
11
  * License: GPLv3 or later
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Requires PHP: 5.6
14
- * Text Domain: colorlib-login-customizer
15
  * Domain Path: /languages
16
  *
17
  * Copyright 2008-2016 Janis Skarnelis http://twitter.com/moskis/
18
- * Copyright 2016-2019 Colorlib support@colorlib.com
19
  *
20
  * This program is free software; you can redistribute it and/or modify
21
  * it under the terms of the GNU General Public License, version 3, as
@@ -36,7 +36,7 @@
36
  * Plugin Init
37
  */
38
  // Constants
39
- define( 'FBFW_VERSION', '3.2.3' );
40
  define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
41
  define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
42
  define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
@@ -581,6 +581,4 @@ function mfbfw_get_activate_link() {
581
  )
582
  );
583
 
584
- }
585
-
586
- require_once 'lib/class-colorlib-dashboard-widget-extend-feed.php';
3
  * Plugin Name: FancyBox for WordPress
4
  * Plugin URI: https://wordpress.org/plugins/fancybox-for-wordpress/
5
  * Description: Integrates <a href="http://fancyapps.com/fancybox/3/">FancyBox 3</a> into WordPress.
6
+ * Version: 3.2.4
7
  * Author: Colorlib
8
  * Author URI: https://colorlib.com/wp/
9
  * Tested up to: 5.2
11
  * License: GPLv3 or later
12
  * License URI: http://www.gnu.org/licenses/gpl-3.0.html
13
  * Requires PHP: 5.6
14
+ * Text Domain: mfbfw
15
  * Domain Path: /languages
16
  *
17
  * Copyright 2008-2016 Janis Skarnelis http://twitter.com/moskis/
18
+ * Copyright 2016-2019 Colorlib support@colorlib.com
19
  *
20
  * This program is free software; you can redistribute it and/or modify
21
  * it under the terms of the GNU General Public License, version 3, as
36
  * Plugin Init
37
  */
38
  // Constants
39
+ define( 'FBFW_VERSION', '3.2.4' );
40
  define( 'FBFW_PATH', plugin_dir_path( __FILE__ ) );
41
  define( 'FBFW_URL', plugin_dir_url( __FILE__ ) );
42
  define( 'FBFW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
581
  )
582
  );
583
 
584
+ }
 
 
lib/class-colorlib-dashboard-widget-extend-feed.php DELETED
@@ -1,90 +0,0 @@
1
- <?php
2
-
3
- if ( ! class_exists( 'Colorlib_Dashboard_Widget_Extend_Feed' ) ) {
4
-
5
- class Colorlib_Dashboard_Widget_Extend_Feed {
6
-
7
- public function __construct() {
8
-
9
- // Actions.
10
- add_action( 'wp_feed_options', array( $this, 'dashboard_update_feed_urls' ), 10, 2 );
11
-
12
- // Filters.
13
- add_filter( 'dashboard_secondary_items', array( $this, 'dashboard_items_count' ) );
14
-
15
- }
16
-
17
- public function dashboard_items_count() {
18
-
19
- /**
20
- * Apply the filters am_dashboard_feed_count for letting an admin
21
- * override this count.
22
- */
23
- return (int) apply_filters( 'colorlib_dashboard_feed_count', 6 );
24
- }
25
-
26
- public function dashboard_update_feed_urls( $feed, $url ) {
27
-
28
- global $pagenow;
29
-
30
- // Return early if not on the right page.
31
- if ( 'admin-ajax.php' !== $pagenow ) {
32
- return;
33
- }
34
-
35
- /**
36
- * Return early if not on the right feed.
37
- * We want to modify the feed URLs only for the
38
- * WordPress Events & News Dashboard Widget
39
- */
40
- if ( is_array( $url ) ) {
41
- if ( ! in_array( 'https://planet.wordpress.org/feed/', $url ) ) {
42
- return;
43
- }
44
- }else{
45
- if ( strpos( $url, 'planet.wordpress.org' ) === false ) {
46
- return;
47
- }
48
- }
49
-
50
- // Build the feed sources.
51
- $all_feed_urls = $this->get_feed_urls( $url );
52
-
53
- // Update the feed sources.
54
- $feed->set_feed_url( $all_feed_urls );
55
- }
56
-
57
- public function get_feed_urls( $url ) {
58
-
59
- // Initialize the feeds array.
60
- $feed_urls = array( $url );
61
-
62
- $check = get_transient( 'colorlib_dashboard_feed' );
63
- $feeds = array();
64
- if ( ! $check ) {
65
-
66
- $feed_working = 'not-working';
67
-
68
- // Load SimplePie Instance
69
- $feed = fetch_feed( array( 'https://colorlib.com/wp/feed/' ) );
70
-
71
- // TODO report error when is an error loading the feed
72
- if ( ! is_wp_error( $feed ) ) {
73
- $feed_urls[] = 'https://colorlib.com/wp/feed/';
74
- $feed_working = 'working';
75
- }
76
-
77
- set_transient( 'colorlib_dashboard_feed', $feed_working, 12 * HOUR_IN_SECONDS );
78
-
79
- }elseif ( 'working' == $check ) {
80
- $feed_urls[] = 'https://colorlib.com/wp/feed/';
81
- }
82
-
83
- // Return the feed URLs.
84
- return array_unique( $feed_urls );
85
- }
86
- }
87
-
88
- // Create an instance.
89
- new Colorlib_Dashboard_Widget_Extend_Feed();
90
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: silkalns
3
  Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
4
  Requires at least: 4.6
5
  Tested up to: 5.2
6
- Stable tag: 3.2.3
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -31,6 +31,9 @@ If you enjoy using FancyBox lightbox for WordPress please leave a [positive feed
31
 
32
  == Changelog ==
33
 
 
 
 
34
  = 3.2.3 =
35
  * Fix for mobile close on content click
36
  * Fix for mobile close on overlay click
3
  Tags: fancybox, lightbox, jquery, gallery, image, images, photo, photos, picture, pictures, zoom
4
  Requires at least: 4.6
5
  Tested up to: 5.2
6
+ Stable tag: 3.2.4
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
31
 
32
  == Changelog ==
33
 
34
+ = 3.2.4 =
35
+ * Removed dashboard news widget
36
+
37
  = 3.2.3 =
38
  * Fix for mobile close on content click
39
  * Fix for mobile close on overlay click