Support » Plugin: YCWP QR Me » [Plugin: YCWP QR Me] Configuration Fix

  • Resolved alogblog

    (@alogblog)


    File: /wordpress/wp-content/plugins/ycwp-qr-me/ycwp-qr-me-plugin.php
    Line: about 366

    Before:

    $qr->set_size( $size, $size );
            $qr->set_error_level( get_option( 'ycwp_qr_me_error' ) );
    --->
            switch( get_option( 'ycwp_qr_me_content' ) ) {
                case 'permalink':
                    $qr_content = urlencode( $this->_the_permalink );
                    break;


    After:

    $qr->set_size( $size, $size );
            $qr->set_error_level( get_option( 'ycwp_qr_me_error' ) );
    --->
    	global $post;
    	$this->_the_permalink = get_permalink($post->ID);
    --->
            switch( get_option( 'ycwp_qr_me_content' ) ) {

    ————————-
    When I set a content in YCWP QR Me Configuration, for example, Content:Post Permalink, the resulting QR is from “chl=(blank)”…

    You set a permalink of post by filtering, but in my case(or every case) that filtering happened after generating QR code. So when getting url, $this->_the_permalink is blank…

    I added small code using global $post variable temporarily.
    You(Original developer) may adapt it more elaboratively.

    http://wordpress.org/extend/plugins/ycwp-qr-me/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: YCWP QR Me] Configuration Fix’ is closed to new replies.