Make WordPress Core

Changeset 41858


Ignore:
Timestamp:
10/13/2017 07:42:40 PM (9 years ago)
Author:
westonruter
Message:

Code Editor: Fix syntax error in PHP 5.2 and PHP 5.3 after [41855].

See #41871.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/widgets/custom-html-widget.php

    r41855 r41858  
    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'];
    295 
    296                 $this->assertContains( 'Use the Custom HTML widget to add arbitrary HTML code to your widget areas.', $content );
     294                $help_tab = get_current_screen()->get_help_tab( 'custom_html_widget' );
     295
     296                $this->assertContains( 'Use the Custom HTML widget to add arbitrary HTML code to your widget areas.', $help_tab['content'] );
    297297        }
    298298}
Note: See TracChangeset for help on using the changeset viewer.