Support » Plugin: WP Mailto Links - Manage Email Links » [Minibug fix] undefined variable notice

  • Resolved jrf

    (@jrf)


    Hiya,

    Love the plugin! Here’s just a small headsup for the next version:

    Find line 261:
    if ( $this->options[ 'icon' ] > 0 AND ( empty( $this->options[ 'no_icon_class' ] ) OR strpos( $attrs[ 'class' ], $this->options[ 'no_icon_class' ] ) === FALSE ) AND strpos( $attrs[ 'class' ], 'mail-icon-' ) === FALSE ) {
    Replace with:
    if ( $this->options[ 'icon' ] > 0 AND ( empty( $this->options[ 'no_icon_class' ] ) OR ( isset( $attrs[ 'class' ] ) && strpos( $attrs[ 'class' ], $this->options[ 'no_icon_class' ] ) === FALSE ) ) AND ( isset( $attrs[ 'class' ] ) && strpos( $attrs[ 'class' ], 'mail-icon-' ) === FALSE ) ) {

    Hope this help! Keep up the good work.

    Smile,
    Juliette

    http://wordpress.org/extend/plugins/wp-mailto-links/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Oh and another one:

    Find line 340:
    while ( $offset < $length )
    Replace with:

    $protected = '';
    
    while ( $offset < $length )

    Hope this helps!

    Smile,
    Juliette

    *bump* Both bugs are still persistent in the new 1.0 version.

    Plugin Author FineWebdev

    (@freelancephp)

    The first was solved by adding line 242:
    $class_ori = (empty($attrs['class'])) ? '' : $attrs['class'];

    The second one will be in the next bugfix release.

    Thanks Juliette for the code review (again ;)).

    Excellent! Sorry I missed line 242, just did a quick code compare, bit too quick it seems 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Minibug fix] undefined variable notice’ is closed to new replies.