Skip to content

Commit

Permalink
get_magic_quotes_runtime() is deprecated as of PHP 7.4
Browse files Browse the repository at this point in the history
Remove call to get_magic_quotes_runtime() as this function is deprecated
as of PHP 7.4 (see https://wiki.php.net/rfc/deprecations_php_7_4). This
part of the code was only needed for PHP <= 5.3 and this version is not
supported anymore by WooCommerce.
  • Loading branch information
rodrigoprimo committed Aug 23, 2019
1 parent 0128a06 commit 1f69fbc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions includes/class-wc-download-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,9 +474,6 @@ private static function download_headers( $file_path, $filename, $download_range
*/
private static function check_server_config() {
wc_set_time_limit( 0 );
if ( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() && version_compare( phpversion(), '5.4', '<' ) ) {
set_magic_quotes_runtime( 0 ); // @codingStandardsIgnoreLine
}
if ( function_exists( 'apache_setenv' ) ) {
@apache_setenv( 'no-gzip', 1 ); // phpcs:ignore Generic.PHP.NoSilencedErrors.Discouraged, WordPress.PHP.DiscouragedPHPFunctions.runtime_configuration_apache_setenv
}
Expand Down

0 comments on commit 1f69fbc

Please sign in to comment.