Skip to content

Commit

Permalink
Moves files into separate directories (#8)
Browse files Browse the repository at this point in the history
* Moves files into separate directories

* Moves files into separate directories
  • Loading branch information
alexstandiford authored Aug 25, 2021
1 parent 5f21ad2 commit 4816f95
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Script.php → lib/abstracts/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function __get( $key ) {
if ( isset( $this->$key ) ) {
return $this->$key;
} else {
return new WP_Error( 'batch_task_param_not_set', 'The batch task key ' . $key . ' could not be found.' );
return new WP_Error( 'script_param_not_set', 'The script key ' . $key . ' could not be found.' );
}
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

// Add this loader.
add_action( 'underpin/before_setup', function ( $file, $class ) {
require_once( plugin_dir_path( __FILE__ ) . 'Script.php' );
require_once( plugin_dir_path( __FILE__ ) . 'Scripts.php' );
require_once( plugin_dir_path( __FILE__ ) . 'Script_Instance.php' );
require_once( plugin_dir_path( __FILE__ ) . 'Enqueue_Admin_Script.php' );
require_once( plugin_dir_path( __FILE__ ) . 'Enqueue_Script.php' );
require_once( plugin_dir_path( __FILE__ ) . 'lib/abstracts/Script.php' );
require_once( plugin_dir_path( __FILE__ ) . 'lib/loaders/Scripts.php' );
require_once( plugin_dir_path( __FILE__ ) . 'lib/factories/Script_Instance.php' );
require_once( plugin_dir_path( __FILE__ ) . 'lib/factories/Enqueue_Admin_Script.php' );
require_once( plugin_dir_path( __FILE__ ) . 'lib/factories/Enqueue_Script.php' );
Underpin\underpin()->get( $file, $class )->loaders()->add( 'scripts', [
'registry' => 'Underpin_Scripts\Loaders\Scripts',
] );
Expand Down

0 comments on commit 4816f95

Please sign in to comment.