mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-23 12:44:30 +00:00
Code Modernization: Use explicit visibility for class property declarations.
Using `var` or only `static` to declare a class property is PHP 4 code. This updates the codebase to use explicit visibility modifiers introduced in PHP 5. Props jrf. Fixes #51557. See #22234. git-svn-id: https://develop.svn.wordpress.org/trunk@49184 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
*/
|
||||
abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
|
||||
// You can use your own version of data/WPHTTP-testcase-redirection-script.php here.
|
||||
var $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php';
|
||||
var $file_stream_url = 'http://s.w.org/screenshots/3.9/dashboard.png';
|
||||
public $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php';
|
||||
public $file_stream_url = 'http://s.w.org/screenshots/3.9/dashboard.png';
|
||||
|
||||
protected $http_request_args;
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ require_once __DIR__ . '/base.php';
|
||||
* @group external-http
|
||||
*/
|
||||
class Tests_HTTP_curl extends WP_HTTP_UnitTestCase {
|
||||
var $transport = 'curl';
|
||||
public $transport = 'curl';
|
||||
|
||||
/**
|
||||
* @ticket 39783
|
||||
|
||||
@@ -7,5 +7,5 @@ require_once __DIR__ . '/base.php';
|
||||
* @group external-http
|
||||
*/
|
||||
class Tests_HTTP_streams extends WP_HTTP_UnitTestCase {
|
||||
var $transport = 'streams';
|
||||
public $transport = 'streams';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user