Skip to content

Commit

Permalink
rename method naming: from components to modules
Browse files Browse the repository at this point in the history
it sounds more familiar to me
  • Loading branch information
contactjavas committed Nov 20, 2019
1 parent dff2e94 commit 5d13d35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions utilities/class-file-util.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ public static function empty_dir( $dir ) {
}

/**
* Load components.
* Load modules.
*
* @param string $dir The directory path.
* @param integer $max_depth Maximum depth to load the components.
* @param integer $max_depth Maximum depth to load the modules.
* @return void
*/
public static function load_components( $dir, $max_depth = 1 ) {
public static function load_modules( $dir, $max_depth = 1 ) {
$object = new File_Helper();
$object->load_components( $dir, $max_depth );
$object->load_modules( $dir, $max_depth );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions wp-functions-wrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WordPress Functions Wrapper
* Plugin URI: https://github.com/contactjavas/wp-functions-wrapper
* Description: WordPress functions wrapper for faster & simpler development.
* Version: 0.1.0
* Version: 0.1.1
* Author: Bagus
* Author URI: https://kembangweb.com/
* License: MIT
Expand All @@ -18,7 +18,7 @@
load_plugin_textdomain( 'wpfw', false, __DIR__ . '/languages' );

// identities constants.
define( 'WPFW_PLUGIN_VERSION', '0.1.0' );
define( 'WPFW_PLUGIN_VERSION', '0.1.1' );
define( 'WPFW_PLUGIN_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
define( 'WPFW_PLUGIN_DIR', rtrim( plugin_dir_path( __FILE__ ), '/' ) );

Expand Down

0 comments on commit 5d13d35

Please sign in to comment.