• Resolved Daedalon

    (@daedalon)


    The #_EDITLOCATIONLINK and #_EDITLOCATIONURL are supported according to the documentation, but using either of them displays only the string itself on the page without getting replaced as it’s supposed to.

    A look at the code in classes/em-location.php revealed that there exist supported but undocumented functions with names consisting of same words in different order: #_LOCATIONEDITURL and #_LOCATIONEDITLINK.

    Support for the documented names should be added while marking the currently supported but undocumented names as deprecated without breaking their support.

    Also the translation should be improved as in the topic [PATCH] Correction in em-event.php to improve translation support by changing the line 690 from

    $replace = ($result == '#_LOCATIONEDITURL') ? $link : '<a href="'.$link.'" title="'.esc_attr($this->location_name).'">'.esc_html(sprintf(__('Edit %s','dbem'),__('Location','dbem'))).'</a>';

    to

    $replace = ($result == '#_LOCATIONEDITURL') ? $link : '<a href="'.$link.'" title="'.esc_attr($this->location_name).'">'.esc_html(__('Edit Location','dbem')).'</a>';

    http://wordpress.org/extend/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Events Manager] #_EDITLOCATIONLINK is documented but unsupported’ is closed to new replies.