PluginProbe
FeedWordPress / 2024.0511
FeedWordPress v2024.0511
trunk 0.8 0.9 0.91 0.95 0.96 0.97 0.98 0.981 0.99 0.991 0.992 0.993 2008.1030 2008.1101 2008.1105 2008.1214 2009.0612 2009.0613 2009.0618 2009.0707 2009.1111 2009.1112 2010.0127 2010.0528 All 65 releases
← All changes | feedwordpress.php +15 -24 trunk2024.0511 View file →
@@ -1,18 +1,18 @@
1 1 <?php
2 2 /*
3 3 Plugin Name: FeedWordPress
4 -Plugin URI: https://fwpplugin.com/
4 +Plugin URI: http://feedwordpress.radgeek.com/
5 5 Description: simple and flexible Atom/RSS syndication for WordPress
6 -Version: 2026.0517
6 +Version: 2024.0511
7 7 Author: C. Johnson
8 -Author URI: https://fwpplugin.com/contact/
8 +Author URI: https://feedwordpress.radgeek.com/contact/
9 9 License: GPL
10 10 */
11 11
12 12 /**
13 13 * @package FeedWordPress
14 - * @version 2026.0517
14 + * @version 2024.0511
15 15 */
16 16
17 17 # This plugin uses code derived from:
18 18 # - wp-rss-aggregate.php by Kellan Elliot-McCrea <kellan@protest.net>
@@ -22,9 +22,9 @@
22 22 # - WordPress Blog Tool and Publishing Platform <http://wordpress.org/>
23 23 # - Github contributors @Flynsarmy, @BandonRandon, @david-robinson-practiceweb,
24 24 # @daidais, @thegreatmichael, @stedaniels, @alexiskulash, @quassy, @zoul0813,
25 25 # @timmmmyboy, @vobornik, @inanimatt, @tristanleboss, @martinburchell,
26 -# @bigalownz, @oppiansteve, @GwynethLlewelyn, and @glg222
26 +# @bigalownz, @oppiansteve, and @GwynethLlewelyn
27 27 # according to the terms of the GNU General Public License.
28 28
29 29 ####################################################################################
30 30 ## CONSTANTS & DEFAULTS ############################################################
@@ -29,20 +29,21 @@
29 29 ####################################################################################
30 30 ## CONSTANTS & DEFAULTS ############################################################
31 31 ####################################################################################
32 32
33 -define ('FEEDWORDPRESS_VERSION', '2026.0517');
34 -define ('FEEDWORDPRESS_AUTHOR_CONTACT', 'https://fwpplugin.com/contact' );
33 +define ('FEEDWORDPRESS_VERSION', '2024.0511');
34 +define ('FEEDWORDPRESS_AUTHOR_CONTACT', 'https://feedwordpress.radgeek.com/contact' );
35 35
36 36 if ( ! defined( 'FEEDWORDPRESS_BLEG' ) ) :
37 37 define ( 'FEEDWORDPRESS_BLEG', true );
38 38 endif;
39 39
40 -define( 'FEEDWORDPRESS_BLEG_BTC_pre_2020', '15EsQ9QMZtLytsaVYZUaUCmrkSMaxZBTso' );
41 -define( 'FEEDWORDPRESS_BLEG_BTC_2020', '1NB1ebYVb68Har4WijmE8gKnZ47NptCqtB' ); // 2020.0201
42 -define( 'FEEDWORDPRESS_BLEG_BTC', '1HCDdeGcR66EPxkPT2rbdTd1ezh27pmjPR' ); // 2021.0713
43 -define( 'FEEDWORDPRESS_BLEG_PAYPAL', '22PAJZZCK5Z3W' );
40 +define( 'FEEDWORDPRESS_BLEG_BTC_pre_2020', '15EsQ9QMZtLytsaVYZUaUCmrkSMaxZBTso' );
41 +define( 'FEEDWORDPRESS_BLEG_BTC_2020', '1NB1ebYVb68Har4WijmE8gKnZ47NptCqtB' ); // 2020.0201
42 +define( 'FEEDWORDPRESS_BLEG_BTC', '1HCDdeGcR66EPxkPT2rbdTd1ezh27pmjPR' ); // 2021.0713
44 43
44 +define( 'FEEDWORDPRESS_BLEG_PAYPAL', '22PAJZZCK5Z3W' );
45 +
45 46 // Defaults
46 47 define( 'DEFAULT_SYNDICATION_CATEGORY', 'Contributors' );
47 48 define( 'DEFAULT_UPDATE_PERIOD', 60 ); // value in minutes
48 49 define( 'FEEDWORDPRESS_DEFAULT_CHECKIN_INTERVAL', DEFAULT_UPDATE_PERIOD / 10 );
@@ -2100,21 +2101,11 @@
2100 2101 return in_array( strtolower( trim( $q ) ), $nego );
2101 2102 } /* FeedWordPress::negative () */
2102 2103
2103 2104 static function affirmative ($f, $setting = null) {
2104 - // Defining possible affirmative values
2105 - $affirmo = [ 'y', 'yes', 't', 'true', 1 ];
2106 -
2107 - // Get the field value (presumably from some form or other input)
2105 + $affirmo = array ('y', 'yes', 't', 'true', 1);
2108 2106 $q = self::get_field( $f, $setting );
2109 -
2110 - // Ensure $q is treated properly even if it's null or not set
2111 - if ( null === $q ) {
2112 - return false; // Or you can return false or other fallback as needed
2113 - }
2114 -
2115 - // Check if the value, after trimming and converting to lowercase, is in the affirmative array
2116 - return in_array( strtolower( trim( $q ) ), $affirmo, true ); // The third argument `true` ensures strict type checking
2107 + return in_array( strtolower( trim( $q ) ), $affirmo );
2117 2108 } /* FeedWordPress::affirmative () */
2118 2109
2119 2110 /**
2120 2111 * Internal debugging functions.
@@ -2126,9 +2117,9 @@
2126 2117 */
2127 2118 static function diagnostic( $level, $out, $persist = null, $since = null, $mostRecent = null ) {
2128 2119 global $feedwordpress_admin_footer;
2129 2120
2130 - $output = (array) get_option( 'feedwordpress_diagnostics_output', array() );
2121 + $output = get_option( 'feedwordpress_diagnostics_output', array() );
2131 2122 $dlog = get_option( 'feedwordpress_diagnostics_log', array() );
2132 2123
2133 2124 $diagnostic_nesting = count( explode( ":", $level ) );
2134 2125