WordPress.org

Plugin Directory

Changeset 641309 for feedwordpress


Ignore:
Timestamp:
12/18/12 20:54:18 (16 months ago)
Author:
radgeek
Message:

Bugfixes / Visual Editor, permalink rewriting for custom post types, and 'Call to member function setting() on a non-object' fatal error, category box add-category animation. Reorganize and clean up template function implementation a bit. Strip out some more compat code for no-longer supported versions of WordPress.

Location:
feedwordpress/trunk
Files:
1 added
9 edited

Legend:

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

    r638053 r641309  
    733733 
    734734function fwp_option_box_closer () { 
    735     global $wp_db_version; 
    736     if (isset($wp_db_version) and $wp_db_version >= FWP_SCHEMA_25) : 
    737735?> 
    738736    </div> <!-- class="inside" --> 
    739737    </div> <!-- class="stuffbox" --> 
    740738<?php 
    741     else : 
    742 ?> 
    743     </div> <!-- class="wrap" --> 
    744 <?php 
    745     endif; 
    746739} 
    747740 
     
    854847    $newcat = 'new'.$taxonomy; 
    855848     
    856     // Well, thank God they added "egory" before WP 3.0 came out. 
    857     if ('newcategory'==$newcat 
    858     and !FeedWordPressCompatibility::test_version(FWP_SCHEMA_30)) : 
    859         $newcat = 'newcat'; 
    860     endif; 
    861849    ?> 
    862850    <label class="screen-reader-text" for="<?php print $idPrefix; ?>new<?php print $taxonomy; ?>"><?php _e('Add New Category'); ?></label> 
     
    881869        'tab_index' => 3, 
    882870    ) ); ?> 
    883     <input type="button" id="<?php print $idPrefix; ?><?php print $taxonomy; ?>-add-sumbit" class="add:<?php print $idPrefix; ?><?php print $taxonomy; ?>checklist:<?php print $taxonomy; ?>-add add-categorychecklist-category-add button category-add-submit" value="<?php _e( 'Add' ); ?>" tabindex="3" /> 
     871    <input type="button" id="<?php print $idPrefix; ?><?php print $taxonomy; ?>-add-sumbit" class="add:<?php print $idPrefix; ?><?php print $taxonomy; ?>checklist:<?php print $idPrefix.$taxonomy; ?>-add add-categorychecklist-category-add button category-add-submit" value="<?php _e( 'Add' ); ?>" tabindex="3" /> 
    884872    <?php /* wp_nonce_field currently doesn't let us set an id different from name, but we need a non-unique name and a unique id */ ?> 
    885873    <input type="hidden" id="_ajax_nonce<?php print esc_html($idSuffix); ?>" name="_ajax_nonce" value="<?php print wp_create_nonce('add-'.$taxonomy); ?>" /> 
     
    946934     
    947935        wp_enqueue_script('post'); // for magic tag and category boxes 
    948         if (!FeedWordPressCompatibility::test_version(FWP_SCHEMA_29)) : // < 2.9 
    949             wp_enqueue_script('thickbox'); // for fold-up boxes 
    950         endif; 
    951936        wp_enqueue_script('admin-forms'); // for checkbox selection 
    952937     
  • feedwordpress/trunk/feedwordpress-elements.css

    r453139 r641309  
    1414} 
    1515.feedwordpress-category-div ul.category-tabs li.tabs { 
    16     -moz-border-radius: 3px 0 0 3px; 
    17     -webkit-border-radius: 3px 0 0 3px; 
     16    display: block; 
    1817    border-radius: 3px 0 0 3px; 
    1918    border-color: #DFDFDF; 
  • feedwordpress/trunk/feedwordpress-elements.js

    r453139 r641309  
    250250        var elem = el, color, rgbaTrans = new RegExp( "rgba\\(\\s*0,\\s*0,\\s*0,\\s*0\\s*\\)", "i" ); 
    251251        do { 
    252             color = jQuery.curCSS(elem, 'backgroundColor'); 
     252            color = jQuery(elem).css('backgroundColor'); 
    253253            if ( color != '' && color != 'transparent' && !color.match(rgbaTrans) || jQuery.nodeName(elem, "body") ) 
    254254                break; 
     
    300300            e.css( 'backgroundColor', s.addColor ).animate( { backgroundColor: color }, { complete: function() { $(this).css( 'backgroundColor', '' ); } } ); 
    301301        } 
    302          
    303302        list.each( function() { this.fwpList.process( e ); } ); 
    304303        return e; 
     
    395394    var elLink = elDiv.find('.link-rss-userpass-use'); 
    396395 
    397     console.log('--- ---'); 
    398     console.log(s.node); 
    399     console.log(elDiv); 
    400     console.log(elTable); 
    401     console.log(elMethod); 
    402     console.log(elLink); 
    403     console.log(elMethod.val()); 
    404      
    405396    // Set. 
    406397    if (s.value != null) { 
  • feedwordpress/trunk/feedwordpress.php

    r638058 r641309  
    44Plugin URI: http://feedwordpress.radgeek.com/ 
    55Description: simple and flexible Atom/RSS syndication for WordPress 
    6 Version: 2012.1212 
     6Version: 2012.1218 
    77Author: Charles Johnson 
    88Author URI: http://radgeek.com/ 
     
    1212/** 
    1313 * @package FeedWordPress 
    14  * @version 2012.1212 
     14 * @version 2012.1218 
    1515 */ 
    1616 
    1717# This uses code derived from: 
    1818# - wp-rss-aggregate.php by Kellan Elliot-McCrea <kellan@protest.net> 
    19 # - MagpieRSS by Kellan Elliot-McCrea <kellan@protest.net> 
     19# - SimplePie feed parser by Ryan Parman, Geoffrey Sneddon, Ryan McCue, et al. # -  MagpieRSS feed parser by Kellan Elliot-McCrea <kellan@protest.net> 
    2020# - Ultra-Liberal Feed Finder by Mark Pilgrim <mark@diveintomark.org> 
    2121# - WordPress Blog Tool and Publishing Platform <http://wordpress.org/> 
     
    3535# -- Don't change these unless you know what you're doing... 
    3636 
    37 define ('FEEDWORDPRESS_VERSION', '2012.1212'); 
     37define ('FEEDWORDPRESS_VERSION', '2012.1218'); 
    3838define ('FEEDWORDPRESS_AUTHOR_CONTACT', 'http://radgeek.com/contact'); 
    3939 
     
    6767define ('FWP_SCHEMA_HAS_USERMETA', 2966); 
    6868define ('FWP_SCHEMA_USES_ARGS_TAXONOMY', 12694); // Revision # for using $args['taxonomy'] to get link categories 
    69 define ('FWP_SCHEMA_20', 3308); // Database schema # for WP 2.0 
    70 define ('FWP_SCHEMA_21', 4772); // Database schema # for WP 2.1 
    71 define ('FWP_SCHEMA_23', 5495); // Database schema # for WP 2.3 
    72 define ('FWP_SCHEMA_25', 7558); // Database schema # for WP 2.5 
    73 define ('FWP_SCHEMA_26', 8201); // Database schema # for WP 2.6 
    74 define ('FWP_SCHEMA_27', 9872); // Database schema # for WP 2.7 
    75 define ('FWP_SCHEMA_28', 11548); // Database schema # for WP 2.8 
    76 define ('FWP_SCHEMA_29', 12329); // Database schema # for WP 2.9 
    7769define ('FWP_SCHEMA_30', 12694); // Database schema # for WP 3.0 
    7870 
     
    128120require_once("${dir}/feedwordpressrpc.class.php"); 
    129121require_once("${dir}/feedwordpresshttpauthenticator.class.php"); 
     122require_once("${dir}/feedwordpresslocalpost.class.php"); 
    130123 
    131124// Magic quotes are just about the stupidest thing ever. 
     
    172165    # Filter in original permalinks if the user wants that 
    173166    add_filter('post_link', 'syndication_permalink', /*priority=*/ 1, /*arguments=*/ 3); 
    174  
     167    add_filter('post_type_link', 'syndication_permalink', /*priority=*/ 1, /*arguments=*/ 4); 
     168     
    175169    # When foreign URLs are used for permalinks in feeds or display 
    176170    # contexts, they need to be escaped properly. 
     
    321315 */  
    322316function is_syndicated ($id = NULL) { 
    323     return (strlen(get_syndication_feed_id($id)) > 0); 
     317    $p = new FeedWordPressLocalPost($id); 
     318    return $p->is_syndicated(); 
    324319} /* function is_syndicated() */ 
    325320 
     
    347342 
    348343function get_syndication_source_property ($original, $id, $local, $remote = NULL) { 
    349     $ret = NULL; 
    350     if (is_null($original)) : 
    351         $original = FeedWordPress::use_aggregator_source_data(); 
    352     endif; 
    353      
    354     if (is_null($remote)) : 
    355         $remote = $local . '_original'; 
    356     endif; 
    357      
    358     $vals = ($original ? get_post_custom_values($remote, $id) : array()); 
    359     if (count($vals) < 1) : 
    360         $vals = get_post_custom_values($local, $id); 
    361     endif; 
    362      
    363     if (count($vals) > 0) : 
    364         $ret = $vals[0]; 
    365     endif; 
    366     return $ret; 
     344    $p = new FeedWordPressLocalPost($id); 
     345    return $p->meta($local, array("unproxy" => $original, "unproxied setting" => $remote)); 
    367346} /* function get_syndication_source_property () */ 
    368347 
    369 function the_syndication_source_link ($original = NULL, $id = NULL) { echo get_syndication_source_link($original, $id); } 
    370348function get_syndication_source_link ($original = NULL, $id = NULL) { 
    371     return get_syndication_source_property($original, $id, 'syndication_source_uri'); 
     349    $p = new FeedWordPressLocalPost($id); 
     350    return $p->syndication_source_link($original); 
    372351} /* function get_syndication_source_link() */ 
    373352 
    374 function the_syndication_source ($original = NULL, $id = NULL) { echo get_syndication_source($original, $id); } 
     353function the_syndication_source_link ($original = NULL, $id = NULL) { 
     354    echo get_syndication_source_link($original, $id); 
     355} /* function the_syndication_source_link() */ 
     356 
    375357function get_syndication_source ($original = NULL, $id = NULL) { 
    376     $ret = get_syndication_source_property($original, $id, 'syndication_source'); 
    377     if (is_null($ret) or strlen(trim($ret)) == 0) : // Fall back to URL of blog 
    378         $ret = feedwordpress_display_url(get_syndication_source_link()); 
    379     endif; 
    380     return $ret; 
     358    $p = new FeedWordPressLocalPost($id); 
     359    return $p->syndication_source($original); 
    381360} /* function get_syndication_source() */ 
    382361 
    383 function the_syndication_feed ($original = NULL, $id = NULL) { echo get_syndication_feed($original, $id); } 
     362function the_syndication_source ($original = NULL, $id = NULL) { 
     363    echo get_syndication_source($original, $id); 
     364} /* function the_syndication_source () */ 
     365 
    384366function get_syndication_feed ($original = NULL, $id = NULL) { 
    385     return get_syndication_source_property($original, $id, 'syndication_feed'); 
     367    $p = new FeedWordPressLocalPost($id); 
     368    return $p->syndication_feed($original); 
    386369} /* function get_syndication_feed() */ 
    387370 
    388 function the_syndication_feed_guid ($original = NULL, $id = NULL) { echo get_syndication_feed_guid($original, $id); } 
     371function the_syndication_feed ($original = NULL, $id = NULL) { 
     372    echo get_syndication_feed($original, $id); 
     373} /* function the_syndication_feed() */ 
     374 
    389375function get_syndication_feed_guid ($original = NULL, $id = NULL) { 
    390     $ret = get_syndication_source_property($original, $id, 'syndication_source_id'); 
    391     if (is_null($ret) or strlen(trim($ret))==0) : // Fall back to URL of feed 
    392         $ret = get_syndication_feed(); 
    393     endif; 
    394     return $ret; 
     376    $p = new FeedWordPressLocalPost($id); 
     377    return $p->syndication_feed_guid($original); 
    395378} /* function get_syndication_feed_guid () */ 
    396379 
    397 function get_syndication_feed_id ($id = NULL) { list($u) = get_post_custom_values('syndication_feed_id', $id); return $u; } 
    398 function the_syndication_feed_id ($id = NULL) { echo get_syndication_feed_id($id); } 
     380function the_syndication_feed_guid ($original = NULL, $id = NULL) { 
     381    echo get_syndication_feed_guid($original, $id); 
     382} /* function the_syndication_feed_guid () */ 
     383 
     384function get_syndication_feed_id ($id = NULL) { 
     385    $p = new FeedWordPressLocalPost($id); 
     386    return $p->feed_id(); 
     387} /* function get_syndication_feed_id () */ 
     388 
     389function the_syndication_feed_id ($id = NULL) { 
     390    echo get_syndication_feed_id($id); 
     391} /* function the_syndication_feed_id () */ 
    399392 
    400393function get_syndication_feed_object ($id = NULL) { 
    401     global $feedwordpress; 
    402      
    403     $feed_id = get_syndication_feed_id($id); 
    404     return $feedwordpress->subscription($feed_id); 
     394    $p = new FeedWordPressLocalPost($id); 
     395    return $p->feed(); 
    405396} /* function get_syndication_feed_object() */ 
    406397 
     
    416407 
    417408function get_syndication_permalink ($id = NULL) { 
    418     list($u) = get_post_custom_values('syndication_permalink', $id); return $u; 
    419 } 
     409    $p = new FeedWordPressLocalPost($id); 
     410    return $p->syndication_permalink(); 
     411} /* function get_syndication_permalink () */ 
     412 
    420413function the_syndication_permalink ($id = NULL) { 
    421414    echo get_syndication_permalink($id); 
    422 } 
     415} /* function the_syndication_permalink () */ 
    423416 
    424417/** 
     
    473466    global $feedwordpress_the_syndicated_content; 
    474467 
    475     $globalExpose = (get_option('feedwordpress_formatting_filters') == 'yes'); 
    476     $localExpose = get_post_custom_values('_feedwordpress_formatting_filters'); 
    477     $expose = ($globalExpose or ((count($localExpose) > 0) and $localExpose[0])); 
    478  
    479     if ( is_syndicated() and !$expose ) : 
     468    $p = new FeedWordPressLocalPost; 
     469    if (!$p->is_exposed_to_formatting_filters()) : 
    480470        $feedwordpress_the_syndicated_content = $text; 
    481471    else : 
     
    539529 * @global $feedwordpress_the_original_permalink 
    540530 */ 
    541 function syndication_permalink ($permalink = '', $post = null, $leavename = false) { 
     531function syndication_permalink ($permalink = '', $post = null, $leavename = false, $sample = false) { 
    542532    global $id; 
    543533    global $feedwordpress_the_original_permalink; 
     
    613603        $source = get_syndication_feed_object(); 
    614604        $replacement = NULL; 
     605         
    615606        if ($source->setting('munge comments feed links', 'munge_comments_feed_links', 'yes') != 'no') : 
    616607            $commentFeeds = get_post_custom_values('wfw:commentRSS'); 
     
    940931            $sub = $this->feeds[$which]; 
    941932        endif; 
    942          
     933 
     934        // If it's not in the in-memory cache already, try to load it from DB. 
     935        // This is necessary to fill requests for subscriptions that we don't 
     936        // cache in memory, e.g. for deactivated feeds. 
     937        if (is_null($sub)) : 
     938            $sub = get_bookmark($which); 
     939        endif; 
     940 
    943941        // Load 'er up if you haven't already. 
    944942        if (!is_null($sub) and !($sub InstanceOf SyndicatedLink)) : 
     
    13331331    function user_can_richedit ($rich_edit) { 
    13341332 
    1335         global $post; 
    1336          
    1337         if (is_syndicated($post->ID)) : 
     1333        $post = new FeedWordPressLocalPost; 
     1334         
     1335        if (!$post->is_exposed_to_formatting_filters()) : 
    13381336            // Disable visual editor and only allow operations 
    1339             // directly on HTML if post is syndicated. 
     1337            // directly on HTML if post is bypassing fmt filters 
    13401338            $rich_edit = false; 
    13411339        endif; 
     
    15171515            $links = array(); 
    15181516        endif; 
     1517 
    15191518        return $links; 
    15201519    } // function FeedWordPress::syndicated_links() 
  • feedwordpress/trunk/feedwordpress_parser.class.php

    r547993 r641309  
    11<?php 
    22class FeedWordPress_Parser extends SimplePie_Parser { 
     3    function reset_parser (&$xml) { 
     4        xml_parser_free($xml); 
     5                 
     6        $xml = xml_parser_create_ns($this->encoding, $this->separator); 
     7        xml_parser_set_option($xml, XML_OPTION_SKIP_WHITE, 1); 
     8        xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, 0); 
     9        xml_set_object($xml, $this); 
     10        xml_set_character_data_handler($xml, 'cdata'); 
     11        xml_set_element_handler($xml, 'tag_open', 'tag_close'); 
     12        xml_set_start_namespace_decl_handler($xml, 'start_xmlns'); 
     13    } 
     14     
    315    function parse (&$data, $encoding) { 
    416        $data = apply_filters('feedwordpress_parser_parse', $data, $encoding, $this); 
     
    7991 
    8092            // Parse! 
    81             if (!xml_parse($xml, $data, true)) 
     93            $parseResults = xml_parse($xml, $data, true); 
     94 
     95            $endOfJunk = strpos($data, '<?xml'); 
     96            if (!$parseResults and $endOfJunk > 0) : 
     97                // There is some junk before the feed prolog. Try to get rid of it. 
     98                $newData = substr($data, $endOfJunk); 
     99                $newData = trim($newData); 
     100                $this->reset_parser($xml); 
     101             
     102                $parseResults = xml_parse($xml, $newData, true); 
     103            endif; 
     104             
     105            if (!$parseResults) 
    82106            { 
    83107                if (class_exists('DOMDocument')) : 
  • feedwordpress/trunk/feedwordpresssyndicationpage.class.php

    r638053 r641309  
    735735                if (count($post_ids) > 0) : 
    736736                    foreach ($post_ids as $post_id) : 
    737                         if (FeedWordPressCompatibility::test_version(FWP_SCHEMA_29)) : 
    738                             // Force scrubbing of deleted post 
    739                             // rather than sending to Trashcan 
    740                             wp_delete_post( 
    741                                 /*postid=*/ $post_id, 
    742                                 /*force_delete=*/ true 
    743                             ); 
    744                         else : 
    745                             wp_delete_post($post_id); 
    746                         endif; 
     737                        // Force scrubbing of deleted post 
     738                        // rather than sending to Trashcan 
     739                        wp_delete_post( 
     740                            /*postid=*/ $post_id, 
     741                            /*force_delete=*/ true 
     742                        ); 
    747743                    endforeach; 
    748744                endif; 
  • feedwordpress/trunk/posts-page.php

    r278941 r641309  
    134134     * @uses FeedWordPress::syndicated_status() 
    135135     * @uses SyndicatedLink::syndicated_status() 
    136      * @uses SyndicatedPost::use_api() 
    137136     */  
    138137    /*static*/ function publication_box ($page, $box = NULL) { 
  • feedwordpress/trunk/readme.txt

    r638079 r641309  
    55Requires at least: 3.0 
    66Tested up to: 3.5 
    7 Stable tag: 2012.1212 
     7Stable tag: 2012.1218 
    88 
    99FeedWordPress syndicates content from feeds you choose into your WordPress weblog.  
     
    1212 
    1313* Author: [Charles Johnson](http://radgeek.com/contact) 
    14 * Project URI: <http://projects.radgeek.com/feedwordpress> 
     14* Project URI: <http://feedwordpress.radgeek.com/> 
    1515* License: GPL 2. See License below for copyright jots and tittles. 
    1616 
     
    9595== Changelog == 
    9696 
     97= 2012.1218 = 
     98 
     99*   WORDPRESS VISUAL EDITOR FIXED. There was an unlisted change in the 
     100    2012.1212 release which had the effect of disabling the WordPress Visual 
     101    Editor for all posts syndicated by FeedWordPress. Many users reported 
     102    this as a bug. It was actually a deliberate decision -- a crappy way to 
     103    try to deal with a crappy situation. (Many users had previously reported 
     104    a "bug" in which all the paragraph or line breaks seemed to be stripped 
     105    out of their syndicated posts; the issue turned out to be that the 
     106    Visual Editor was stripping out `<p>` and `<br/>` tags on the assumption 
     107    that the resulting post would be sent through standard WordPress 
     108    formatting filters. But under default settings, posts syndicated by FWP 
     109    deliberately bypass WordPress formatting filters.) In any case, this 
     110    version adopts a more flexible compromise. *If* FeedWordPress is set up 
     111    to bypass WordPress formatting filters (as it is by default), *then* 
     112    the Visual Editor will be disabled for syndicated posts (since using it 
     113    would produce incorrect results). If on the other hand FeedWordPress is 
     114    set up to expose syndicated posts to WordPress formatting filters (as it 
     115    usually is for those using the Visual Editor to manually edit posts), 
     116    then the Visual Editor tab will be re-enabled for syndicated posts. 
     117     
     118*   BUG FIX: PERMALINKS REWRITTEN FOR CUSTOM POST TYPES AS WELL AS NORMAL 
     119    WORDPRESS POSTS. If you had WordPress set up to syndicate incoming posts 
     120    to a custom post type (under Syndication > Posts & Links), and asked 
     121    FeedWordPress to make "permalinks point to the original site", then 
     122    previous versions of FeedWordPress would fail to do the rewriting -- 
     123    permalinks would only be rewritten to point to the original source for 
     124    normal WordPress posts, not for custom post types. In 2012.1218 this bug 
     125    has been fixed: all post types will now have permalinks rewritten unless 
     126    you request for permalinks to point to the local copy on your aggregator 
     127    site. 
     128     
     129*   BUG FIX: ELIMINATES "PHP Fatal error: Call to a member function 
     130    setting() on a non-object...." Some changes to the in-memory caching of 
     131    information about feed subscriptions could result in a fatal PHP error 
     132    in cases where you have de-activated one of your subscriptions, but 
     133    posts from that subscription were still in the archive. This would 
     134    normally show up through half-completed feeds or half-completed pages 
     135    that suddenly broke off in the middle, and displayed or logged an error 
     136    message like: "PHP Fatal error: Call to a member function setting() on a 
     137    non-object in {...}/wp-content/plugins/feedwordpress/feedwordpress.php 
     138    on line 615". This bug has been eliminated, so affected feeds and pages 
     139    should now render correctly, and the error message should no longer 
     140    appear. 
     141 
     142*   BUG FIX: CATEGORY BOXES IN SYNDICATION > CATEGORIES & TAGS. Some minor 
     143    bugs in the appearance and animation of category checkboxes (for 
     144    example, the checkbox used to select categories for syndicated posts on 
     145    the Syndication > Categories & Tags settings page) have been fixed. 
     146     
    97147= 2012.1212 = 
    98148 
     
    18901940 
    18911941-   [wp-rss-aggregate.php][] by [Kellan Elliot-McCrea](kellan@protest.net) 
    1892 -   [MagpieRSS][] by [Kellan Elliot-McCrea](kellan@protest.net) 
     1942-   [SimplePie][] feed parser by Ryan Parman, Geoffrey Sneddon, Ryan McCue, et al. 
     1943-   [MagpieRSS][] feed parser by [Kellan Elliot-McCrea](kellan@protest.net) 
    18931944-   [Ultra-Liberal Feed Finder][] by [Mark Pilgrim](mark@diveintomark.org) 
    18941945-   [WordPress Blog Tool and Publishing Platform](http://wordpress.org/) 
     
    19061957 
    19071958  [wp-rss-aggregate.php]: http://laughingmeme.org/archives/002203.html 
     1959  [SimplePie]: http://www.simplepie.org/ 
    19081960  [MagpieRSS]: http://magpierss.sourceforge.net/ 
    1909   [HTTP Navigator 2]: http://www.keyvan.net/2004/11/16/http-navigator/ 
    19101961  [Ultra-Liberal Feed Finder]: http://diveintomark.org/projects/feed_finder/ 
    19111962  [GNU General Public License]: http://www.gnu.org/copyleft/gpl.html 
  • feedwordpress/trunk/syndicatedpost.class.php

    r638053 r641309  
    21992199    } // function SyndicatedPost::category_ids () 
    22002200 
    2201     function use_api ($tag) { 
    2202         global $wp_db_version; 
    2203         switch ($tag) : 
    2204         case 'wp_insert_post': 
    2205             // Before 2.2, wp_insert_post does too much of the wrong stuff to use it 
    2206             // In 1.5 it was such a resource hog it would make PHP segfault on big updates 
    2207             $ret = (isset($wp_db_version) and $wp_db_version > FWP_SCHEMA_21); 
    2208             break; 
    2209         case 'post_status_pending': 
    2210             $ret = (isset($wp_db_version) and $wp_db_version > FWP_SCHEMA_23); 
    2211             break; 
    2212         endswitch; 
    2213         return $ret;         
    2214     } // function SyndicatedPost::use_api () 
    2215  
    22162201} /* class SyndicatedPost */ 
    22172202 
Note: See TracChangeset for help on using the changeset viewer.