Changeset 620457
- Timestamp:
- 11/02/2012 07:02:19 PM (13 years ago)
- Location:
- lips/branches/dev-0.8.10
- Files:
-
- 2 edited
-
lips.php (modified) (8 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lips/branches/dev-0.8.10/lips.php
r620083 r620457 4 4 Plugin URI: http://www.tenberge-ict.nl/tools/wordpress/lips/ 5 5 Description: Synchronizes your professional LinkedIn profile, updating WordPress Pages and - optionally - Posts. 6 Version: 0.8.1 06 Version: 0.8.11 7 7 Author: Bas ten Berge 8 8 Author URI: http://www.tenberge-ict.nl/profiel … … 147 147 register_deactivation_hook(__FILE__, 'LinkedInI18N::deleteLanguages'); 148 148 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')); 151 151 152 152 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')); 156 156 157 157 add_filter('option_page_capability_' . SETTINGS_ID, array($this, 'getCapabilityName')); … … 173 173 } 174 174 else { 175 add_action('admin_notices', array( &$this, 'getAttentionNotification'));175 add_action('admin_notices', array($this, 'getAttentionNotification')); 176 176 } 177 177 } … … 183 183 */ 184 184 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')); 186 186 add_action(sprintf('load-%s', $suffix), array($this, 'disable_notification')); 187 187 add_action(sprintf('load-%s', $suffix), array($this, 'handleOAuthReset')); 188 188 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')); 191 191 } 192 192 … … 219 219 */ 220 220 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')); 222 222 223 223 $options = get_option(SETTINGS_ID); … … 226 226 if (is_array($ordered_settings)) { 227 227 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); 229 229 } 230 230 … … 1952 1952 // and the update_post_metadata is called when a new page is being created (eg: 1953 1953 // 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); 1956 1956 1957 1957 foreach ($json['positions']['values'] as $position) { … … 1960 1960 $to_return['x_lips']['uri'] = $this->post_uri; 1961 1961 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')); 1964 1964 } 1965 1965 -
lips/branches/dev-0.8.10/readme.txt
r620083 r620457 5 5 Requires at least: 3.3.1 6 6 Tested up to: 3.4.1 7 Stable tag: 0.8.1 07 Stable tag: 0.8.11 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 54 54 55 55 == 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. 56 59 = 0.8.10 = 57 60 * Fixed a pass-by-reference fatal error. Reported by Mark.
Note: See TracChangeset
for help on using the changeset viewer.