Support » Plugin: Flare » Suggestion: shortcode available

Viewing 2 replies - 1 through 2 (of 2 total)
  • Newfound

    (@precipitatejournal)

    I second that emotion.

    Make the following changess:

    In models/button.php line 60 and 62:
    Add
    data-url="{{rawurl}}"
    before {{via}} {{tailoring}}

    and in line 300:
    Change the replacements array for the following:

    $replacements = array(
                    "{{url}}" => urlencode( wp_get_shortlink( $wp_query->post->ID ) ),
                    "{{rawurl}}" => wp_get_shortlink( $wp_query->post->ID )
                );

    Also in line 959 of /flare.php:
    Change it to:

    $count_url = admin_url( 'admin-ajax.php' ) . "?action={$namespace}_get_counts&url=" . urlencode( wp_get_shortlink( $wp_query->post->ID ) ) . "&post_id={$wp_query->post->ID}&_wpnonce=" . wp_create_nonce( "{$this->namespace}-get-counts" );

    In order to get the real flare stats values of the short url.

    Hope it helps

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suggestion: shortcode available’ is closed to new replies.