Plugin Directory

Changeset 192821


Ignore:
Timestamp:
01/11/2010 08:11:52 PM (16 years ago)
Author:
frekel
Message:

Fix for 2.7.1

Location:
wp-photocontest/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-photocontest/trunk/play.php

    r192686 r192821  
    382382            else
    383383            {
     384                if (function_exists('get_the_author_meta'))
     385                {
     386                    $display_name = get_the_author_meta('display_name', $current_user->data->ID);
     387                }
     388                else
     389                {
     390                    $display_name = get_author_name($current_user->data->ID);
     391                }
    384392                ?>         
    385                 <b><?php _e('Hello', 'wp-photocontest');?>  <?php echo get_the_author_meta('display_name', $current_user->data->ID); ?>,</b><br />
     393                <b><?php _e('Hello', 'wp-photocontest');?>  <?php echo $display_name; ?>,</b><br />
    386394                <p><?php echo $enter_text;?></p>
    387395                <br />
  • wp-photocontest/trunk/viewimg.php

    r192675 r192821  
    436436                                    <td class="otherCol">
    437437                                        <?php
    438                                         $auther_name = get_the_author_meta('display_name', $image_details['wp_uid']);
     438                                        if (function_exists('get_the_author_meta'))
     439                                        {
     440                                            $auther_name = get_the_author_meta('display_name', $current_user->data->ID);
     441                                        }
     442                                        else
     443                                        {
     444                                            $auther_name = get_author_name($current_user->data->ID);
     445                                        }                                       
    439446                                        if (empty($auther_name))
    440447                                        {
Note: See TracChangeset for help on using the changeset viewer.