Skip to content

Commit

Permalink
Merge pull request #772 from wp-shortcake/stop-testing-php-5.2
Browse files Browse the repository at this point in the history
Remove PHP 5.2 from Travis matrix
  • Loading branch information
goldenapples authored Sep 6, 2017
2 parents 8bc4b1c + f3b1a4d commit cf2782b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ language: php

matrix:
include:
- php: 5.2
env: WP_VERSION=latest WP_MULTISITE=0 WP_TRAVISCI=travis:phpunit
- php: 5.6
env: WP_VERSION=latest WP_MULTISITE=0 WP_TRAVISCI=travis:phpunit
- php: 5.6
- php: 7.1
env: WP_VERSION=latest WP_MULTISITE=1 WP_TRAVISCI=travis:phpunit
- php: 5.6
env: WP_TRAVISCI=travis:js-tests
- php: 5.6
- php: 7.1
env: WP_TRAVISCI=travis:php-lint

cache:
Expand Down
2 changes: 1 addition & 1 deletion bin/install-wp-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ install_test_suite() {
# set up testing suite if it doesn't yet exist
if [ ! -d $WP_TESTS_DIR ]; then
# set up testing suite
mkdir -p $WP_TESTS_DIR
mkdir -p $WP_TESTS_DIR/data/themedir1
svn co --quiet https://develop.svn.wordpress.org/${WP_TESTS_TAG}/tests/phpunit/includes/ $WP_TESTS_DIR/includes
fi

Expand Down
4 changes: 2 additions & 2 deletions inc/class-shortcode-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ public function action_admin_enqueue_scripts( $editor_supports ) {
);

if ( 'select2' !== self::$select2_handle ) {
wp_add_inline_script( self::$select2_handle, 'var existingSelect2 = jQuery.fn.select2 || null; if (existingSelect2) { delete jQuery.fn.select2; }', 'before' );
wp_add_inline_script( self::$select2_handle, 'jQuery.fn[ shortcodeUIData.select2_handle ] = jQuery.fn.select2; if (existingSelect2) { delete jQuery.fn.select2; jQuery.fn.select2 = existingSelect2; }', 'after' );
wp_add_inline_script( self::$select2_handle, 'var existingSelect2 = jQuery.fn.select2 || null; if (existingSelect2) { delete jQuery.fn.select2; }', 'before' );
wp_add_inline_script( self::$select2_handle, 'jQuery.fn[ shortcodeUIData.select2_handle ] = jQuery.fn.select2; if (existingSelect2) { delete jQuery.fn.select2; jQuery.fn.select2 = existingSelect2; }', 'after' );
}

wp_register_style( self::$select2_handle,
Expand Down

0 comments on commit cf2782b

Please sign in to comment.