Plugin Directory

Changeset 632761


Ignore:
Timestamp:
12/01/2012 08:08:49 PM (13 years ago)
Author:
phill_brown
Message:

Ditched framework loader - didn't work when libraries weren't included in newer plugins

Location:
menu-rules/trunk
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • menu-rules/trunk/admin/admin.php

    r603576 r632761  
    1212        // Include PB Framework
    1313        // This has to be done at plugins_loaded but ideally it should go in the meta box class
    14         require dirname( __FILE__ ) . '/../libs/pb-framework/load.php';
    15         PB_Framework::load( array( 'meta-box', 'forms' ) );
     14        require_once dirname( __FILE__ ) . '/../libs/pb-framework/meta-box.php';
    1615
    1716        add_action( 'admin_init', __CLASS__ . '::init' );
     
    6766    static function post_updated_messages( $messages ) {
    6867        global $post, $post_ID;
    69    
     68
    7069        $messages[ Menu_Rules::get_var( 'post_type' ) ] = array(
    7170            0 => '',
     
    8180            10 => __( 'Menu rule draft updated.', 'menu-rules' ),
    8281        );
    83    
     82
    8483        return $messages;
    8584    }
  • menu-rules/trunk/libs/pb-framework/forms.php

    r603355 r632761  
    44// Forked from scb-framework: http://scribu.net/wordpress/scb-framework
    55// New features include: multiple select boxes, optgroups
    6 // TODO: Make singleton to allow class extensions
     6
     7if ( ! class_exists( 'PB_Forms' ) ):
    78
    89// On plugins_loaded
    910require dirname( __FILE__ ) . '/../scb-framework/scb/load.php';
    10 scb_init( /* create_function( '', 'require_once dirname( __FILE__ ) . "/../libs/pb-framework/forms.php";' ) */ );
     11scb_init();
    1112
    1213class PB_Forms {
     
    579580    }
    580581}
     582
     583endif;
  • menu-rules/trunk/libs/pb-framework/meta-box.php

    r603355 r632761  
    11<?php
     2
     3if ( ! class_exists( 'PB_Meta_Box' ) ):
     4
     5require_once dirname( __FILE__ ) . '/forms.php';
    26
    37abstract class PB_Meta_Box {
     
    110114    }
    111115}
     116
     117endif;
Note: See TracChangeset for help on using the changeset viewer.