Plugin Directory

Changeset 1656022

Timestamp:
05/12/2017 03:31:46 PM (7 years ago)
Author:
binarygary
Message:

Fixes bug that forgot about google ID for place

Location:
wp-places/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-places/trunk/WP_Places.php

    r1563125 r1656022  
    44 * Plugin URI:  https://www.binarygary.com/
    55 * Description: Add location data to your WordPress.
    6  * Version:     2.0.5
     6 * Version:     2.0.
    77 * Author:      Gary Kovar
    88 * Author URI:  https://www.binarygary.com/
  • wp-places/trunk/includes/class-meta-boxes.php

    r1563125 r1656022  
    108108     */
    109109    public function get_google_place_id( $value, $field_args, $field ) {
    110         return $this->plugin->google_places_api->search( $value );
     110        if ( $this->display_place_information( get_post_meta( $field->object_id, '_wp_places', TRUE ) ) == $value ) {
     111            return get_post_meta( $field->object_id, '_wp_places', TRUE );
     112        }
     113        $search_value = $this->plugin->google_places_api->search( $value );
     114        return $search_value;
    111115    }
    112116
  • wp-places/trunk/readme.txt

    r1563125 r1656022  
    22Contributors: binarygary
    33Tags: Google Places, Business Information, Location, Google Places API Web Services
    4 Stable Tag: 2.0.5
     4Stable Tag: 2.0.
    55Requires at least: 4.0
    66Tested up to: 4.7
     
    4545== Changelog ==
    4646
     47
     48
     49
     50
     51
     52
    4753= 2.0.4 =
    48 * Adds support for including in CPT.
     54* Adds support for including in CPT.
    4955
    5056= 2.0.0 =
Note: See TracChangeset for help on using the changeset viewer.