Skip to content

Commit 6e5d41e

Browse files
committed
Fix schema documentation and update field names for consistency
1 parent 779679b commit 6e5d41e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

classes/class-to-specials-schema.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
/**
9-
* Returns schema Review data.
9+
* Returns schema Specials data.
1010
*
1111
* @since 10.2
1212
*/
@@ -23,9 +23,9 @@ public function __construct( WPSEO_Schema_Context $context ) {
2323
}
2424

2525
/**
26-
* Returns Review data.
26+
* Returns Specials data.
2727
*
28-
* @return array $data Review data.
28+
* @return array $data Specials data.
2929
*/
3030
public function generate() {
3131
$tour_list = get_post_meta( get_the_ID(), 'tour_to_special', false );

classes/class-to-specials.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function lsx_to_search_integration() {
9494
* Load the plugin text domain for translation.
9595
*/
9696
public function load_plugin_textdomain() {
97-
load_plugin_textdomain( 'to-specials', '', basename( LSX_TO_SPECIALS_PATH ) . '/languages');
97+
load_plugin_textdomain( 'to-specials' );
9898
}
9999

100100
/**

includes/metaboxes/config-special.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @link
99
* @copyright 2017 LightSpeedDevelopment
1010
*/
11-
11+
// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
1212
$metabox = array(
1313
'title' => esc_html__( 'Tour Operator Plugin', 'to-specials' ),
1414
'pages' => 'special',
@@ -152,7 +152,7 @@
152152

153153
$metabox['fields'][] = array(
154154
'id' => 'gallery_title',
155-
'name' => esc_html__( 'Gallery', 'to-team' ),
155+
'name' => esc_html__( 'Gallery', 'to-specials' ),
156156
'type' => 'title',
157157
);
158158

@@ -204,7 +204,7 @@
204204

205205
$metabox['fields'][] = array(
206206
'id' => 'related_title',
207-
'name' => esc_html__( 'Related', 'to-team' ),
207+
'name' => esc_html__( 'Related', 'to-specials' ),
208208
'type' => 'title',
209209
);
210210

0 commit comments

Comments
 (0)