• Resolved gingerbooch

    (@gingerbooch)


    Hi,

    After updating GMW and BP to the latest versions, I found 3 little issues with GEO My WordPress.

    1- The most important one is the use of the deprecated function “bp_core_get_username()” (deprecated since BP 12.0.0) in the file “~/wp-content/plugins/geo-my-wp/plugins/members-locator/includes/gmw-members-locator-actions.php”.

    2- Next one is about BP Member locator, setting a city and a distance for the autoload and displaying the form and results on the same page.
    For instance, the page first loads with the results for Berlin with a radius of 500km, as defined in the autoload settings. Then the user does a custom search, it works but the radius stays at 500km for the user’s custom search, while my form “Radius Field” settings are set with “Usage : Default value” and “Default Value : 20000” (km). The search form keeps using the autoload radius instead of the defined one.

    3- When using the BP Data Export tool, GMW inserts an unwanted white line in the export file. I think that’s because in the file “~/wp-content/plugins/geo-my-wp/includes/admin/class-gmw-admin.php”, the “$export_items” array is set at the beginning of the function with the exit values, and something stays. I could fix it by resetting the array just before the foreach loop, something like this :

    (...)
    // Abort if no location were found.
    if ( empty( $locations ) ) {
    	return $export_items;
    }
    
    // Reset array fix
    $export_items = array();
    
    // loop through locations and collect data.
    foreach ( $locations as $location ) {
    (...)

    Have a nice day,
    GB

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.