@@ -205,7 +205,7 @@ public function create_item( $request ) {
205
205
$ request ['content ' ] = $ original_post ->post_content ;
206
206
$ request ['excerpt ' ] = $ original_post ->post_excerpt ;
207
207
208
- $ title = sprintf (
208
+ $ title = \ sprintf (
209
209
/* translators: %s: story title. */
210
210
__ ( '%s (Copy) ' , 'web-stories ' ),
211
211
$ original_post ->post_title
@@ -599,7 +599,7 @@ protected function prepare_links( $post ): array {
599
599
* @phpstan-return Links
600
600
*/
601
601
private function add_post_locking_link ( array $ links , WP_Post $ post ): array {
602
- $ base = sprintf ( '%s/%s ' , $ this ->namespace , $ this ->rest_base );
602
+ $ base = \ sprintf ( '%s/%s ' , $ this ->namespace , $ this ->rest_base );
603
603
$ lock_url = rest_url ( trailingslashit ( $ base ) . $ post ->ID . '/lock ' );
604
604
605
605
$ links ['https://api.w.org/lock ' ] = [
@@ -622,7 +622,7 @@ private function add_post_locking_link( array $links, WP_Post $post ): array {
622
622
623
623
if ( $ time && $ time > time () - $ time_window ) {
624
624
$ links ['https://api.w.org/lockuser ' ] = [
625
- 'href ' => rest_url ( sprintf ( '%s/%s ' , $ this ->namespace , 'users/ ' ) . $ user ),
625
+ 'href ' => rest_url ( \ sprintf ( '%s/%s ' , $ this ->namespace , 'users/ ' ) . $ user ),
626
626
'embeddable ' => true ,
627
627
];
628
628
}
@@ -667,7 +667,7 @@ private function add_publisher_logo_link( array $links, WP_Post $post ): array {
667
667
668
668
if ( $ publisher_logo_id ) {
669
669
$ links ['https://api.w.org/publisherlogo ' ] = [
670
- 'href ' => rest_url ( sprintf ( '%s/%s/%s ' , $ this ->namespace , 'media ' , $ publisher_logo_id ) ),
670
+ 'href ' => rest_url ( \ sprintf ( '%s/%s/%s ' , $ this ->namespace , 'media ' , $ publisher_logo_id ) ),
671
671
'embeddable ' => true ,
672
672
];
673
673
}
0 commit comments