@@ -48,7 +48,7 @@ public function __construct() {
48
48
* @param string $selected_sitegen_homepage The selected sitegen homepage to publish.
49
49
* @return int|\WP_Error
50
50
*/
51
- public function publish_homepage ( string $ selected_sitegen_homepage ): int | \ WP_Error {
51
+ public function publish_homepage ( string $ selected_sitegen_homepage ) {
52
52
// Validate we have the selected homepage.
53
53
if (
54
54
! $ this ->sitegen_data ||
@@ -111,7 +111,7 @@ public function publish_homepage( string $selected_sitegen_homepage ): int|\WP_E
111
111
* @param string $slug The slug of the page to get the title for.
112
112
* @return string|false The page title, or false if not found.
113
113
*/
114
- public function get_sitemap_page_title ( string $ slug ): string | false {
114
+ public function get_sitemap_page_title ( string $ slug ) {
115
115
$ prompt = $ this ->get_prompt ();
116
116
$ locale = $ this ->get_locale ();
117
117
$ site_type = $ this ->get_site_type ();
@@ -167,7 +167,7 @@ public function add_page_to_navigation( int $post_id, string $page_title, string
167
167
*
168
168
* @return string|false
169
169
*/
170
- public function get_prompt (): string | false {
170
+ public function get_prompt () {
171
171
return ! empty ( $ this ->input_data ['prompt ' ] ) ? $ this ->input_data ['prompt ' ] : false ;
172
172
}
173
173
@@ -176,7 +176,7 @@ public function get_prompt(): string|false {
176
176
*
177
177
* @return string
178
178
*/
179
- public function get_site_type (): string {
179
+ public function get_site_type () {
180
180
return ! empty ( $ this ->input_data ['siteType ' ] ) ? $ this ->input_data ['siteType ' ] : 'business ' ;
181
181
}
182
182
@@ -185,7 +185,7 @@ public function get_site_type(): string {
185
185
*
186
186
* @return string
187
187
*/
188
- public function get_locale (): string {
188
+ public function get_locale () {
189
189
return ! empty ( $ this ->input_data ['locale ' ] ) ? $ this ->input_data ['locale ' ] : 'en_US ' ;
190
190
}
191
191
0 commit comments