Skip to content

Commit 986f5a6

Browse files
committed
Fix hints
1 parent 7b2baba commit 986f5a6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Rest/DuplicateController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function create_item( $request ) {
100100
'status' => 403,
101101
'hint' => sprintf(
102102
/* translators: %s: post type slug */
103-
__( "Add 'show_in_rest' => true under the 'duplicate' section in the model config for '%s' in src/models/.", 'saltus-framework' ),
103+
__( "Add 'show_in_rest' => true under 'features' => [ 'duplicate' => ... ] in the model config for '%s' in src/models/.", 'saltus-framework' ),
104104
$post->post_type
105105
),
106106
]

src/Rest/ExportController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function get_item( $request ) {
9898
'status' => 403,
9999
'hint' => sprintf(
100100
/* translators: %s: post type slug */
101-
__( "Add 'show_in_rest' => true under the 'single_export' section in the model config for '%s' in src/models/.", 'saltus-framework' ),
101+
__( "Add 'show_in_rest' => true under 'features' => [ 'single_export' => ... ] in the model config for '%s' in src/models/.", 'saltus-framework' ),
102102
$post->post_type
103103
),
104104
]

0 commit comments

Comments
 (0)