Making WordPress.org


Ignore:
Timestamp:
11/02/2015 02:49:54 AM (8 years ago)
Author:
nacin
Message:

Trac Notifications: New HTTP client & server, new SQLite driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/trac-notifications/trac-notifications.php

    r2024 r2026  
    66 */
    77
     8require __DIR__ . '/autoload.php';
     9
    810class wporg_trac_notifications {
    911
     
    2426        }
    2527
    26         spl_autoload_register( array( $this, 'autoload' ) );
    27 
    2828        if ( function_exists( 'add_db_table' ) ) {
    2929            $tables = array( 'ticket', '_ticket_subs', '_notifications', 'ticket_change', 'component', 'milestone', 'ticket_custom' );
     
    4444        add_action( 'template_redirect', array( $this, 'action_template_redirect' ) );
    4545        add_shortcode( 'trac-notifications', array( $this, 'notification_settings_page' ) );
    46     }
    47 
    48     function autoload( $class ) {
    49         $class = strtolower( $class );
    50         if ( 0 === strpos( $class, 'trac_notifications_' ) ) {
    51             require __DIR__ . '/' . str_replace( '_', '-', $class ) . '.php';
    52         }
    5346    }
    5447
Note: See TracChangeset for help on using the changeset viewer.