- Timestamp:
- May 22, 2009, 10:42:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r223 r225 1 1 <?php 2 function xpress_the_title($show = false)2 function xpress_the_title($show = true) 3 3 { 4 4 $output = '<div class ="xpress-post-header">' . "\n"; … … 86 86 } 87 87 88 function xpress_credit($show = false)88 function xpress_credit($show = true) 89 89 { 90 90 global $wp_version , $xoops_config; … … 111 111 } 112 112 113 function xpress_convert_time($show = false)113 function xpress_convert_time($show = true) 114 114 { 115 115 $ret = timer_stop(0) .'sec. '; … … 498 498 } 499 499 500 function xpress_pings_list($show = false){500 function xpress_pings_list($show = true){ 501 501 502 502 $trackbacks = xpress_get_pings(); … … 547 547 /** @todo Use API instead of SELECTs. */ 548 548 if ( $user_ID) { 549 $trackbacks = $wpdb->get_results(sprintf("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND (comment_approved = '1' OR ( user_id = %d AND comment_approved = '0' ) ) AND ( comment_type = 'trackback' OR comment_type = 'pingback' ) ORDER BY comment_date", $post->ID, $user_ID));549 $trackbacks = $wpdb->get_results(sprintf("SELECT * , UNIX_TIMESTAMP(comment_date) AS comment_timestamp ,UNIX_TIMESTAMP(comment_date_gmt) AS comment_timestamp_gmt FROM $wpdb->comments WHERE comment_post_ID = %d AND (comment_approved = '1' OR ( user_id = %d AND comment_approved = '0' ) ) AND ( comment_type = 'trackback' OR comment_type = 'pingback' ) ORDER BY comment_date", $post->ID, $user_ID)); 550 550 } else if ( empty($trackback_author) ) { 551 $trackbacks = $wpdb->get_results(sprintf("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved = '1' AND ( comment_type = 'trackback' OR comment_type = 'pingback' ) ORDER BY comment_date", $post->ID));552 } else { 553 $trackbacks = $wpdb->get_results(sprintf("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND ( comment_approved = '1' OR ( comment_author = %s AND comment_author_email = %s AND comment_approved = '0' ) ) AND ( comment_type = 'trackback' OR comment_type = 'pingback' ) ORDER BY comment_date", $post->ID, $trackback_author, $trackback_author_email));551 $trackbacks = $wpdb->get_results(sprintf("SELECT * , UNIX_TIMESTAMP(comment_date) AS comment_timestamp ,UNIX_TIMESTAMP(comment_date_gmt) AS comment_timestamp_gmt FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved = '1' AND ( comment_type = 'trackback' OR comment_type = 'pingback' ) ORDER BY comment_date", $post->ID)); 552 } else { 553 $trackbacks = $wpdb->get_results(sprintf("SELECT * , UNIX_TIMESTAMP(comment_date) AS comment_timestamp ,UNIX_TIMESTAMP(comment_date_gmt) AS comment_timestamp_gmt FROM $wpdb->comments WHERE comment_post_ID = %d AND ( comment_approved = '1' OR ( comment_author = %s AND comment_author_email = %s AND comment_approved = '0' ) ) AND ( comment_type = 'trackback' OR comment_type = 'pingback' ) ORDER BY comment_date", $post->ID, $trackback_author, $trackback_author_email)); 554 554 } 555 555 … … 573 573 'title' => $title , 574 574 'content' => $content , 575 'date' => $trackback->comment_ date,576 'date_gmt' => $trackback->comment_ date_gmt ,575 'date' => $trackback->comment_timestamp , 576 'date_gmt' => $trackback->comment_timestamp_gmt , 577 577 'agent' => $trackback->comment_agent , 578 578 'type' => $trackback->comment_type ,
Note: See TracChangeset
for help on using the changeset viewer.