Skip to content

Commit

Permalink
Check if get_magic_quotes_runtime (for php7)
Browse files Browse the repository at this point in the history
@set_magic_quotes_runtime() is deprecated in php7. This if statement
will keep current functionality in php5 and let it also work with php7.
  • Loading branch information
IanEdington committed Feb 14, 2016
1 parent 4cff296 commit 35e350e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ function satispress_send_file( $file ) {
if ( function_exists( 'apache_setenv' ) ) {
@apache_setenv( 'no-gzip', 1 );
}
if(get_magic_quotes_runtime()) {
@set_magic_quotes_runtime( 0 );
}
@ini_set( 'zlib.output_compression', 'Off' );
@set_time_limit( 0 );
@set_magic_quotes_runtime( 0 );
@ob_end_clean();
if ( ob_get_level() ) {
@ob_end_clean(); // Zip corruption fix.
Expand Down

0 comments on commit 35e350e

Please sign in to comment.