' . __( 'Private Path Updated: Would you like to move existing media to the new private path?', 'amazon-s3-and-cloudfront' ) . '';
$mesg .= '
';
$mesg .= '
' . __( 'You just updated the private media path. Any media you make private from now on will use this new path.', 'amazon-s3-and-cloudfront' ) . '
'; $mesg .= ''; $mesg .= __( 'You can also move existing private media to this new path. We recommend keeping the path consistent across all private media.', 'amazon-s3-and-cloudfront' ); $mesg .= ' '; $mesg .= $as3cf::more_info_link( '/wp-offload-media/doc/how-to-move-media-to-a-new-bucket-path/', 'move+objects', 'private-path' ); $mesg .= '
'; return $mesg; } /** * @inheritDoc */ public function get_doc_url() { global $as3cf; $args = array( 'utm_campaign' => 'move+objects' ); return $as3cf::dbrains_url( '/wp-offload-media/doc/how-to-move-media-to-a-new-bucket-path/', $args, 'private-path' ); } /** * Message for error notice. * * @param string|null $message Optional message to override the default for the tool. * * @return string */ protected function get_error_notice_message( $message = null ) { $title = __( 'Move Objects Errors', 'amazon-s3-and-cloudfront' ); $message = empty( $message ) ? __( 'Previous attempts at moving your media library to new private paths have resulted in errors.', 'amazon-s3-and-cloudfront' ) : $message; return sprintf( '%1$s — %2$s', $title, $message ); } /** * Get background process class. * * @return Background_Tool_Process|null */ protected function get_background_process_class() { return new Move_Private_Objects_Process( $this->as3cf, $this ); } }