PluginProbe
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings / 7.2.1
MLSImport: IDX Plugin & MLS Plugin for Real Estate Listings v7.2.1
7.2.1 7.2 7.1.2 7.1.1 7.1 7.0.4 7.0.6 7.0.7 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 6.3.1 trunk 5.7.3 5.7.5 5.8.1 5.8.2 5.8.3 5.8.4 5.8.6 6.0.4 6.0.5 All 36 releases
← All changes | includes/class-mlsimport.php +2 -11 7.0.47.2.1 View file →
@@ -225,11 +225,8 @@
225 225 $this->loader->add_action( 'admin_init', $this->admin, 'options_update' );
226 226 $this->loader->add_action( 'update_option_' . $this->plugin_name . '_admin_fields_select', $this->admin, 'update_option_mlsimport_admin_fields_select' );
227 227 $this->loader->add_action( 'add_option_' . $this->plugin_name . '_admin_fields_select', $this->admin, 'update_option_mlsimport_admin_fields_select' );
228 228
229 - // React to changes of the administrative options.
230 - $this->loader->add_action( 'update_option_' . $this->plugin_name . '_administrative_options', $this->admin, 'update_option_mlsimport_administrative_options' );
231 -
232 229 // Add menu item
233 230 $this->loader->add_action( 'admin_menu', $this->admin, 'add_plugin_admin_menu' );
234 231
235 232 // Add Settings link to the plugin list
@@ -346,10 +343,10 @@
346 343
347 344 /**
348 345 * return plugin data
349 346 *
350 - * Reads a single value from the plugin schema. When the MLS environment is
351 - * Trestle and a server token is requested, returns the Trestle token instead.
347 + * Reads a single value from the plugin schema. Provider behavior is resolved
348 + * by Mlsimport_Provider_Family and does not belong in this core accessor.
352 349 *
353 350 * @since 1.0.0
354 351 * @access protected
355 352 * @var string $plugin_name
@@ -358,14 +355,8 @@
358 355 */
359 356 public function get_plugin_data( $what ) {
360 357 // Pull the (currently empty) plugin schema.
361 358 $plugin_data = $this->return_plugin_schema();
362 -
363 - // Special case: Trestle server token comes from a dedicated helper.
364 - if ( isset( $plugin_data['mls_enviroment'] ) && 'TresleReso' === $plugin_data['mls_enviroment'] && 'server_token' === $what ) {
365 - $tresle_token = $this->return_tresle_token();
366 - return $tresle_token;
367 - }
368 359
369 360 // Return the requested key when present, else empty string.
370 361 if ( isset( $plugin_data[ $what ] ) ) {
371 362 return $plugin_data[ $what ];