Skip to content

Commit 17b2089

Browse files
committed
Renamed Carbon_Page to Settings_Page
1 parent 665902b commit 17b2089

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

app/Core.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22
namespace VendorName\PluginName;
3-
//use WordPress_ToolKit\ObjectCache;
43

54
class Core extends Plugin {
65

app/EnqueueScripts.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function __construct() {
3131
public function enqueue_frontend_scripts() {
3232

3333
// Enqueue script dependencies
34-
$this->enqueue_bower_scripts();
34+
$this->enqueue_common_scripts();
3535

3636
// Enqueuing custom CSS for child theme (Twentysixteen was used for testing)
3737
wp_enqueue_style( 'wordpress-base-plugin', Helpers::get_script_url( 'assets/css/wordpress-base-plugin.css' ), null, Helpers::get_script_version( 'assets/css/wordpress-base-plugin.css' ) );
@@ -49,7 +49,7 @@ public function enqueue_frontend_scripts() {
4949
public function enqueue_admin_scripts() {
5050

5151
// Enqueue script dependencies
52-
$this->enqueue_bower_scripts();
52+
$this->enqueue_common_scripts();
5353

5454
// Enqueuing custom CSS for child theme (Twentysixteen was used for testing)
5555
wp_enqueue_style( 'wordpress-base-plugin', Helpers::get_script_url( 'assets/css/wordpress-base-plugin-admin.css' ), null, Helpers::get_script_version( 'assets/css/wordpress-base-plugin-admin.css' ) );
@@ -61,10 +61,10 @@ public function enqueue_admin_scripts() {
6161
}
6262

6363
/**
64-
* Enqueue Bower components from assets/components
64+
* Enqueue scripts common to the public site and WP Admin
6565
* @since 0.3.0
6666
*/
67-
private function enqueue_bower_scripts() {
67+
private function enqueue_common_scripts() {
6868

6969
// Enqueue common (frontend/backend) JavaScript
7070
wp_enqueue_script( 'jquery-waituntilexists', Helpers::get_script_url( 'assets/components/jq.waituntilexists/jquery.waitUntilExists.min.js', false ), array( 'jquery' ), '0.1.0' );

app/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function load_plugin() {
4242
new TGMPA();
4343

4444
// Add admin settings page using Carbon Fields framework
45-
new Settings\Carbon_Page();
45+
new Settings\Settings_Page();
4646

4747
// Add a settings page to the Network Admin (requires multisite)
4848
if ( is_multisite() ) new Settings\Network_Settings_Page();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @link https://carbonfields.net/docs/containers-theme-options/ Carbon Fields Theme Options
1212
* @since 0.1.0
1313
*/
14-
class Carbon_Page extends Plugin {
14+
class Settings_Page extends Plugin {
1515

1616
protected $settings_containers;
1717

0 commit comments

Comments
 (0)