Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/wordpress-seo/admin/exceptions/ |
Upload File : |
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin\Exceptions */ /** * Represents named methods for exceptions. */ class WPSEO_File_Size_Exception extends Exception { /** * Gets the exception for an externally hosted file. * * @param string $file_url The file url. * * @return WPSEO_File_Size_Exception Instance of the exception. */ public static function externally_hosted( $file_url ) { $message = sprintf( /* translators: %1$s expands to the requested url */ __( 'Cannot get the size of %1$s because it is hosted externally.', 'wordpress-seo' ), $file_url ); return new self( $message ); } /** * Gets the exception for when a unknown error occurs. * * @param string $file_url The file url. * * @return WPSEO_File_Size_Exception Instance of the exception. */ public static function unknown_error( $file_url ) { $message = sprintf( /* translators: %1$s expands to the requested url */ __( 'Cannot get the size of %1$s because of unknown reasons.', 'wordpress-seo' ), $file_url ); return new self( $message ); } }