Changeset 192821
- Timestamp:
- 01/11/2010 08:11:52 PM (16 years ago)
- Location:
- wp-photocontest/trunk
- Files:
-
- 2 edited
-
play.php (modified) (1 diff)
-
viewimg.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-photocontest/trunk/play.php
r192686 r192821 382 382 else 383 383 { 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 } 384 392 ?> 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 /> 386 394 <p><?php echo $enter_text;?></p> 387 395 <br /> -
wp-photocontest/trunk/viewimg.php
r192675 r192821 436 436 <td class="otherCol"> 437 437 <?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 } 439 446 if (empty($auther_name)) 440 447 {
Note: See TracChangeset
for help on using the changeset viewer.