Plugin Directory

Changeset 175295


Ignore:
Timestamp:
11/19/2009 06:11:01 PM (16 years ago)
Author:
elebail
Message:

perf update

Location:
feeds-in-theme
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • feeds-in-theme/trunk/feeds-in-theme.php

    r165445 r175295  
    44 * Plugin URI: #
    55 * Description: Recreates the standard WordPress feeds to alow using theme templates in the feeds.
    6  * Version: 1.0.0
     6 * Version: 1.0.1
    77 * Author: Eric Le Bail
    88 * Author URI: #
     
    2929 */
    3030
     31if (!defined('DIRECTORY_SEPARATOR'))
     32{
     33    if (strpos(php_uname('s'), 'Win') !== false )
     34    define('DIRECTORY_SEPARATOR', '\\');
     35    else
     36    define('DIRECTORY_SEPARATOR', '/');
     37}
     38$pluginPath = ABSPATH.PLUGINDIR.DIRECTORY_SEPARATOR."wp-feeds-in-theme";
     39$filePath = $pluginPath.DIRECTORY_SEPARATOR.basename(__FILE__);
     40// Plugin install
     41register_activation_hook($filePath,'fit_install');
     42// plugin initialisation.
    3143add_action('init', 'fit_add_feed');
    3244
    33 
    3445/**
    35  * Function that creates the custom feeds and add a rewriterules to
    36  * call the feeds.
     46 * Function that creates the custom feeds.
    3747 * @return void.
    3848 */
    3949function fit_add_feed() {
    40     global $wp_rewrite;
    4150    add_feed('trdf', 'fit_do_feed_rdf');
    4251    add_feed('trss', 'fit_do_feed_rss');
    4352    add_feed('trss2', 'fit_do_feed_rss2');
    4453    add_feed('tatom', 'fit_do_feed_atom');
     54}
     55
     56/**
     57 * Function that add a rewriterules to call the feeds.
     58 * @return void.
     59 */
     60function fit_install() {
     61    global $wp_rewrite;
    4562    add_action('generate_rewrite_rules', 'fit_rewrite_rules');
    4663    $wp_rewrite->flush_rules();
    4764}
     65
    4866
    4967/**
  • feeds-in-theme/trunk/readme.txt

    r165445 r175295  
    2626This plugin has been tested with WP2.6.5, WP2.8.4 and WPmu2.8.4
    2727
    28 Updates:
    29 
    30 1.0.0 : Test under WP2.6.5, WP 2.8.4, WPmu2.8.4
    3128
    3229== Update Log ==
     30
     311.0.1 : Performance improovment.
    3332
    34331.0.0 : Test under WP2.6.5, WP 2.8.4, WPmu2.8.4
Note: See TracChangeset for help on using the changeset viewer.