File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,13 @@ public function sanitize( array $input ): array {
268
268
return $ new_input ;
269
269
}
270
270
271
+ public static function get_staging_domain (): string {
272
+ $ options_general = get_option ( 'staging2live_settings ' );
273
+ $ staging_name = empty ( $ options_general [ 'staging_name ' ] ) ? STL_STAGING_NAME_DEFAULT : $ this ->options_general [ 'staging_name ' ];
274
+
275
+ return trailingslashit ( STL_General::get_site_url () ) . trailingslashit ( $ staging_name );
276
+ }
277
+
271
278
/**
272
279
* WP ajax request for creating staging site
273
280
*/
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ public function render_admin_page() {
117
117
return ;
118
118
}
119
119
120
+ $ staging_domain = STL_Settings::get_staging_domain ();
120
121
$ file_comparer = STL_File_Comparer::get_instance ();
121
122
$ db_comparer = STL_DB_Comparer::get_instance ();
122
123
@@ -127,6 +128,7 @@ public function render_admin_page() {
127
128
<div class="wrap">
128
129
<h1><?php echo esc_html ( get_admin_page_title () ); ?> </h1>
129
130
131
+ Staging site: <a target="_blank" href="<?php echo $ staging_domain ; ?> "><?php echo $ staging_domain ; ?> </a>
130
132
<div class="stl-tabs">
131
133
<ul class="stl-tabs-nav">
132
134
<li><a href="#stl-tab-files"><?php esc_html_e ( 'File Changes ' , 'staging2live ' ); ?> </a></li>
You can’t perform that action at this time.
0 commit comments