WordPress.org

Plugin Directory

Changeset 732036


Ignore:
Timestamp:
06/26/13 10:51:47 (10 months ago)
Author:
donncha
Message:
  • Added a src field to the Account object and a polldaddy_get_user_code action that can be used to get the user_code from a 3rd party location.
  • Cleaned up text slightly to make it more readable.
Location:
polldaddy/trunk
Files:
2 edited

Legend:

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

    r730840 r732036  
    266266    var $avatarURL; 
    267267    var $bio; 
     268    var $src; 
    268269} 
    269270 
  • polldaddy/trunk/polldaddy.php

    r731478 r732036  
    337337 
    338338        if ( empty( $this->user_code ) && $page == 'polls' ) { 
    339             $action = 'signup'; 
     339            // one last try to get the user code automatically if possible 
     340            $this->user_code = apply_filters_ref_array( 'polldaddy_get_user_code', array( $this->user_code, &$this ) ); 
     341            if ( false == $this->user_code ) 
     342                $action = 'signup'; 
    340343        } 
    341344 
     
    452455 
    453456                check_admin_referer( 'polldaddy-account' ); 
    454                  
     457 
    455458                $this->user_code = ''; 
    456459                update_option( 'pd-usercode-'.$this->id, '' ); 
     
    458461                if ( $new_args = $this->management_page_load_signup() ) 
    459462                    $query_args = array_merge( $query_args, $new_args ); 
     463 
    460464                if ( $this->errors->get_error_codes() ) 
    461465                    return false; 
     
    15231527            if ( $this->is_author ) { ?> 
    15241528 
    1525                 <h3 style="margin-bottom:0px;"><?php _e( 'You haven\'t used our fancy plugin to create any polls for this blog!', 'polldaddy');?> </h3> 
     1529                <h3 style="margin-bottom:0px;"><?php _e( 'You haven\'t created any polls for this blog.', 'polldaddy');?> </h3> 
    15261530                <p style="margin-bottom:20px;"><?php _e( 'Why don\'t you go ahead and get started on that?', 'polldaddy' ); ?></p> 
    15271531                <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'create-poll' ) ) ); ?>" class="button-primary"><?php _e( 'Create a Poll Now', 'polldaddy' ); ?></a> 
     
    15301534            } else { ?> 
    15311535 
    1532                 <p id="no-polls"><?php _e( 'No one has created any polls for this blog via our fancy plugin!', 'polldaddy' ); ?></p> 
     1536                <p id="no-polls"><?php _e( 'No one has created any polls for this blog.', 'polldaddy' ); ?></p> 
    15331537 
    15341538            <?php } 
Note: See TracChangeset for help on using the changeset viewer.