Skip to content

Commit

Permalink
make typerocket includible from a plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
robojuicedev committed Aug 28, 2015
1 parent 74d7e65 commit baa5392
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
|
*/
define('TR_PLUGINS_FOLDER_PATH', __DIR__ . '/plugins');
define('TR_URL_PLUGINS_FOLDER', get_stylesheet_directory_uri() . '/' .TR_FOLDER . '/plugins');
define('TR_PLUGINS_URL', get_stylesheet_directory_uri() . '/' .TR_FOLDER . '/plugins');

/*
|--------------------------------------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions core/start.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
| Set the version for TypeRocket using the style major.minor.patch
|
*/
define( 'TR_VERSION', '2.0.11' );
define( 'TR_VERSION', '2.0.12' );

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -94,9 +94,8 @@
| the typerocket_loaded hook to access TypeRocket from your WP plugins.
|
*/
do_action( 'typerocket_loaded' );

add_action( 'after_setup_theme', function () {
do_action( 'typerocket_loaded' );
\TypeRocket\Registry::initHooks();
} );

Expand Down
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function defaultPaths()
'extend' => defined( 'TR_APP_FOLDER_PATH' ) ? TR_APP_FOLDER_PATH : __DIR__ . '/../app',
'urls' => array(
'theme' => get_stylesheet_directory_uri(),
'assets' => get_stylesheet_directory_uri() . '/' . self::$folder . '/assets',
'assets' => defined( 'TR_ASSETS_URL' ) ? TR_ASSETS_URL : get_stylesheet_directory_uri() . '/' . self::$folder . '/assets',
'plugins' => defined( 'TR_PLUGINS_URL' ) ? TR_PLUGINS_URL : get_stylesheet_directory_uri() . '/' . self::$folder . '/plugins'
)
);
Expand Down

0 comments on commit baa5392

Please sign in to comment.