WordPress.org

Plugin Directory

Changeset 730840


Ignore:
Timestamp:
06/24/13 12:00:12 (10 months ago)
Author:
donncha
Message:

Removed deprecated warnings. Props @Till, http://wordpress.org/support/topic/deprecated-code-2

Location:
polldaddy/trunk
Files:
4 edited

Legend:

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

    r576615 r730840  
    9292        $parser = new Polldaddy_XML_Parser( $this->response_xml ); 
    9393         
    94         $this->response =& $parser->objects[0]; 
     94        $this->response = $parser->objects[0]; 
    9595        if ( isset( $this->response->errors->error ) ) { 
    9696            if ( !is_array( $this->response->errors->error ) ) 
     
    131131            $args = array( $object->___name => &$object ); 
    132132        elseif ( is_array( $object ) ) 
    133             $args =& $object; 
     133            $args = $object; 
    134134        else 
    135135            $args = null; 
     
    13181318        $r = get_object_vars( $args ); 
    13191319    elseif ( is_array( $args ) ) 
    1320         $r =& $args; 
     1320        $r = $args; 
    13211321    else 
    13221322        wp_parse_str( $args, $r ); 
  • polldaddy/trunk/polldaddy-org.php

    r728453 r730840  
    281281                    </th> 
    282282                    <td> 
    283                         <input type="text" name="polldaddy_email" id="polldaddy-email" aria-required="true" size="40" value="<?php if ( isset( $_POST['polldaddy_email'] ) ) echo attribute_escape( $_POST['polldaddy_email'] ); ?>" /> 
     283                        <input type="text" name="polldaddy_email" id="polldaddy-email" aria-required="true" size="40" value="<?php if ( isset( $_POST['polldaddy_email'] ) ) echo esc_attr( $_POST['polldaddy_email'] ); ?>" /> 
    284284                    </td> 
    285285                </tr> 
     
    313313            <input type="hidden" name="action" value="account" /> 
    314314            <input type="hidden" name="account" value="import" /> 
    315             <input class="button-secondary" type="submit" value="<?php echo attribute_escape( __( 'Submit', 'polldaddy' ) ); ?>" /> 
     315            <input class="button-secondary" type="submit" value="<?php echo esc_attr( __( 'Submit', 'polldaddy' ) ); ?>" /> 
    316316        </p> 
    317317    </form> 
     
    971971?> 
    972972                <p> 
    973                     <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title', 'polldaddy' ); ?>: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo attribute_escape( $title ); ?>" /></label></p> 
     973                    <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title', 'polldaddy' ); ?>: <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></label></p> 
    974974                <p> 
    975975                    <label for="<?php echo $this->get_field_id( 'show_posts' ); ?>"> 
  • polldaddy/trunk/polldaddy-xml.php

    r569913 r730840  
    741741 
    742742            $new = $this->polldaddy_objects[$tag]; 
    743             $new_object =& new $new( $this->object_stack[$this->object_pos]['args'], $this->object_stack[$this->object_pos]['atts'] ); 
     743            $new_object = new $new( $this->object_stack[$this->object_pos]['args'], $this->object_stack[$this->object_pos]['atts'] ); 
    744744                                                                                                                                 
    745745            if ( is_numeric( $this->object_stack[$this->object_pos]['parent'] ) ) { 
    746746                $this->object_pos = $this->object_stack[$this->object_pos]['parent']; 
    747747                if ( $this->object_stack[$this->object_pos]['args_tag_pos'] ) { 
    748                     $this->object_stack[$this->object_pos]['args'][$this->object_stack[$this->object_pos]['args_tag']][$this->object_stack[$this->object_pos]['args_tag_pos']] =& $new_object; 
     748                    $this->object_stack[$this->object_pos]['args'][$this->object_stack[$this->object_pos]['args_tag']][$this->object_stack[$this->object_pos]['args_tag_pos']] = $new_object; 
    749749                } elseif ( $this->object_stack[$this->object_pos]['args_tag'] ) { 
    750                     $this->object_stack[$this->object_pos]['args'][$this->object_stack[$this->object_pos]['args_tag']] =& $new_object; 
     750                    $this->object_stack[$this->object_pos]['args'][$this->object_stack[$this->object_pos]['args_tag']] = $new_object; 
    751751                } 
    752752            } else { 
    753753                $this->object_pos = null; 
    754                 $this->objects[] =& $new_object; 
     754                $this->objects[] = $new_object; 
    755755            } 
    756756 
  • polldaddy/trunk/polldaddy.php

    r728453 r730840  
    16271627            if ( isset( $_POST['answer'] ) ) 
    16281628                foreach ( $_POST['answer'] as $answer_id => $answer ) 
    1629                     $answers[attribute_escape($answer_id)] = attribute_escape( stripslashes($answer) ); 
     1629                    $answers[esc_attr($answer_id)] = esc_attr( stripslashes($answer) ); 
    16301630        } elseif ( isset( $poll->answers->answer ) ) { 
    16311631            foreach ( $poll->answers->answer as $answer ) { 
    1632                 $answers[(int) $answer->_id] = attribute_escape( $answer->text ); 
     1632                $answers[(int) $answer->_id] = esc_attr( $answer->text ); 
    16331633 
    16341634                if ( $answer->mediaType == 1 && !empty( $answer->mediaCode ) ) { 
     
    18561856                    <td class="answer-media-icons" <?php echo isset( $_GET['iframe'] ) ? 'style="width: 55px !important;"' : '';?>> 
    18571857                    <ul class="answer-media" <?php echo isset( $_GET['iframe'] ) ? 'style="min-width: 30px;"' : '';?>> 
    1858 <?php  if ( $mediaType[999999999] == 2 ) { ?> 
     1858<?php  if ( isset( $mediaType[999999999] ) && $mediaType[999999999] == 2 ) { ?> 
    18591859                <li class="media-preview image-added" style="width: 20px; height: 16px; padding-left: 5px;"><img height="16" width="16" src="<?php echo $this->base_url; ?>img/icon-report-ip-analysis.png" alt="Video Embed"><?php echo $delete_media_link;?></li> 
    18601860<?php   } else { 
Note: See TracChangeset for help on using the changeset viewer.