Plugin Directory

Changeset 620457


Ignore:
Timestamp:
11/02/2012 07:02:19 PM (13 years ago)
Author:
bastb
Message:

Compatible with PHP 5.4, testen on both PHP 5.3 and PHP 5.4.

Location:
lips/branches/dev-0.8.10
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lips/branches/dev-0.8.10/lips.php

    r620083 r620457  
    44Plugin URI:  http://www.tenberge-ict.nl/tools/wordpress/lips/
    55Description: Synchronizes your professional LinkedIn profile, updating WordPress Pages and - optionally - Posts.
    6 Version: 0.8.10
     6Version: 0.8.11
    77Author: Bas ten Berge
    88Author URI: http://www.tenberge-ict.nl/profiel
     
    147147        register_deactivation_hook(__FILE__, 'LinkedInI18N::deleteLanguages');
    148148        register_activation_hook(__FILE__, 'LinkedInProfileSyncPostFilter::updateFilterList');
    149         add_action('admin_menu', array(&$this, 'add_pages'));
    150         add_action('admin_init', array(&$this, 'prepare'));
     149        add_action('admin_menu', array($this, 'add_pages'));
     150        add_action('admin_init', array($this, 'prepare'));
    151151       
    152152        if ($this->isDisplayingOptionsPage() || $this->isPosting()) {   
    153             add_action('admin_init', array(&$this, 'register_settings'));
    154             add_action('admin_notices', array(&$this, 'getInLipsNotification'));
    155             add_action('wp_ajax_' . LIPS_OPTIONS_PAGE, array(&$this, 'handleAjaxRequest'));
     153            add_action('admin_init', array($this, 'register_settings'));
     154            add_action('admin_notices', array($this, 'getInLipsNotification'));
     155            add_action('wp_ajax_' . LIPS_OPTIONS_PAGE, array($this, 'handleAjaxRequest'));
    156156
    157157            add_filter('option_page_capability_' . SETTINGS_ID, array($this, 'getCapabilityName'));
     
    173173        }
    174174        else {
    175             add_action('admin_notices', array(&$this, 'getAttentionNotification'));
     175            add_action('admin_notices', array($this, 'getAttentionNotification'));
    176176        }
    177177    }
     
    183183     */
    184184    public function add_pages() {
    185         $suffix = add_submenu_page(LIPS_PARENT_PAGE, LIPS_PAGE_TITLE, 'LinkedIn® Profile Sync', $this->capability, LIPS_OPTIONS_PAGE, array(&$this, 'display_page'));
     185        $suffix = add_submenu_page(LIPS_PARENT_PAGE, LIPS_PAGE_TITLE, 'LinkedIn® Profile Sync', $this->capability, LIPS_OPTIONS_PAGE, array($this, 'display_page'));
    186186        add_action(sprintf('load-%s', $suffix), array($this, 'disable_notification'));
    187187        add_action(sprintf('load-%s', $suffix), array($this, 'handleOAuthReset'));
    188188        add_action(sprintf('load-%s', $suffix), array($this, 'handleHideNotification'));
    189         add_action('admin_print_scripts-' . $suffix, array(&$this, 'scripts'));
    190         add_action('admin_print_styles-' . $suffix, array(&$this, 'styles'));
     189        add_action('admin_print_scripts-' . $suffix, array($this, 'scripts'));
     190        add_action('admin_print_styles-' . $suffix, array($this, 'styles'));
    191191    }
    192192
     
    219219    */
    220220    public function register_settings() {
    221         register_setting(SETTINGS_ID, SETTINGS_ID, array(&$this, 'validate_settings'));
     221        register_setting(SETTINGS_ID, SETTINGS_ID, array($this, 'validate_settings'));
    222222       
    223223        $options = get_option(SETTINGS_ID);
     
    226226        if (is_array($ordered_settings)) {
    227227            foreach ( $this->sections as $slug => $title ) {
    228                 add_settings_section($slug, $title, array(&$this, 'display_section'), LIPS_OPTIONS_PAGE);
     228                add_settings_section($slug, $title, array($this, 'display_section'), LIPS_OPTIONS_PAGE);
    229229            }
    230230           
     
    19521952            // and the update_post_metadata is called when a new page is being created (eg:
    19531953            // a new position is added)
    1954             add_action('save_post', array(&$this, 'onPostSavedAction'));
    1955             add_action('update_post_metadata', array(&$this, 'onPostMetaUpdatedAction'), 10, 4);
     1954            add_action('save_post', array($this, 'onPostSavedAction'));
     1955            add_action('update_post_metadata', array($this, 'onPostMetaUpdatedAction'), 10, 4);
    19561956
    19571957            foreach ($json['positions']['values'] as $position) {
     
    19601960            $to_return['x_lips']['uri'] = $this->post_uri;
    19611961
    1962             remove_action('save_post', array(&$this, 'onPostSavedAction'));
    1963             remove_action('update_post_metadata', array(&$this, 'onPostMetaUpdatedAction'));
     1962            remove_action('save_post', array($this, 'onPostSavedAction'));
     1963            remove_action('update_post_metadata', array($this, 'onPostMetaUpdatedAction'));
    19641964        }
    19651965
  • lips/branches/dev-0.8.10/readme.txt

    r620083 r620457  
    55Requires at least: 3.3.1
    66Tested up to: 3.4.1
    7 Stable tag: 0.8.10
     7Stable tag: 0.8.11
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5454
    5555== Changelog ==
     56= 0.8.11 =
     57* Fixed another couple of pass-by-reference fatal error. Reported by Mark Theloosen.
     58* The plugin is compatible with PHP 5.4.
    5659= 0.8.10 =
    5760* Fixed a pass-by-reference fatal error. Reported by Mark.
Note: See TracChangeset for help on using the changeset viewer.