Skip to content

Commit

Permalink
Merge branch 'hotfix/0.2.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
garex committed Oct 15, 2014
2 parents 46222c3 + 22ea620 commit d01c779
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

## Changelog ##

### 0.2.3 ###
Fix activation on PHP below 5.4


### 0.2.2 ###
Update description to correct English version

Expand Down Expand Up @@ -63,6 +67,9 @@ Initial release

== Upgrade Notice ==

### 0.2.3 ###
Plugin activation on PHP below 5.4 fixed

### 0.2.1 ###
Results and formulas added (parse error fixed)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
**Tags:** psychological, testing, test, quiz
**Requires at least:** 3.2
**Tested up to:** 3.9
**Stable tag:** 0.2.2
**Stable tag:** 0.2.3
**License:** GPLv3
**License URI:** http://www.gnu.org/licenses/gpl-3.0.html

Expand Down
14 changes: 7 additions & 7 deletions src/WordPressFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function getPermalink($id = 0, $isLeaveName = false)
* @param int $functionArgsCount optional. The number of arguments the function accept (default 1).
* @return WpTesting_WordPressFacade
*/
public function addAction($tag, callable $function, $priority = 10, $functionArgsCount = 1)
public function addAction($tag, $function, $priority = 10, $functionArgsCount = 1)
{
add_action($tag, $function, $priority, $functionArgsCount);
return $this;
Expand All @@ -217,7 +217,7 @@ public function addAction($tag, callable $function, $priority = 10, $functionArg
* @param int $functionArgsCount optional. The number of arguments the function accept (default 1).
* @return WpTesting_WordPressFacade
*/
public function addFilter($tag, callable $function, $priority = 10, $functionArgsCount = 1)
public function addFilter($tag, $function, $priority = 10, $functionArgsCount = 1)
{
add_filter($tag, $function, $priority, $functionArgsCount);
return $this;
Expand All @@ -233,7 +233,7 @@ public function addFilter($tag, callable $function, $priority = 10, $functionArg
* @param callable $function Hook to run when shortcode is found.
* @return WpTesting_WordPressFacade
*/
public function addShortcode($tag, callable $function)
public function addShortcode($tag, $function)
{
add_shortcode($tag, $function);
return $this;
Expand Down Expand Up @@ -263,7 +263,7 @@ public function addShortcode($tag, callable $function)
* to your callback). Default null.
* @return WpTesting_WordPressFacade
*/
public function addMetaBox($id, $title, callable $function, $screen = null, $context = 'advanced', $priority = 'default', $functionArgs = null)
public function addMetaBox($id, $title, $function, $screen = null, $context = 'advanced', $priority = 'default', $functionArgs = null)
{
add_meta_box($id, $title, $function, $screen, $context, $priority, $functionArgs);
return $this;
Expand Down Expand Up @@ -311,7 +311,7 @@ public function registerTaxonomy($name, $objectType, $parameters = array())
* @param callback $function the function hooked for action.
* @return WpTesting_WordPressFacade
*/
public function registerActivationHook(callable $function)
public function registerActivationHook($function)
{
register_activation_hook($this->pluginFile, $function);
return $this;
Expand All @@ -326,7 +326,7 @@ public function registerActivationHook(callable $function)
* @param callback $function the function hooked for action.
* @return WpTesting_WordPressFacade
*/
public function registerDeactivationHook(callable $function)
public function registerDeactivationHook($function)
{
register_deactivation_hook($this->pluginFile, $function);
return $this;
Expand All @@ -341,7 +341,7 @@ public function registerDeactivationHook(callable $function)
* @param callback $function the function hooked for action.
* @return WpTesting_WordPressFacade
*/
public function registerUninstallHook(callable $function)
public function registerUninstallHook($function)
{
register_uninstall_hook($this->pluginFile, $function);
return $this;
Expand Down
2 changes: 1 addition & 1 deletion wp-testing.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Wp-testing
* Plugin URI: http://wordpress.org/extend/plugins/wp-testing/
* Description: Helps to create psychological tests.
* Version: 0.2.2
* Version: 0.2.3
* Author: Alexander Ustimenko
* Author URI: http://ustimen.co
* License: GPL3
Expand Down

0 comments on commit d01c779

Please sign in to comment.