From ca652fa169308dfe60b39a388fb40265fd34278f Mon Sep 17 00:00:00 2001 From: Daniel Bannert Date: Tue, 28 Jul 2015 00:30:17 +0200 Subject: [PATCH 1/2] fix regex | now we can use numbered func like is_404() --- src/Gwa/WPBridge.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gwa/WPBridge.php b/src/Gwa/WPBridge.php index ca2e633..0ad505f 100644 --- a/src/Gwa/WPBridge.php +++ b/src/Gwa/WPBridge.php @@ -35,6 +35,6 @@ public function __call($function, $args) */ public function camelToUnderscore($string) { - return strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $string)); + return strtolower(preg_replace('/([a-z])([A-Z0-9])/', '$1_$2', $string)); } } From 91f5f5a29b5254ae0ebeace4f80b8c608761a56d Mon Sep 17 00:00:00 2001 From: Daniel Bannert Date: Tue, 28 Jul 2015 00:32:15 +0200 Subject: [PATCH 2/2] fix travis --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41f8125..b4e8afa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: php php: + - 5.4 - 5.5.9 - 5.5 - 5.6 @@ -33,8 +34,6 @@ cache: - $HOME/.composer/cache before_install: - - if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then git fetch origin "refs/pull/$TRAVIS_PULL_REQUEST/head"; else git fetch origin "$TRAVIS_BRANCH"; fi; - - if [[ "$TRAVIS_COMMIT" != `git rev-parse FETCH_HEAD` ]]; then echo "Pull request or branch commit hash has changed, aborting."; exit 1; fi; - composer self-update - travis_retry composer self-update - travis_retry composer install --prefer-source --no-interaction