first commit
This commit is contained in:
23
wp-content/plugins/elementor-pro/core/php-api.php
Normal file
23
wp-content/plugins/elementor-pro/core/php-api.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
namespace ElementorPro\Core;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
/**
|
||||
* This class is responsible for the interaction with PHP Core API.
|
||||
* The main benefit is making it easy to mock in testing.
|
||||
*/
|
||||
class PHP_Api {
|
||||
|
||||
/**
|
||||
* @param $from
|
||||
* @param $to
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function move_uploaded_file( $from, $to ) {
|
||||
return @ move_uploaded_file( $from, $to );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user