Skip to content
Browse files

Removed uses of call-time pass-by-reference for compatibility with PH…

…P 5.4.
  • Loading branch information...
1 parent ec45562 commit a4fa464fda4775451f5fa345a95a523188b3d611 @beastaugh committed Jun 6, 2012
Showing with 5 additions and 4 deletions.
  1. +1 −0 changelog.txt
  2. +1 −1 library/core.php
  3. +3 −3 library/helpers/widgets.php
View
1 changelog.txt
@@ -5,6 +5,7 @@
* Added option to display featured post images in the header.
* Moved language files to `/languages` directory.
* Added POT file to theme files in `languages` directory.
+ * Removed uses of call-time pass-by-reference for compatibility with PHP 5.4.
* Replaced use of deprecated `add_custom_image_header` function.
* Stop defining header image constants.
* Deprecated `tarski_doctitle` in favour of a filter on `wp_title`.
View
2 library/core.php
@@ -33,7 +33,7 @@ function is_valid_tarski_style($name) {
*/
function tarski_asset_path($path) {
$matches = array();
- preg_match("/\\.[A-Za-z\d]+\$/", $path, &$matches);
+ preg_match("/\\.[A-Za-z\d]+\$/", $path, $matches);
$ext = count($matches) > 0 ? $matches[0] : '';
$suffix = defined('TARSKI_DEBUG') && TARSKI_DEBUG === true ? '.dev' : '';
$root = get_template_directory_uri();
View
6 library/helpers/widgets.php
@@ -98,9 +98,9 @@ function Tarski_Widget_Recent_Entries() {
$this->WP_Widget('recent-articles', __('Recent Articles', 'tarski'), $widget_ops);
$this->alt_option_name = 'tarski_recent_entries';
- add_action('save_post', array(&$this, 'flush_widget_cache'));
- add_action('deleted_post', array(&$this, 'flush_widget_cache'));
- add_action('switch_theme', array(&$this, 'flush_widget_cache'));
+ add_action('save_post', array($this, 'flush_widget_cache'));
+ add_action('deleted_post', array($this, 'flush_widget_cache'));
+ add_action('switch_theme', array($this, 'flush_widget_cache'));
}
function widget($args, $instance) {

0 comments on commit a4fa464

Please sign in to comment.
Something went wrong with that request. Please try again.