Skip to content

Commit

Permalink
Update textdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
girishpanchal30 committed Dec 18, 2024
1 parent c3c0461 commit b85b58f
Show file tree
Hide file tree
Showing 28 changed files with 666 additions and 666 deletions.
4 changes: 2 additions & 2 deletions obfx_modules/content-forms/form_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static function instance() {
*/
public function __clone() {
// Cloning instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'textdomain' ), '1.0.0' );
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}

/**
Expand All @@ -207,6 +207,6 @@ public function __clone() {
*/
public function __wakeup() {
// Unserializing instances of the class is forbidden.
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'textdomain' ), '1.0.0' );
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'themeisle-companion' ), '1.0.0' );
}
}
18 changes: 9 additions & 9 deletions obfx_modules/content-forms/includes/rest/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,32 @@ public function register_endpoints() {
'form_type' => array(
'type' => 'string',
'required' => true,
'description' => __( 'What type of form is submitted.', 'textdomain' ),
'description' => __( 'What type of form is submitted.', 'themeisle-companion' ),
),
'nonce' => array(
'type' => 'string',
'required' => true,
'description' => __( 'The security key', 'textdomain' ),
'description' => __( 'The security key', 'themeisle-companion' ),
),
'data' => array(
'type' => 'json',
'required' => true,
'description' => __( 'The form must have data', 'textdomain' ),
'description' => __( 'The form must have data', 'themeisle-companion' ),
),
'form_id' => array(
'type' => 'string',
'required' => true,
'description' => __( 'The form identifier.', 'textdomain' ),
'description' => __( 'The form identifier.', 'themeisle-companion' ),
),
'post_id' => array(
'type' => 'string',
'required' => true,
'description' => __( 'The form identifier.', 'textdomain' ),
'description' => __( 'The form identifier.', 'themeisle-companion' ),
),
'form_builder' => array(
'type' => 'string',
'required' => true,
'description' => __( 'Form builder.', 'textdomain' ),
'description' => __( 'Form builder.', 'themeisle-companion' ),
),
),
'permission_callback' => '__return_true',
Expand All @@ -79,7 +79,7 @@ public function submit_form( $request ) {
return new \WP_REST_Response(
array(
'success' => false,
'message' => esc_html__( 'Invalid nonce', 'textdomain' ),
'message' => esc_html__( 'Invalid nonce', 'themeisle-companion' ),
),
400
);
Expand All @@ -91,7 +91,7 @@ public function submit_form( $request ) {
return new \WP_REST_Response(
array(
'success' => false,
'message' => esc_html__( 'Invalid Data ', 'textdomain' ) . $form_id,
'message' => esc_html__( 'Invalid Data ', 'themeisle-companion' ) . $form_id,
),
400
);
Expand All @@ -103,7 +103,7 @@ public function submit_form( $request ) {
$form_builder = $request->get_param( 'form_builder' );
$return = array(
'success' => false,
'message' => esc_html__( 'Something went wrong', 'textdomain' ),
'message' => esc_html__( 'Something went wrong', 'themeisle-companion' ),
);

/**
Expand Down
Loading

0 comments on commit b85b58f

Please sign in to comment.