Skip to content

Commit

Permalink
Fix the only WPCS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kasparsd authored and pereirinha committed Oct 6, 2020
1 parent 871feb7 commit 4a3795a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions php/class-connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ public function usage_notices() {
}
// translators: Placeholders are URLS and percentage values.
$message = sprintf(
/* translators: %1$s quota size, %2$s amount in percent, %3$s link URL, %4$s link anchor text. */
__(
'<span class="dashicons dashicons-cloudinary"></span> You are %2$s of the way through your monthly quota for %1$s on your Cloudinary account. If you exceed your quota, the Cloudinary plugin will be deactivated until your next billing cycle and your media assets will be served from your WordPress Media Library. You may wish to <a href="%3$s" target="_blank">%4$s</a> and increase your quota to ensure you maintain full functionality.',
'cloudinary'
Expand Down
6 changes: 5 additions & 1 deletion php/class-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,11 @@ public function setup_sync_base_struct() {
'sync' => array( $this->managers['upload'], 'upload_asset' ),
'state' => 'info syncing',
'note' => function () {
return sprintf( __( 'Copying to folder %s.', 'cloudinary' ), untrailingslashit( $this->managers['media']->get_cloudinary_folder() ) );
return sprintf(
/* translators: %s folder name */
__( 'Copying to folder %s.', 'cloudinary' ),
untrailingslashit( $this->managers['media']->get_cloudinary_folder() )
);
},
'required' => true, // Required to complete URL render flag.
),
Expand Down

0 comments on commit 4a3795a

Please sign in to comment.