Skip to content

Commit dcb91fe

Browse files
fix: match menu item priority, icon slug
1 parent cb5e176 commit dcb91fe

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

includes/class-STL_Settings.php

+9
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,15 @@ public function add_plugin_page(){
5454
90
5555
);
5656

57+
add_submenu_page(
58+
'staging2live',
59+
'Sync',
60+
'Sync',
61+
'manage_options',
62+
'staging2live',
63+
array( $this, 'create_admin_page' )
64+
);
65+
5766
add_action( 'admin_init', array( $this, 'options_init') );
5867

5968
}

includes/class-stl-admin.php

+16-7
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/**
1616
* Class STL_Admin
17-
*
17+
*
1818
* Handles the admin page and UI of the plugin
1919
*/
2020
class STL_Admin {
@@ -60,8 +60,17 @@ public function add_admin_menu() {
6060
'manage_options',
6161
'staging2live',
6262
array( $this, 'render_admin_page' ),
63-
'dashicons-migrate',
64-
30
63+
'dashicons-controls-repeat',
64+
90
65+
);
66+
67+
add_submenu_page(
68+
'staging2live',
69+
'Sync',
70+
'Sync',
71+
'manage_options',
72+
'staging2live',
73+
array( $this, 'render_admin_page' )
6574
);
6675
}
6776

@@ -117,18 +126,18 @@ public function render_admin_page() {
117126
?>
118127
<div class="wrap">
119128
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
120-
129+
121130
<div class="stl-tabs">
122131
<ul class="stl-tabs-nav">
123132
<li><a href="#stl-tab-files"><?php esc_html_e( 'File Changes', 'staging2live' ); ?></a></li>
124133
<li><a href="#stl-tab-database"><?php esc_html_e( 'Database Changes', 'staging2live' ); ?></a></li>
125134
</ul>
126-
135+
127136
<div id="stl-tab-files" class="stl-tab-content">
128137
<h2><?php esc_html_e( 'File Changes', 'staging2live' ); ?></h2>
129138
<?php $this->render_file_changes( $file_changes ); ?>
130139
</div>
131-
140+
132141
<div id="stl-tab-database" class="stl-tab-content">
133142
<h2><?php esc_html_e( 'Database Changes', 'staging2live' ); ?></h2>
134143
<?php $this->render_db_changes( $db_changes ); ?>
@@ -242,4 +251,4 @@ private function get_status_label( $status ) {
242251
}
243252

244253
// Initialize the admin class
245-
STL_Admin::get_instance();
254+
STL_Admin::get_instance();

0 commit comments

Comments
 (0)