Plugin Directory

Changeset 633547


Ignore:
Timestamp:
12/03/2012 03:23:08 PM (13 years ago)
Author:
raido357
Message:

Remove MSN profile field support, Microsoft Live Messenger service is completly turned off on March 2013

Location:
dippler/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • dippler/trunk/classes/dippler-profile-manager.php

    r616851 r633547  
    169169        $data .= "<mendeley><![CDATA[{$this->mendeley}]]></mendeley>";
    170170        $data .= "<skype><![CDATA[{$this->skype}]]></skype>";
    171         $data .= "<msn><![CDATA[{$this->msn}]]></msn>";
    172171        $data .= "<blogurl><![CDATA[{$this->blogurl}]]></blogurl>";
    173172        $data .= "<department><![CDATA[{$this->department}]]></department>";
     
    212211                    case 'homepage':
    213212                    case 'blogurl':
    214                     case 'msn':
    215213                    case 'delicious':
    216214                        if ( parse_url( $value, PHP_URL_HOST ) ) {
     
    258256                    }
    259257                    break;
    260                 case 'msn':
    261                     if( !parse_url( $value, PHP_URL_HOST ) && !empty( $value ) ) {
    262                         //If we don't have URL and it's not an email, let's assume its a profile
    263                         if ( !filter_var( $value, FILTER_VALIDATE_EMAIL ) ) {
    264                             $value = 'http://profile.live.com/'.$value;
    265                         }
    266                         //Otherwise possibly email, do nohting
    267                     }
    268                     break;
    269258            }
    270259            $this->profile->{$field} = $value;
  • dippler/trunk/main.php

    r633521 r633547  
    10681068                //Email field
    10691069                $this->getProfileField( 'dippler-email', __( 'Email', $this->getTextdomain() ), __( 'Your email', $this->getTextdomain() ), $profile->email );
    1070                 //MSN field
    1071                 $this->getProfileField( 'dippler-msn', __( 'MSN', $this->getTextdomain() ), __( 'Your MSN', $this->getTextdomain() ), $profile->msn );
    10721070                //Skype field
    10731071                $this->getProfileField( 'dippler-skype', __( 'Skype', $this->getTextdomain() ), __( 'Your Skype', $this->getTextdomain() ), $profile->skype );
     
    11011099                $profile->skype = $this->getUpdatedProfileField( &$profile, 'skype' );
    11021100                $profile->twitter = $this->getUpdatedProfileField( &$profile, 'twitter' );
    1103                 $profile->msn = $this->getUpdatedProfileField( &$profile, 'msn' );
    11041101                $profile->mendeley = $this->getUpdatedProfileField( &$profile, 'mendeley' );
    11051102                $profile->delicious = $this->getUpdatedProfileField( &$profile, 'delicious' );
  • dippler/trunk/themes/twentyeleven_dippler/dippler-profile-page.php

    r633541 r633547  
    3737                    <tr><td><?php _e( 'Homepage', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'homepage' ); ?></td></tr>
    3838                    <?php if ( is_user_logged_in() ) { ?>
    39                         <tr><td><?php _e( 'MSN', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'msn' ); ?></td></tr>
    4039                        <tr><td><?php _e( 'Skype', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'skype' ); ?></td></tr>
    4140                    <?php } ?>
  • dippler/trunk/themes/twentyten_dippler/dippler-profile-page.php

    r633541 r633547  
    3737                    <tr><td><?php _e( 'Homepage', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'homepage' ); ?></td></tr>
    3838                    <?php if ( is_user_logged_in() ) { ?>
    39                         <tr><td><?php _e( 'MSN', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'msn' ); ?></td></tr>
    4039                        <tr><td><?php _e( 'Skype', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'skype' ); ?></td></tr>
    4140                    <?php } ?>
  • dippler/trunk/themes/twentytwelve_dippler/dippler-profile-page.php

    r633541 r633547  
    3737                        <tr><td><?php _e( 'Homepage', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'homepage' ); ?></td></tr>
    3838                        <?php if ( is_user_logged_in() ) { ?>
    39                             <tr><td><?php _e( 'MSN', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'msn' ); ?></td></tr>
    4039                            <tr><td><?php _e( 'Skype', $dipplerWP->getTextdomain() ); ?></td><td><?php $profile->_print( 'skype' ); ?></td></tr>
    4140                        <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.