Skip to content

Commit b822b04

Browse files
committed
Code Editor: Fix syntax error in PHP 5.2 and PHP 5.3 after [41855].
See #41871. git-svn-id: https://develop.svn.wordpress.org/trunk@41858 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e6908ac commit b822b04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/phpunit/tests/widgets/custom-html-widget.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ public function test_render_control_template_scripts() {
291291
public function test_add_help_text() {
292292
set_current_screen( 'widgets.php' );
293293
WP_Widget_Custom_HTML::add_help_text();
294-
$content = get_current_screen()->get_help_tab( 'custom_html_widget' )['content'];
294+
$help_tab = get_current_screen()->get_help_tab( 'custom_html_widget' );
295295

296-
$this->assertContains( 'Use the Custom HTML widget to add arbitrary HTML code to your widget areas.', $content );
296+
$this->assertContains( 'Use the Custom HTML widget to add arbitrary HTML code to your widget areas.', $help_tab['content'] );
297297
}
298298
}

0 commit comments

Comments
 (0)