Skip to content

Commit 80037e1

Browse files
committed
Minor cleanup
1 parent f812296 commit 80037e1

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ It may also be used as the means of [separating custom code](http://www.billeric
1515
3. `cd wordpress-base-plugin`
1616
4. `composer install`
1717

18-
### TODO
18+
## TODO
1919

2020
* Refactor code
2121
* Add/test/document object caching class

app/Plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ public function load_plugin() {
2424

2525
if(!$this->verify_dependencies()) return;
2626

27+
// Add admin settings page(s)
28+
new Settings();
29+
2730
// Enqueue scripts
2831
new EnqueueScripts();
2932

3033
// Core plugin logic
3134
new Core();
3235

33-
// Add admin settings page(s)
34-
new Settings();
35-
3636
// Create Custom Post Type(s)
3737
new CPT();
3838

wordpress-base-plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
'textdomain' => 'my-plugin',
4343
'object_cache_group' => 'my_plugin_cache',
4444
'object_cache_expire' => 72, // In hours
45-
'deps' => ['php' => '5.3.29', 'carbon_fields' => '2.0.0'],
45+
'deps' => ['php' => '5.3.29', 'carbon_fields' => '2.0.0'], // Optional
4646
'prefix' => 'myplugin_' // Change to your own unique field prefix
4747
));
4848
?>

0 commit comments

Comments
 (0)