Plugin Directory


Ignore:
Timestamp:
10/07/2025 02:25:18 PM (6 months ago)
Author:
donncha
Message:

Committing 3.1.3 to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • polldaddy/trunk/polldaddy-shortcode.php

    r2435361 r3374483  
    181181            $poll      = intval( $poll );
    182182            $poll_url  = sprintf( 'https://poll.fm/%d', $poll );
    183             $poll_js   = sprintf( '%s.polldaddy.com/p/%d.js', '//static', $poll );
     183            $poll_js   = sprintf( 'https://static.polldaddy.com/p/%d.js', $poll );
    184184            $poll_link = sprintf( '<a href="%s">Take Our Poll</a>', $poll_url );
    185185
     
    443443if ( !function_exists( 'polldaddy_link' ) ) {
    444444    // http://polldaddy.com/poll/1562975/?view=results&msg=voted
     445    // http://poll.fm/1562975
    445446    function polldaddy_link( $content ) {
    446         if ( false === strpos( $content, "polldaddy.com/" ) )
     447        if ( false === strpos( $content, "polldaddy.com/" ) && false === strpos( $content, "poll.fm/" ) )
    447448            return $content;
    448449        $textarr = wp_html_split( $content );
Note: See TracChangeset for help on using the changeset viewer.