WordPress.org

Plugin Directory

Changeset 1551908


Ignore:
Timestamp:
12/11/16 13:31:11 (5 months ago)
Author:
radgeek
Message:

Release 2016.1211. Mostly compatibility fixes, one bugfix thing. WP 4.7 compatibility.

Location:
feedwordpress/trunk
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • feedwordpress/trunk/admin-ui.php

    r1160703 r1551908  
    1515     * @param mixed $link An object of class {@link SyndicatedLink} if created for one feed's settings, NULL if created for global default settings 
    1616     */ 
    17     function FeedWordPressAdminPage ($page = 'feedwordpressadmin', $link = NULL) { 
     17    public function __construct( $page = 'feedwordpressadmin', $link = NULL ) { 
    1818        $this->link = $link; 
    1919 
     
    374374        global $fwp_path; 
    375375        ?> 
    376         <div class="icon32"><img src="<?php print esc_html(WP_PLUGIN_URL.'/'.$fwp_path.'/feedwordpress.png'); ?>" alt="" /></div> 
     376        <div class="icon32"><img src="<?php print esc_html( plugins_url( '/'.$fwp_path.'/feedwordpress.png') ); ?>" alt="" /></div> 
    377377        <h2><?php print esc_html(__($pagename.($all ? '' : ' Settings'))); ?><?php if ($this->for_feed_settings()) : ?>: <?php echo esc_html($this->link->name(/*from feed=*/ false)); ?><?php endif; ?></h2> 
    378378        <?php 
     
    977977        wp_enqueue_script('admin-forms'); // for checkbox selection 
    978978 
    979         wp_register_script('feedwordpress-elements', WP_PLUGIN_URL.'/'.$fwp_path.'/feedwordpress-elements.js'); 
     979        wp_register_script('feedwordpress-elements', plugins_url('/' . $fwp_path . '/feedwordpress-elements.js') ); 
    980980        wp_enqueue_script('feedwordpress-elements'); 
    981981    } 
  • feedwordpress/trunk/authors-page.php

    r377479 r1551908  
    66    var $rule_count = 0; 
    77     
    8     function FeedWordPressAuthorsPage ($link = -1) { 
     8    public function __construct( $link = -1 ) { 
    99        if (is_numeric($link) and -1 == $link) : 
    10             $link = FeedWordPressAdminPage::submitted_link(); 
    11         endif; 
    12  
    13         FeedWordPressAdminPage::FeedWordPressAdminPage('feedwordpressauthors', $link); 
     10            $link = parent::submitted_link(); 
     11        endif; 
     12 
     13        parent::__construct('feedwordpressauthors', $link); 
    1414        $this->refresh_author_list(); 
    1515        $this->dispatch = 'feedwordpress_author_settings'; 
  • feedwordpress/trunk/categories-page.php

    r960798 r1551908  
    33 
    44class FeedWordPressCategoriesPage extends FeedWordPressAdminPage { 
    5     function FeedWordPressCategoriesPage ($link = -1) { 
     5    public function __construct( $link = -1 ) { 
    66        if (is_numeric($link) and -1 == $link) : 
    77            $link = $this->submitted_link(); 
    88        endif; 
    99 
    10         FeedWordPressAdminPage::FeedWordPressAdminPage('feedwordpresscategories', $link); 
     10        parent::__construct('feedwordpresscategories', $link); 
    1111        $this->dispatch = 'feedwordpress_admin_page_categories'; 
    1212        $this->pagenames = array( 
  • feedwordpress/trunk/diagnostics-page.php

    r1413324 r1551908  
    33 
    44class FeedWordPressDiagnosticsPage extends FeedWordPressAdminPage { 
    5     function FeedWordPressDiagnosticsPage () { 
     5    public function __construct() { 
    66        // Set meta-box context name 
    7         FeedWordPressAdminPage::FeedWordPressAdminPage('feedwordpressdiagnosticspage'); 
     7        parent::__construct('feedwordpressdiagnosticspage'); 
    88        $this->dispatch = 'feedwordpress_diagnostics'; 
    99        $this->filename = __FILE__; 
  • feedwordpress/trunk/feedfinder.class.php

    r453139 r1551908  
    3838    var $_maybe_feed_url = array ('rss', 'rdf', 'atom', 'feed', 'xml'); 
    3939 
    40     function FeedFinder ($uri = NULL, $params = array(), $fallbacks = 3) { 
     40    function __construct( $uri = NULL, $params = array(), $fallbacks = 3 ) { 
    4141        if (is_bool($params)) : 
    4242            $params = array("verify" => $params); 
     
    5959        $this->fallbacks = $fallbacks; 
    6060    } /* FeedFinder::FeedFinder () */ 
     61 
     62    function FeedFinder( $uri = NULL, $params = array(), $fallbacks = 3 ) { 
     63        self::__construct( $uri, $params, $fallbacks ); 
     64    } 
    6165 
    6266    function find ($uri = NULL, $params = array()) { 
  • feedwordpress/trunk/feeds-page.php

    r960798 r1551908  
    8484     * @param mixed $link An object of class {@link SyndicatedLink} if created for one feed's settings, NULL if created for global default settings 
    8585     */ 
    86     function FeedWordPressFeedsPage ($link = -1) { 
     86    public function __construct( $link = -1 ) { 
    8787        if (is_numeric($link) and -1 == $link) : 
    88             $link = FeedWordPressAdminPage::submitted_link(); 
    89         endif; 
    90  
    91         FeedWordPressAdminPage::FeedWordPressAdminPage('feedwordpressfeeds', $link); 
     88            $link = parent::submitted_link(); 
     89        endif; 
     90 
     91        parent::__construct('feedwordpressfeeds', $link); 
    9292 
    9393        $this->dispatch = 'feedwordpress_admin_page_feeds'; 
     
    140140 
    141141    function ajax_interface_js () { 
    142         FeedWordPressAdminPage::ajax_interface_js(); 
     142        parent::ajax_interface_js(); 
    143143        ?> 
    144144 
  • feedwordpress/trunk/feedtime.class.php

    r549637 r1551908  
    2525    var $ts; 
    2626 
    27     function FeedTime ($time) { 
     27    function __construct( $time ) { 
    2828        $this->set($time); 
    2929    } /* FeedTime constructor */ 
    3030     
     31    function FeedTime( $time ) { 
     32        self::__construct( $time ); 
     33    } 
     34 
    3135    function set ($time, $recurse = false) { 
    3236        $this->rep = $time; 
  • feedwordpress/trunk/feedwordpress-content-type-sniffer.class.php

    r455012 r1551908  
    11<?php 
    2 require_once(ABSPATH . WPINC . '/class-feed.php'); 
     2if (!class_exists('SimplePie_Content_Type_Sniffer')) : 
     3    require_once(ABSPATH . WPINC . '/class-simplepie.php'); 
     4endif; 
    35 
    46class FeedWordPress_Content_Type_Sniffer extends SimplePie_Content_Type_Sniffer { 
  • feedwordpress/trunk/feedwordpress-walker-category-checklist.class.php

    r960798 r1551908  
    1414    var $prefix = ''; var $taxonomy = 'category'; 
    1515    var $checkbox_name = NULL; 
    16     function FeedWordPress_Walker_Category_Checklist ($params = array()) { 
     16    public function __construct ($params = array()) { 
    1717        $this->set_taxonomy('category'); 
    1818 
     
    2020            $this->checkbox_name = $params['checkbox_name']; 
    2121        endif; 
    22     } 
     22    } /* FeedWordPress_Walker_Category_Checklist::__construct () */ 
    2323 
    2424    function set_prefix ($prefix) { 
     
    2929    } 
    3030 
    31     function start_el( &$output, $category, $depth = 0, $args = array(), $current_object_id = 0 ) { 
     31    function start_el (&$output, $category, $depth = 0, $args = array(), $id = 0) { 
    3232        extract($args); 
    3333               if ( empty($taxonomy) ) : 
  • feedwordpress/trunk/feedwordpress.php

    r1413324 r1551908  
    44Plugin URI: http://feedwordpress.radgeek.com/ 
    55Description: simple and flexible Atom/RSS syndication for WordPress 
    6 Version: 2016.0420 
     6Version: 2016.1211 
    77Author: Charles Johnson 
    88Author URI: http://radgeek.com/ 
     
    1212/** 
    1313 * @package FeedWordPress 
    14  * @version 2016.0420 
     14 * @version 2016.1211 
    1515 */ 
    1616 
     
    3333# -- Don't change these unless you know what you're doing... 
    3434 
    35 define ('FEEDWORDPRESS_VERSION', '2016.0420'); 
     35define ('FEEDWORDPRESS_VERSION', '2016.1211'); 
    3636define ('FEEDWORDPRESS_AUTHOR_CONTACT', 'http://radgeek.com/contact'); 
    3737 
     
    9797    require_once(ABSPATH . WPINC . '/class-simplepie.php'); 
    9898endif; 
    99 require_once(ABSPATH . WPINC . '/class-feed.php'); 
     99 
     100require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' ); 
     101require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' ); 
     102require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' ); 
     103require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' ); 
    100104 
    101105if (!function_exists('wp_insert_user')) : 
     
    217221 
    218222    add_action('init', array($feedwordpress, 'init')); 
     223    add_action('wp_loaded', array($feedwordpress, 'wp_loaded')); 
     224 
    219225    add_action('shutdown', array($feedwordpress, 'email_diagnostic_log')); 
    220226    add_action('shutdown', array($feedwordpress, 'feedwordpress_cleanup')); 
     
    238244 
    239245class FeedWordPressDiagnostic { 
    240     function feed_error ($error, $old, $link) { 
     246    public static function feed_error ($error, $old, $link) { 
    241247        $wpError = $error['object']; 
    242248        $url = $link->uri(); 
     
    672678        $syndicationMenu, 
    673679        NULL, 
    674         WP_PLUGIN_URL.'/'.FeedWordPress::path('feedwordpress-tiny.png') 
     680        plugins_url( '/'.FeedWordPress::path('feedwordpress-tiny.png') ) 
    675681    ); 
    676682 
     
    12051211 
    12061212        if (!!$hook) : 
    1207             if ($hook != 'init') : // Constrain values. 
     1213            if ($hook == 'init' or $hook == 'wp_loaded') : // Re-map init to wp_loaded 
     1214                $hook = ($params['setting only'] ? 'init' : 'wp_loaded'); 
     1215 
     1216            // Constrain possible values. If it's not an init or wp_loaded, it's a shutdown 
     1217            else : 
    12081218                $hook = 'shutdown'; 
    12091219            endif; 
     
    14661476        // functions that FWP uses. If it is a display page or a non-FWP admin 
    14671477        // page, don't. 
    1468         wp_register_style('feedwordpress-elements', WP_PLUGIN_URL.'/'.$fwp_path.'/feedwordpress-elements.css'); 
     1478        wp_register_style('feedwordpress-elements', plugins_url( '/'.$fwp_path.'/feedwordpress-elements.css') ); 
    14691479        if (FeedWordPressSettingsUI::is_admin()) : 
    14701480            // For JavaScript that needs to be generated dynamically 
     
    15131523        add_action('wp_ajax_fwp_xpathtest', array($this, 'fwp_xpathtest')); 
    15141524 
     1525    } /* FeedWordPress::init() */ 
     1526 
     1527    /** 
     1528     * FeedWordPress::wp_loaded (): Once all plugin and theme modules have been 
     1529     * loaded and initialized (by actions on the init hook, etc.), check the HTTP 
     1530     * request to see if we need to perform any special FeedWordPress-related 
     1531     * actions. 
     1532     * 
     1533     * @since 2016.0614 
     1534     */ 
     1535    public function wp_loaded () { 
    15151536        $this->clear_cache_magic_url(); 
    15161537        $this->update_magic_url(); 
    1517     } /* FeedWordPress::init() */ 
    1518  
     1538    } /* FeedWordPress::wp_loaded () */ 
     1539     
    15191540    public function fwp_feeds () { 
    15201541        $feeds = array(); 
     
    17701791    } /* FeedWordPress::user_can_richedit () */ 
    17711792 
     1793    public function clear_cache_magic_url () { 
     1794        if ($this->clear_cache_requested()) : 
     1795            $this->clear_cache(); 
     1796        endif; 
     1797    } /* FeedWordPress::clear_cache_magic_url() */ 
     1798 
     1799    public function clear_cache_requested () { 
     1800        return MyPHP::request('clear_cache'); 
     1801    } /* FeedWordPress::clear_cache_requested() */ 
     1802 
    17721803    public function update_magic_url () { 
    17731804        global $wpdb; 
     
    17751806        // Explicit update request in the HTTP request (e.g. from a cron job) 
    17761807        if ($this->update_requested()) : 
     1808 
    17771809            $this->update_hooked = "Initiating a CRON JOB CHECK-IN ON UPDATE SCHEDULE due to URL parameter = ".trim($this->val($_REQUEST['update_feedwordpress'])); 
    17781810 
     
    18041836            exit; 
    18051837        endif; 
    1806     } /* FeedWordPress::magic_update_url () */ 
    1807  
    1808     public function clear_cache_magic_url () { 
    1809         if ($this->clear_cache_requested()) : 
    1810             $this->clear_cache(); 
    1811         endif; 
    1812     } /* FeedWordPress::clear_cache_magic_url() */ 
    1813  
    1814     public function clear_cache_requested () { 
    1815         return MyPHP::request('clear_cache'); 
    1816     } /* FeedWordPress::clear_cache_requested() */ 
     1838    } /* FeedWordPress::update_magic_url () */ 
    18171839 
    18181840    public function update_requested () { 
    18191841        return MyPHP::request('update_feedwordpress'); 
    18201842    } /* FeedWordPress::update_requested() */ 
    1821  
     1843     
    18221844    public function update_requested_url () { 
    18231845        $ret = null; 
    18241846 
    18251847        if (($_REQUEST['update_feedwordpress']=='*') 
    1826         or (preg_match('|^http://.*|i', $_REQUEST['update_feedwordpress']))) : 
     1848        or (preg_match('|^[a-z]+://.*|i', $_REQUEST['update_feedwordpress']))) : 
    18271849            $ret = $_REQUEST['update_feedwordpress']; 
    18281850        endif; 
  • feedwordpress/trunk/feedwordpress_file.class.php

    r960798 r1551908  
    55 
    66class FeedWordPress_File extends WP_SimplePie_File { 
    7     function FeedWordPress_File ($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) { 
     7    public function __construct ($url, $timeout = 10, $redirects = 5, $headers = null, $useragent = null, $force_fsockopen = false) { 
    88        global $feedwordpress; 
    99        global $wp_version; 
  • feedwordpress/trunk/feedwordpresshttpauthenticator.class.php

    r638053 r1551908  
    1010         
    1111        add_filter('pre_http_request', array($this, 'pre_http_request'), 10, 3); 
    12         add_action('http_api_curl', array($this, 'set_auth_options'), 1000, 1); 
     12        add_action('http_api_curl', array($this, 'set_auth_options'), 1000, 3); 
    1313    } /* FeedWordPressHTTPAuthenticator::__construct () */ 
    1414 
     
    151151    } /* FeedWordPressHTTPAuthenticator::if_curl () */ 
    152152     
    153     function set_auth_options (&$handle) { 
     153    function set_auth_options ($handle, $r, $url) { 
    154154        if ('digest'==$this->args['authentication']) : 
    155155            curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); 
  • feedwordpress/trunk/feedwordpressrpc.class.php

    r960798 r1551908  
    55 
    66class FeedWordPressRPC { 
    7     function FeedWordPressRPC () { 
     7    public function __construct () { 
    88        add_filter('xmlrpc_methods', array($this, 'xmlrpc_methods')); 
    99    } 
  • feedwordpress/trunk/feedwordpresssyndicationpage.class.php

    r1160703 r1551908  
    1717 
    1818class FeedWordPressSyndicationPage extends FeedWordPressAdminPage { 
    19     function FeedWordPressSyndicationPage ($filename = NULL) { 
    20         FeedWordPressAdminPage::FeedWordPressAdminPage('feedwordpresssyndication', /*link=*/ NULL); 
     19    public function __construct ($filename = NULL) { 
     20        parent::__construct('feedwordpresssyndication', /*link=*/ NULL); 
    2121 
    2222        // No over-arching form element 
     
    478478        // Hey ho, let's go... 
    479479        ?> 
    480         <div style="float: left; background: #F5F5F5; padding-top: 5px; padding-right: 5px;"><a href="<?php print $this->form_action(); ?>"><img src="<?php print esc_html(WP_PLUGIN_URL."/${fwp_path}/feedwordpress.png"); ?>" alt="" /></a></div> 
     480        <div style="float: left; background: #F5F5F5; padding-top: 5px; padding-right: 5px;"><a href="<?php print $this->form_action(); ?>"><img src="<?php print esc_html(plugins_url( "/${fwp_path}/feedwordpress.png") ); ?>" alt="" /></a></div> 
    481481 
    482482        <p class="info" style="margin-bottom: 0px; border-bottom: 1px dotted black;">Managed by <a href="http://feedwordpress.radgeek.com/">FeedWordPress</a> 
     
    537537          <?php FeedWordPressSettingsUI::magic_input_tip_js('add-uri'); ?> 
    538538          <input type="hidden" name="action" value="<?php print FWP_SYNDICATE_NEW; ?>" /> 
    539           <input style="vertical-align: middle;" type="image" src="<?php print WP_PLUGIN_URL.'/'.$fwp_path; ?>/plus.png" alt="<?php print FWP_SYNDICATE_NEW; ?>" /></div> 
     539          <input style="vertical-align: middle;" type="image" src="<?php print plugins_url('/'.$fwp_path .'/plus.png' ); ?>" alt="<?php print FWP_SYNDICATE_NEW; ?>" /></div> 
    540540          </form> 
    541541        </div> <!-- id="add-single-uri" --> 
     
    603603          <input type="hidden" name="action" value="feedfinder" /> 
    604604          <input type="submit" class="button-secondary" name="action" value="<?php print FWP_SYNDICATE_NEW; ?>" /> 
    605           <div style="text-align: right; margin-right: 2.0em"><a id="turn-on-multiple-sources" href="#add-multiple-uri"><img style="vertical-align: middle" src="<?php print WP_PLUGIN_URL.'/'.$fwp_path; ?>/down.png" alt="" /> add multiple</a> 
     605          <div style="text-align: right; margin-right: 2.0em"><a id="turn-on-multiple-sources" href="#add-multiple-uri"><img style="vertical-align: middle" src="<?php print plugins_url('/' . $fwp_path . '/down.png'); ?>" alt="" /> add multiple</a> 
    606606          <span class="screen-reader-text"> or </span> 
    607           <a id="turn-on-opml-upload" href="#upload-opml"><img src="<?php print WP_PLUGIN_URL.'/'.$fwp_path; ?>/plus.png" alt="" style="vertical-align: middle" /> import source list</a></div> 
     607          <a id="turn-on-opml-upload" href="#upload-opml"><img src="<?php print plugins_url('/' . $fwp_path . '/plus.png'); ?>" alt="" style="vertical-align: middle" /> import source list</a></div> 
    608608          </li> 
    609609          </ul> 
     
    731731 
    732732<div class="hovered-component" style="display: inline-block; vertical-align: bottom"> 
    733 <a href="bitcoin:<?php print esc_attr(FEEDWORDPRESS_BLEG_BTC); ?>"><img src="<?php print esc_url(WP_PLUGIN_URL.'/'.FeedWordPress::path('btc-qr-64px.png')); ?>" alt="Donate" /></a> 
     733<a href="bitcoin:<?php print esc_attr(FEEDWORDPRESS_BLEG_BTC); ?>"><img src="<?php print esc_url( plugins_url('/'.FeedWordPress::path('btc-qr-64px.png') ) ); ?>" alt="Donate" /></a> 
    734734<div><a href="bitcoin:<?php print esc_attr(FEEDWORDPRESS_BLEG_BTC); ?>">via bitcoin<span class="hover-on pop-over" style="background-color: #ddffdd; padding: 5px; color: black; border-radius: 5px;">bitcoin:<?php print esc_html(FEEDWORDPRESS_BLEG_BTC); ?></span></a></div> 
    735735</div> 
    736736 
    737737<div style="display: inline-block; vertical-align: bottom"> 
    738 <input type="image" name="submit" src="<?php print esc_url(WP_PLUGIN_URL.'/'.FeedWordPress::path('paypal-donation-64px.png')); ?>" alt="Donate through PayPal" /> 
     738<input type="image" name="submit" src="<?php print esc_url(plugins_url('/' . FeedWordPress::path('paypal-donation-64px.png' ) ) ); ?>" alt="Donate through PayPal" /> 
    739739<input type="hidden" name="business" value="distro.to.feedback@radgeek.com"  /> 
    740740<input type="hidden" name="cmd" value="_xclick"  /> 
  • feedwordpress/trunk/inspectpostmeta.class.php

    r960798 r1551908  
    99 
    1010class InspectPostMeta { 
    11     function InspectPostMeta ($in_hook = true) { 
     11    public function __construct ($in_hook = true) { 
    1212        add_action('add_meta_boxes', array($this, 'add_meta_boxes'), 10, 2); 
    13     } 
     13    } /* InspectPostMeta::__construct () */ 
    1414     
    1515    function add_meta_boxes ($post_type, $post) { 
  • feedwordpress/trunk/magpiefromsimplepie.class.php

    r960798 r1551908  
    6767     * @uses MagpieFromSimplePie::is_atom 
    6868     */ 
    69     function MagpieFromSimplePie ($pie, $item = true) { 
     69    function __construct( $pie, $item = true ) { 
    7070        $this->pie = $pie; 
    7171 
     
    9696        $this->encoding = $pie->get_encoding(); 
    9797    } /* MagpieFromSimplePie constructor */ 
     98 
     99    function MagpieFromSimplePie( $pie, $item = true ) { 
     100        self::__construct( $pie, $item ); 
     101    } 
    98102     
    99103    /** 
  • feedwordpress/trunk/magpiemocklink.class.php

    r960798 r1551908  
    55    var $url; 
    66 
    7     function MagpieMockLink ($rss, $url) { 
     7    function __construct( $rss, $url ) { 
    88        $this->link = $rss; 
    99 
     
    2222        ); 
    2323    } /* function MagpieMockLink::MagpieMockLink () */ 
     24 
     25    function MagpieMockLink( $rss, $url ) { 
     26        self::__construct( $rss, $url ); 
     27    } 
    2428 
    2529    function poll ($crash_ts = NULL) { 
  • feedwordpress/trunk/performance-page.php

    r960798 r1551908  
    33 
    44class FeedWordPressPerformancePage extends FeedWordPressAdminPage { 
    5     function FeedWordPressPerformancePage () { 
     5    public function __construct() { 
    66        // Set meta-box context name 
    7         FeedWordPressAdminPage::FeedWordPressAdminPage('feedwordpressperformancepage'); 
     7        parent::__construct('feedwordpressperformancepage'); 
    88        $this->dispatch = 'feedwordpress_performance'; 
    99        $this->filename = __FILE__; 
    1010    } 
    1111 
    12     function has_link () { return false; } 
     12    public function has_link () { return false; } 
    1313 
    1414    function display () { 
  • feedwordpress/trunk/posts-page.php

    r680650 r1551908  
    1212     * @param mixed $link An object of class {@link SyndicatedLink} if created for one feed's settings, NULL if created for global default settings 
    1313     */ 
    14     function FeedWordPressPostsPage ($link = -1) { 
     14    public function __construct( $link = -1 ) { 
    1515        if (is_numeric($link) and -1 == $link) : 
    16             $link = FeedWordPressAdminPage::submitted_link(); 
    17         endif; 
    18  
    19         FeedWordPressAdminPage::FeedWordPressAdminPage('feedwordpresspostspage', $link); 
     16            $link = parent::submitted_link(); 
     17        endif; 
     18 
     19        parent::__construct('feedwordpresspostspage', $link); 
    2020        $this->dispatch = 'feedwordpress_admin_page_posts'; 
    2121        $this->filename = __FILE__; 
  • feedwordpress/trunk/readme.txt

    r1413324 r1551908  
    44Tags: syndication, aggregation, feed, atom, rss 
    55Requires at least: 3.0 
    6 Tested up to: 4.5.2 
    7 Stable tag: 2016.0420 
     6Tested up to: 4.7 
     7Stable tag: 2016.1211 
    88 
    99FeedWordPress syndicates content from feeds you choose into your WordPress weblog.  
     
    2424 
    2525[Planet]: http://www.planetplanet.org/ 
    26 [Feminist Blogs]: http://feministblogs.org/ 
    2726 
    2827FeedWordPress is designed with flexibility, ease of use, and ease of 
     
    9493 
    9594== Changelog == 
     95 
     96= 2016.1211 = 
     97 
     98*   WORDPRESS COMPATIBILITY: Tested with new versions of WordPress up to 4.7. 
     99 
     100*   PHP WARNINGS UNDER WP 4.7: Eliminated cause of a PHP warning under WP 4.7 
     101    "Parameter 1 to FeedWordPressHTTPAuthenticator::set_auth_options expected to be reference" 
     102    Warnings were due to a change in how http_api_curl hook is sometimes called 
     103    in WP 4.7; so I changed the signature of the event handling method to avoid 
     104    the notice. Props to @cogdog, @froomkin, @gwynethllewelyn et al. for flagging 
     105    the issue and @garymarkfuller for suggesting a preliminary fix to the issue 
     106    that was fairly similar to the solution I ended up adopting. 
     107 
     108*   PHP 7 and PHP Strict Standards compatibility changes: @alexiskulash @daidais 
     109    and @zoul0813 all sent pull requests through Github to fix some issues from 
     110    a very old code base that has made its way from PHP 3.x through 5.x to the 
     111    roll-out of PHP 7. Class methods should now fare better under modern versions 
     112    of PHP and generate fewer "Deprecated" notices. 
     113 
     114*   IMPROVEMENTS TO SCHEDULED AND AUTOMATIC UPDATES:  use wp_loaded hook to check 
     115    for magic URL parameters and to execute updates, to do pageload-based automatic 
     116    updates, etc. Ensures that anything plugins or themes need to do in init to set 
     117    up custom post types, taxonomies, etc. will be done before the update_feedwordpress 
     118    updates are attempted. If you saw posts not getting put into the correct custom 
     119    post type or custom taxonomies or similar problems when performing scheduled updates, 
     120    but the problem seemed to go away when you manually performed updates through the 
     121    wp-admin interface, then you might be able to solve those problems with this update. 
    96122 
    97123= 2016.0420 = 
  • feedwordpress/trunk/syndicatedlink.class.php

    r1160703 r1551908  
    4444    var $magpie = null; 
    4545 
    46     function SyndicatedLink ($link) { 
     46    function __construct( $link ) { 
    4747        global $wpdb; 
    4848 
     
    6161        add_filter('feedwordpress_update_complete', array($this, 'process_retirements'), 1000, 1); 
    6262    } /* SyndicatedLink::SyndicatedLink () */ 
     63 
     64    function SyndicatedLink( $link ) { 
     65        self::__construct( $link ); 
     66    } 
    6367 
    6468    function found () { 
  • feedwordpress/trunk/syndicatedpost.class.php

    r1413324 r1551908  
    22412241                                $userdata['user_login'] .= substr(md5(uniqid(microtime())), 0, 6); 
    22422242                                break; 
     2243                            case 'user_nicename_too_long' : 
     2244                                // Add a limited 50 caracters user_nicename based on user_login 
     2245                                                $userdata['user_nicename'] = mb_substr( $userdata['user_login'], 0, 50 ); 
     2246                                break; 
    22432247                            case 'existing_user_email' : 
    22442248                                // No disassemble! 
  • feedwordpress/trunk/syndicationdataqueries.class.php

    r960798 r1551908  
    22 
    33class SyndicationDataQueries { 
    4     function SyndicationDataQueries () { 
     4    public function __construct () { 
    55        add_action('init', array($this, 'init')); 
    66        add_action('parse_query', array($this, 'parse_query'), 10, 1); 
  • feedwordpress/trunk/updatedpostscontrol.class.php

    r296059 r1551908  
    22class UpdatedPostsControl { 
    33    var $page; 
    4     function UpdatedPostsControl (&$page) { 
     4    function __construct( &$page ) { 
    55        $this->page =& $page; 
    66    } /* UpdatedPostsControl constructor */ 
     7 
     8    function UpdatedPostsControl( &$page ) { 
     9        self::__construct( $page ); 
     10    } 
    711 
    812    function display () { 
Note: See TracChangeset for help on using the changeset viewer.