mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Code Modernization: Remove all code using a version_compare() with a PHP version older than PHP 5.6.
Props jrf. Fixes #48074. git-svn-id: https://develop.svn.wordpress.org/trunk@46214 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -126,10 +126,6 @@ class Tests_Theme_Custom_Header extends WP_UnitTestCase {
|
||||
$this->assertFalse( has_custom_header() );
|
||||
$this->assertEmpty( $html );
|
||||
|
||||
// ReflectionMethod::setAccessible is only available in PHP 5.3+
|
||||
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
|
||||
return;
|
||||
}
|
||||
// The container should always be returned in the Customizer preview.
|
||||
$this->_set_customize_previewing( true );
|
||||
$html = get_custom_header_markup();
|
||||
@@ -226,11 +222,6 @@ class Tests_Theme_Custom_Header extends WP_UnitTestCase {
|
||||
}
|
||||
|
||||
function test_header_script_is_enqueued_by_the_custom_header_markup_without_video_when_previewing_in_customizer() {
|
||||
if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
|
||||
$this->markTestSkipped( 'ReflectionMethod::setAccessible is only available in PHP 5.3+' );
|
||||
return;
|
||||
}
|
||||
|
||||
$this->_add_theme_support(
|
||||
array(
|
||||
'video' => true,
|
||||
|
||||
Reference in New Issue
Block a user