WordPress.org

Ready to get started?Download WordPress

Forums

YCWP QR Me
[resolved] Configuration Fix (2 posts)

  1. alogblog
    Member
    Posted 1 year ago #

    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/

  2. Nicola Mustone
    Member
    Plugin Author

    Posted 1 year ago #

    You're right! Fixed also this!
    Thanks for reporting.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.