Browse files

make callback arg in scb_init() from scb-load.php optional

git-svn-id: http://plugins.svn.wordpress.org/scb-framework/trunk@591821 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information...
1 parent 239a736 commit 4abfc08076a2064720eb7582efaf59dec429092a @scribu committed Aug 29, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 scb-load.php
View
5 scb-load.php
@@ -10,7 +10,8 @@
include SCB_LOAD_MU . substr( $className, 3 ) . '.php';
}
-function scb_init( $callback ) {
- call_user_func( $callback );
+function scb_init( $callback = '' ) {
+ if ( $callback )
+ call_user_func( $callback );
}

0 comments on commit 4abfc08

Please sign in to comment.