Skip to content

Commit 9f85466

Browse files
committed
Remove text domain from translation strings in WP REST Attachments Controller.
1 parent 797627e commit 9f85466

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public function edit_media_item( $request ) {
564564
) {
565565
return new WP_Error(
566566
'rest_unknown_attachment',
567-
__( 'Unable to get meta information for file.', 'gutenberg' ),
567+
__( 'Unable to get meta information for file.' ),
568568
array( 'status' => 404 )
569569
);
570570
}
@@ -574,7 +574,7 @@ public function edit_media_item( $request ) {
574574
if ( ! in_array( $mime_type, $supported_types, true ) ) {
575575
return new WP_Error(
576576
'rest_cannot_edit_file_type',
577-
__( 'This type of file cannot be edited.', 'gutenberg' ),
577+
__( 'This type of file cannot be edited.' ),
578578
array( 'status' => 400 )
579579
);
580580
}
@@ -623,7 +623,7 @@ public function edit_media_item( $request ) {
623623
if ( 0 === count( $modifiers ) ) {
624624
return new WP_Error(
625625
'rest_image_not_edited',
626-
__( 'The image was not edited. Edit the image before applying the changes.', 'gutenberg' ),
626+
__( 'The image was not edited. Edit the image before applying the changes.' ),
627627
array( 'status' => 400 )
628628
);
629629
}
@@ -644,7 +644,7 @@ public function edit_media_item( $request ) {
644644
if ( is_wp_error( $image_editor ) ) {
645645
return new WP_Error(
646646
'rest_unknown_image_file_type',
647-
__( 'Unable to edit this image.', 'gutenberg' ),
647+
__( 'Unable to edit this image.' ),
648648
array( 'status' => 500 )
649649
);
650650
}
@@ -662,7 +662,7 @@ public function edit_media_item( $request ) {
662662
if ( is_wp_error( $result ) ) {
663663
return new WP_Error(
664664
'rest_image_flip_failed',
665-
__( 'Unable to flip this image.', 'gutenberg' ),
665+
__( 'Unable to flip this image.' ),
666666
array( 'status' => 500 )
667667
);
668668
}
@@ -677,7 +677,7 @@ public function edit_media_item( $request ) {
677677
if ( is_wp_error( $result ) ) {
678678
return new WP_Error(
679679
'rest_image_rotation_failed',
680-
__( 'Unable to rotate this image.', 'gutenberg' ),
680+
__( 'Unable to rotate this image.' ),
681681
array( 'status' => 500 )
682682
);
683683
}
@@ -699,7 +699,7 @@ public function edit_media_item( $request ) {
699699
if ( is_wp_error( $result ) ) {
700700
return new WP_Error(
701701
'rest_image_crop_failed',
702-
__( 'Unable to crop this image.', 'gutenberg' ),
702+
__( 'Unable to crop this image.' ),
703703
array( 'status' => 500 )
704704
);
705705
}
@@ -1525,53 +1525,53 @@ protected function check_upload_size( $file ) {
15251525
protected function get_edit_media_item_args() {
15261526
$args = array(
15271527
'src' => array(
1528-
'description' => __( 'URL to the edited image file.', 'gutenberg' ),
1528+
'description' => __( 'URL to the edited image file.' ),
15291529
'type' => 'string',
15301530
'format' => 'uri',
15311531
'required' => true,
15321532
),
15331533
// The `modifiers` param takes precedence over the older format.
15341534
'modifiers' => array(
1535-
'description' => __( 'Array of image edits.', 'gutenberg' ),
1535+
'description' => __( 'Array of image edits.' ),
15361536
'type' => 'array',
15371537
'minItems' => 1,
15381538
'items' => array(
1539-
'description' => __( 'Image edit.', 'gutenberg' ),
1539+
'description' => __( 'Image edit.' ),
15401540
'type' => 'object',
15411541
'required' => array(
15421542
'type',
15431543
'args',
15441544
),
15451545
'oneOf' => array(
15461546
array(
1547-
'title' => __( 'Flip', 'gutenberg' ),
1547+
'title' => __( 'Flip' ),
15481548
'properties' => array(
15491549
'type' => array(
1550-
'description' => __( 'Flip type.', 'gutenberg' ),
1550+
'description' => __( 'Flip type.' ),
15511551
'type' => 'string',
15521552
'enum' => array( 'flip' ),
15531553
),
15541554
'args' => array(
1555-
'description' => __( 'Flip arguments.', 'gutenberg' ),
1555+
'description' => __( 'Flip arguments.' ),
15561556
'type' => 'object',
15571557
'required' => array(
15581558
'flip',
15591559
),
15601560
'properties' => array(
15611561
'flip' => array(
1562-
'description' => __( 'Flip direction. [ horizontal, vertical ] 0 for no flip, 1 for flip.', 'gutenberg' ),
1562+
'description' => __( 'Flip direction. [ horizontal, vertical ] 0 for no flip, 1 for flip.' ),
15631563
'type' => 'object',
15641564
'required' => array(
15651565
'horizontal',
15661566
'vertical',
15671567
),
15681568
'properties' => array(
15691569
'horizontal' => array(
1570-
'description' => __( 'Horizontal flip direction. 0 for no flip, 1 for flip.', 'gutenberg' ),
1570+
'description' => __( 'Horizontal flip direction. 0 for no flip, 1 for flip.' ),
15711571
'type' => 'number',
15721572
),
15731573
'vertical' => array(
1574-
'description' => __( 'Vertical flip direction. 0 for no flip, 1 for flip.', 'gutenberg' ),
1574+
'description' => __( 'Vertical flip direction. 0 for no flip, 1 for flip.' ),
15751575
'type' => 'number',
15761576
),
15771577
),
@@ -1581,38 +1581,38 @@ protected function get_edit_media_item_args() {
15811581
),
15821582
),
15831583
array(
1584-
'title' => __( 'Rotation', 'gutenberg' ),
1584+
'title' => __( 'Rotation' ),
15851585
'properties' => array(
15861586
'type' => array(
1587-
'description' => __( 'Rotation type.', 'gutenberg' ),
1587+
'description' => __( 'Rotation type.' ),
15881588
'type' => 'string',
15891589
'enum' => array( 'rotate' ),
15901590
),
15911591
'args' => array(
1592-
'description' => __( 'Rotation arguments.', 'gutenberg' ),
1592+
'description' => __( 'Rotation arguments.' ),
15931593
'type' => 'object',
15941594
'required' => array(
15951595
'angle',
15961596
),
15971597
'properties' => array(
15981598
'angle' => array(
1599-
'description' => __( 'Angle to rotate clockwise in degrees.', 'gutenberg' ),
1599+
'description' => __( 'Angle to rotate clockwise in degrees.' ),
16001600
'type' => 'number',
16011601
),
16021602
),
16031603
),
16041604
),
16051605
),
16061606
array(
1607-
'title' => __( 'Crop', 'gutenberg' ),
1607+
'title' => __( 'Crop' ),
16081608
'properties' => array(
16091609
'type' => array(
1610-
'description' => __( 'Crop type.', 'gutenberg' ),
1610+
'description' => __( 'Crop type.' ),
16111611
'type' => 'string',
16121612
'enum' => array( 'crop' ),
16131613
),
16141614
'args' => array(
1615-
'description' => __( 'Crop arguments.', 'gutenberg' ),
1615+
'description' => __( 'Crop arguments.' ),
16161616
'type' => 'object',
16171617
'required' => array(
16181618
'left',
@@ -1622,19 +1622,19 @@ protected function get_edit_media_item_args() {
16221622
),
16231623
'properties' => array(
16241624
'left' => array(
1625-
'description' => __( 'Horizontal position from the left to begin the crop as a percentage of the image width.', 'gutenberg' ),
1625+
'description' => __( 'Horizontal position from the left to begin the crop as a percentage of the image width.' ),
16261626
'type' => 'number',
16271627
),
16281628
'top' => array(
1629-
'description' => __( 'Vertical position from the top to begin the crop as a percentage of the image height.', 'gutenberg' ),
1629+
'description' => __( 'Vertical position from the top to begin the crop as a percentage of the image height.' ),
16301630
'type' => 'number',
16311631
),
16321632
'width' => array(
1633-
'description' => __( 'Width of the crop as a percentage of the image width.', 'gutenberg' ),
1633+
'description' => __( 'Width of the crop as a percentage of the image width.' ),
16341634
'type' => 'number',
16351635
),
16361636
'height' => array(
1637-
'description' => __( 'Height of the crop as a percentage of the image height.', 'gutenberg' ),
1637+
'description' => __( 'Height of the crop as a percentage of the image height.' ),
16381638
'type' => 'number',
16391639
),
16401640
),
@@ -1645,33 +1645,33 @@ protected function get_edit_media_item_args() {
16451645
),
16461646
),
16471647
'rotation' => array(
1648-
'description' => __( 'The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead.', 'gutenberg' ),
1648+
'description' => __( 'The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead.' ),
16491649
'type' => 'integer',
16501650
'minimum' => 0,
16511651
'exclusiveMinimum' => true,
16521652
'maximum' => 360,
16531653
'exclusiveMaximum' => true,
16541654
),
16551655
'x' => array(
1656-
'description' => __( 'As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead.', 'gutenberg' ),
1656+
'description' => __( 'As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead.' ),
16571657
'type' => 'number',
16581658
'minimum' => 0,
16591659
'maximum' => 100,
16601660
),
16611661
'y' => array(
1662-
'description' => __( 'As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead.', 'gutenberg' ),
1662+
'description' => __( 'As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead.' ),
16631663
'type' => 'number',
16641664
'minimum' => 0,
16651665
'maximum' => 100,
16661666
),
16671667
'width' => array(
1668-
'description' => __( 'As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead.', 'gutenberg' ),
1668+
'description' => __( 'As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead.' ),
16691669
'type' => 'number',
16701670
'minimum' => 0,
16711671
'maximum' => 100,
16721672
),
16731673
'height' => array(
1674-
'description' => __( 'As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead.', 'gutenberg' ),
1674+
'description' => __( 'As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead.' ),
16751675
'type' => 'number',
16761676
'minimum' => 0,
16771677
'maximum' => 100,

0 commit comments

Comments
 (0)