Changeset 632761
- Timestamp:
- 12/01/2012 08:08:49 PM (13 years ago)
- Location:
- menu-rules/trunk
- Files:
-
- 1 deleted
- 3 edited
-
admin/admin.php (modified) (3 diffs)
-
libs/pb-framework/forms.php (modified) (2 diffs)
-
libs/pb-framework/load.php (deleted)
-
libs/pb-framework/meta-box.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
menu-rules/trunk/admin/admin.php
r603576 r632761 12 12 // Include PB Framework 13 13 // 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'; 16 15 17 16 add_action( 'admin_init', __CLASS__ . '::init' ); … … 67 66 static function post_updated_messages( $messages ) { 68 67 global $post, $post_ID; 69 68 70 69 $messages[ Menu_Rules::get_var( 'post_type' ) ] = array( 71 70 0 => '', … … 81 80 10 => __( 'Menu rule draft updated.', 'menu-rules' ), 82 81 ); 83 82 84 83 return $messages; 85 84 } -
menu-rules/trunk/libs/pb-framework/forms.php
r603355 r632761 4 4 // Forked from scb-framework: http://scribu.net/wordpress/scb-framework 5 5 // New features include: multiple select boxes, optgroups 6 // TODO: Make singleton to allow class extensions 6 7 if ( ! class_exists( 'PB_Forms' ) ): 7 8 8 9 // On plugins_loaded 9 10 require dirname( __FILE__ ) . '/../scb-framework/scb/load.php'; 10 scb_init( /* create_function( '', 'require_once dirname( __FILE__ ) . "/../libs/pb-framework/forms.php";' ) */);11 scb_init(); 11 12 12 13 class PB_Forms { … … 579 580 } 580 581 } 582 583 endif; -
menu-rules/trunk/libs/pb-framework/meta-box.php
r603355 r632761 1 1 <?php 2 3 if ( ! class_exists( 'PB_Meta_Box' ) ): 4 5 require_once dirname( __FILE__ ) . '/forms.php'; 2 6 3 7 abstract class PB_Meta_Box { … … 110 114 } 111 115 } 116 117 endif;
Note: See TracChangeset
for help on using the changeset viewer.