Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class-simplepie.php - 403.173 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 2.211 * @todo phpDoc comments
- 297.740 * Strip HTML comments
- 297.813 * @param string $data Data to strip comments from
- 298.639 * Remove RFC822 comments
- 298.712 * @param string $data Data to strip comments from
- 359.126 * Remove RFC822 comments
- 359.202 * @param string $data Data to strip comments from
- 397.863 // Strip comments
- class-wp-xmlrpc-server.php - 104.805 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 272 * pingback. Additional WordPress API for managing comments, pages, posts,
- 27.447 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
- 28.905 * Retrieve comments.
- 29.392 return new IXR_Error( 401, __( 'Sorry, you cannot edit comments.' ) );
- 29.847 $comments = get_comments( array('status' => $status, 'post_id' => $post_id, 'offset' => $offset, 'number' => $number ) );
- 29.994 $num_comments = count($comments);
- 30.236 $raw_args[0], $raw_args[1], $raw_args[2], $comments[$i]->comment_ID,
- 30.876 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
- 31.034 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
- 31.811 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
- 31.969 return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
- 37.521 return new IXR_Error( 403, __( 'You are not allowed access to details about comments.' ) );
- 94.727 $comments = $wpdb->get_results( $wpdb->prepare("SELECT comment_author_url, comment_content, comment_author_IP, comment_type FROM $wpdb->comments WHERE comment_post_ID = %d", $post_ID) );
- 94.862 $comments = $wpdb->get_results( $wpdb->prepare("SELECT comment_author_url, comment_content, comment_author_IP, comment_type FROM $wpdb->comments WHERE comment_post_ID = %d", $post_ID) );
- 94.925 if ( !$comments )
- 95.003 foreach ( $comments as $comment ) {
- 100.026 if ( $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_author_url = %s", $post_ID, $pagelinkedfrom) ) )
- 104.373 $comments = $wpdb->get_results( $wpdb->prepare("SELECT comment_author_url, comment_content, comment_author_IP, comment_type FROM $wpdb->comments WHERE comment_post_ID = %d", $post_ID) );
- 104.508 $comments = $wpdb->get_results( $wpdb->prepare("SELECT comment_author_url, comment_content, comment_author_IP, comment_type FROM $wpdb->comments WHERE comment_post_ID = %d", $post_ID) );
- 104.571 if ( !$comments )
- 104.643 foreach ( $comments as $comment ) {
- Comment.php - 67.710 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 33 * Manages WordPress comments
- 248 * If comment moderation is set in the administration, then all comments,
- 1.395 * @return bool Whether the checks passed (true) and the comments should be
- 3.110 $ok_to_comment = $wpdb->get_var("SELECT comment_approved FROM $wpdb->comments WHERE comment_author = '$author' AND comment_author_email = '$email' and comment_approved = '1' LIMIT 1");
- 3.467 * Retrieve the approved comments for post $post_id.
- 3.598 * @return array $comments The approved comments
- 3.620 * @return array $comments The approved comments
- 3.759 return $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved = '1' ORDER BY comment_date", $post_id));
- 5.100 $_comment = $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_ID = %d LIMIT 1", $comment));
- 5.663 * Retrieve a list of comments.
- 6.036 * @return array List of comments.
- 10.198 $query = "SELECT $fields FROM $wpdb->comments $join WHERE $where ORDER BY $orderby $order $limits";
- 10.323 $comments = $wpdb->get_results( $query );
- 10.368 $comments = apply_filters_ref_array( 'the_comments', array( $comments, &$this ) );
- 10.428 $comments = apply_filters_ref_array( 'the_comments', array( $comments, &$this ) );
- 10.482 wp_cache_add( $cache_key, $comments, 'comment' );
- 10.518 return $comments;
- 12.267 $lastcommentmodified = $wpdb->get_var("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1");
- 12.449 $lastcommentmodified = $wpdb->get_var("SELECT comment_date FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1");
- 12.682 $lastcommentmodified = $wpdb->get_var($wpdb->prepare("SELECT DATE_ADD(comment_date_gmt, INTERVAL %s SECOND) FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 1", $add_seconds_server));
- 12.926 * The amount of comments in a post or total comments.
- 12.954 * The amount of comments in a post or total comments.
- 13.282 * @param int $post_id Optional. Comment amount in post if > 0, else total comments blog wide.
- 13.381 * @return array The amount of spam, approved, awaiting moderation, and total comments.
- 13.709 FROM {$wpdb->comments}
- 19.344 $dupe = "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = '$comment_post_ID' AND comment_approved != 'trash' AND ( comment_author = '$comment_author' ";
- 20.507 // Everyone else's comments will be checked.
- 21.912 if ( $lasttime = $wpdb->get_var( $wpdb->prepare( "SELECT `comment_date_gmt` FROM `$wpdb->comments` WHERE `comment_date_gmt` >= %s AND ( `comment_author_IP` = %s OR `comment_author_email` = %s ) ORDER BY `comment_date_gmt` DESC LIMIT 1", $hour_ago, $ip,
- 22.467 die( __('You are posting comments too quickly. Slow down.') );
- 22.540 wp_die( __('You are posting comments too quickly. Slow down.'), '', array('response' => 403) );
- 22.654 * Separates an array of comments into an array keyed by comment_type.
- 22.743 * @param array $comments Array of comments
- 22.761 * @param array $comments Array of comments
- 22.797 * @return array Array of comments keyed by comment_type.
- 22.865 function &separate_comments(&$comments) {
- 23.013 $count = count($comments);
- 23.074 $type = $comments[$i]->comment_type;
- 23.182 $comments_by_type[$type][] = &$comments[$i];
- 23.287 $comments_by_type['pings'][] = &$comments[$i];
- 23.605 * @param array $comments Optional array of comment objects. Defaults to $wp_query->comments
- 23.673 * @param array $comments Optional array of comment objects. Defaults to $wp_query->comments
- 23.716 * @param int $per_page Optional comments per page.
- 23.803 * @param boolean $threaded Optional control over flat or threaded comments.
- 23.895 function get_comment_pages_count( $comments = null, $per_page = null, $threaded = null ) {
- 23.990 if ( null === $comments && null === $per_page && null === $threaded && !empty($wp_query->max_num_comment_pages) )
- 24.144 if ( !$comments || !is_array($comments) )
- 24.167 if ( !$comments || !is_array($comments) )
- 24.183 $comments = $wp_query->comments;
- 24.205 $comments = $wp_query->comments;
- 24.231 if ( empty($comments) )
- 24.647 $count = ceil( $walker->get_number_of_root_elements( $comments ) / $per_page );
- 24.710 $count = ceil( count( $comments ) / $per_page );
- 26.433 // Count comments older than this one
- 26.547 $oldercoms = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(comment_ID) FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_parent = 0 AND comment_approved = '1' AND comment_date_gmt < '%s'" . $comtypewhere, $comment->comment_post_ID,
- 26.754 // No older comments? Then it's page #1.
- 26.835 // Divide comments older than this one by comments per page to get this comment's page number
- 26.867 // Divide comments older than this one by comments per page to get this comment's page number
- 28.488 * Retrieve total comments for blog or single post.
- 28.618 * and spam comments for either the entire blog or single post. Those properties
- 28.713 * contain the amount of comments that match the status. The 'total_comments'
- 28.809 * property contains the integer of total comments.
- 29.253 $count = wp_cache_get("comments-{$post_id}", 'counts');
- 29.540 $count = $wpdb->get_results( "SELECT comment_approved, COUNT( * ) AS num_comments FROM {$wpdb->comments} {$where} GROUP BY comment_approved", ARRAY_A );
- 30.312 wp_cache_set("comments-{$post_id}", $stats, 'counts');
- 31.762 $children = $wpdb->get_col( $wpdb->prepare("SELECT comment_ID FROM $wpdb->comments WHERE comment_parent = %d", $comment_id) );
- 31.868 $wpdb->update($wpdb->comments, array('comment_parent' => $comment->comment_parent), array('comment_parent' => $comment_id));
- 32.497 if ( ! $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->comments WHERE comment_ID = %d LIMIT 1", $comment_id) ) )
- 40.862 $wpdb->insert($wpdb->comments, $data);
- 48.453 if ( !$wpdb->update( $wpdb->comments, array('comment_approved' => $status), array('comment_ID' => $comment_id) ) ) {
- 50.541 $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
- 51.654 * When $do_deferred is false (is by default) and the comments have been set to
- 51.827 * If the comments have not be set up to be deferred, then the post will be
- 53.537 $new = (int) $wpdb->get_var( $wpdb->prepare("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_approved = '1'", $post_id) );
- 65.822 * Updates the comment cache of given comments.
- 65.853 * Will add the comments in $comments to the cache. If comment ID already exists
- 65.866 * Will add the comments in $comments to the cache. If comment ID already exists
- 66.067 * cache using the comment group with the key using the ID of the comments.
- 66.165 * @param array $comments Array of comment row objects
- 66.240 function update_comment_cache($comments) {
- 66.273 foreach ( (array) $comments as $comment )
- 66.399 * Close comments on old posts on the fly, without any extra DB queries. Hooked to the_posts.
- 67.067 * Close comments on an old post. Hooked to comments_open and pings_open.
- comment-template.php - 56.016 Bytes - So, 20.03.11 um 09:37 - F:\Ruhrgebietonline\wp-includes\
- 12.198 // Alt for top-level comments
- 17.299 * Retrieves the link to the current post comments.
- 17.410 * @return string The link to the comments
- 17.505 return get_permalink($post_id) . '#comments';
- 17.568 * Displays the link to the current post comments.
- 17.977 * Retrieve the amount of comments a post has.
- 18.099 * @uses apply_filters() Calls the 'get_comments_number' hook on the number of comments
- 18.178 * @return int The number of comments a post has
- 18.587 * Display the language string for the number of comments the current post has.
- 18.725 * @uses apply_filters() Calls the 'comments_number' hook on the output and number of comments respectively.
- 18.788 * @param string $zero Text for no comments
- 25.344 * Whether the current post is open for comments.
- 25.506 * @return bool True if the comments are open
- 26.173 * Displays form token for unfiltered comments.
- 27.033 * Will not display the comments template if not on single post or page, or if
- 27.115 * the post does not have comments.
- 27.185 * Uses the WordPress database object to query for the comments. The comments
- 27.199 * Uses the WordPress database object to query for the comments. The comments
- 27.281 * are passed through the 'comments_array' filter hook with the list of comments
- 27.904 * @uses $withcomments Will not try to get the comments if the post has none.
- 27.983 * @param string $file Optional, default '/comments.php'. The file to load
- 28.084 * @param bool $separate_comments Optional, whether to separate the comments by comment type. Default is false.
- 28.164 * @return null Returns null if no comments appear
- 28.224 function comments_template( $file = '/comments.php', $separate_comments = false ) {
- 28.512 $file = '/comments.php';
- 29.343 $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND (comment_approved = '1' OR ( user_id = %d AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, $user_ID));
- 29.410 $comments = $wpdb->get_results($wpdb->prepare("SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND (comment_approved = '1' OR ( user_id = %d AND comment_approved = '0' ) ) ORDER BY comment_date_gmt", $post->ID, $user_ID));
- 29.620 $comments = get_comments( array('post_id' => $post->ID, 'status' => 'approve', 'order' => 'ASC') );
- 29.734 $comments = $wpdb->get_results($wpdb->prepare("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' ) ) ORDER BY comment_date_gmt",
- 29.801 $comments = $wpdb->get_results($wpdb->prepare("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' ) ) ORDER BY comment_date_gmt",
- 30.085 // keep $comments for legacy's sake
- 30.125 $wp_query->comments = apply_filters( 'comments_array', $comments, $post->ID );
- 30.170 $wp_query->comments = apply_filters( 'comments_array', $comments, $post->ID );
- 30.196 $comments = &$wp_query->comments;
- 30.219 $comments = &$wp_query->comments;
- 30.275 $wp_query->comment_count = count($wp_query->comments);
- 30.320 update_comment_cache($wp_query->comments);
- 30.416 $wp_query->comments_by_type = &separate_comments($comments);
- 31.160 require( ABSPATH . WPINC . '/theme-compat/comments.php');
- 32.406 * Displays the link to the comments popup window for the current post ID.
- 32.715 * @param string $zero The string to display when no comments
- 32.941 * @param string $css_class The CSS class to use for comments
- 33.001 * @param string $none The string to display when comments have been turned off
- 33.810 echo __('Enter your password to view comments.');
- 35.443 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
- 37.132 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
- 38.049 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
- 39.339 * @return string|bool|null Link to show comment form, if successful. False, if comments are closed.
- 40.391 * Retrieve hidden input HTML for replying to comments.
- 40.479 * @return string Hidden input HTML for replying to comments
- 40.955 * Output hidden input HTML for replying to comments.
- 47.515 * List comments
- 47.544 * Used in the comments.php template to list comments for a particular post
- 47.574 * Used in the comments.php template to list comments for a particular post
- 47.722 * @param array $comments Optional array of comment objects. Defaults to $wp_query->comments
- 47.790 * @param array $comments Optional array of comment objects. Defaults to $wp_query->comments
- 47.849 function wp_list_comments($args = array(), $comments = null ) {
- 48.388 // Figure out what comments we'll be looping through ($_comments)
- 48.452 if ( null !== $comments ) {
- 48.469 $comments = (array) $comments;
- 48.489 $comments = (array) $comments;
- 48.514 if ( empty($comments) )
- 48.614 $comments_by_type = &separate_comments($comments);
- 48.764 $_comments = $comments;
- 48.815 if ( empty($wp_query->comments) )
- 48.982 $wp_query->comments_by_type = &separate_comments($wp_query->comments);
- 49.162 $_comments = $wp_query->comments;
- 54.592 <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="<?php echo esc_attr( $args['id_form'] ); ?>">
- default-widgets.php - 43.519 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 12.278 <li><a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php echo esc_attr(__('The latest comments to all posts in RSS')); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
- 23.981 $widget_ops = array('classname' => 'widget_recent_comments', 'description' => __( 'The most recent comments' ) );
- 24.024 $this->WP_Widget('recent-comments', __('Recent Comments'), $widget_ops);
- 24.902 global $comments, $comment;
- 25.390 $comments = get_comments( array( 'number' => $number, 'status' => 'approve' ) );
- 25.624 if ( $comments ) {
- 25.660 foreach ( (array) $comments as $comment) {
- 25.749 $output .= '<li class="recentcomments">' . /* translators: comments widget: 1: comment author, 2: post link */ sprintf(_x('%1$s on %2$s', 'widgets'), get_comment_author_link(), '<a href="' . esc_url( get_comment_link($comment->comment_ID) ) . '">' .
- 27.158 <p><label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Number of comments to show:'); ?></label>
- deprecated.php - 77.238 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 8.551 * @return bool returns true if $user_id can edit $post_id's comments
- 8.762 // right now if one can edit a post, one can edit comments made on it
- 9.142 * @return bool returns true if $user_id can delete $post_id's comments
- 9.334 // right now if one can edit comments, one can delete comments
- 9.359 // right now if one can edit comments, one can delete comments
- 37.393 * @param bool $include_unapproved Whether to include unapproved comments
- Feed.php - 15.487 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 5.276 * Outputs the link to the comments for the current post in an xml safe way
- 6.342 * Display the link to the comments.
- feed-atom.php - 2.474 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 2.152 <link rel="replies" type="text/html" href="<?php the_permalink_rss() ?>#comments" thr:count="<?php echo get_comments_number()?>"/>
- feed-atom-comments.php - 4.380 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 3.977 // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, its more important that they both use the same system
- feed-rss2.php - 2.583 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 1.510 <comments><?php comments_link_feed(); ?></comments>
- 1.551 <comments><?php comments_link_feed(); ?></comments>
- 2.406 <slash:comments><?php echo get_comments_number(); ?></slash:comments>
- 2.459 <slash:comments><?php echo get_comments_number(); ?></slash:comments>
- feed-rss2-comments.php - 2.938 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 2.494 <description><?php echo ent2ncr(__('Protected Comments: Please enter your password to view comments.')); ?></description>
- formatting.php - 95.703 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 38.543 // WP bug fix for comments - in case you REALLY meant to type '< !--'
- 41.200 // WP fix for the bug with HTML comments
- functions.php - 147.575 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 54.559 load_template( ABSPATH . WPINC . '/feed-rss2-comments.php' );
- 54.924 load_template( ABSPATH . WPINC . '/feed-atom-comments.php');
- 84.061 $trans['bulk']['comments'] = array( __( 'Your attempt to bulk modify comments has failed.' ), false );
- 84.118 $trans['bulk']['comments'] = array( __( 'Your attempt to bulk modify comments has failed.' ), false );
- 84.175 $trans['moderate']['comments'] = array( __( 'Your attempt to moderate comments has failed.' ), false );
- 84.225 $trans['moderate']['comments'] = array( __( 'Your attempt to moderate comments has failed.' ), false );
- 139.341 * Permanently deletes posts, pages, attachments, and comments which have been in the trash for EMPTY_TRASH_DAYS.
- Kses.php - 42.747 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 17.950 // prevent multiple dashes in comments
- 18.151 # Allow HTML comments
- 41.216 if ( preg_match( '%[\\(&=}]|/\*%', $css ) ) // remove any inline css containing \ ( & } = or comments
- link-template.php - 76.319 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 13.618 $feed = str_replace('comments_', 'comments-', $feed);
- 13.789 * Retrieve the permalink for the post comments feed.
- 23.412 * Retrieve the permalink for the comments feed of the search results.
- 23.929 $link = add_query_arg('feed', 'comments-' . $feed, $link);
- 24.077 $link = apply_filters('search_feed_link', $link, $feed, 'comments');
- 53.429 $result .= '#comments';
- 53.565 * Return the link to next comments pages.
- 54.484 * Display the link to next comments pages.
- 54.778 * Return the previous comments page link.
- 54.868 * @param string $label Optional. Label for comments link text.
- 55.472 * Display the previous comments page link.
- 55.562 * @param string $label Optional. Label for comments link text.
- 55.728 * Create pagination links for the comments on the current post.
- 56.353 'add_fragment' => '#comments'
- ms-functions.php - 66.893 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 20.788 $illegal_names = array_merge($illegal_names, apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed' ) ) );
- ms-settings.php - 5.830 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 3.310 $reserved_blognames = array( 'page', 'comments', 'blog', 'wp-admin', 'wp-includes', 'wp-content', 'files', 'feed' );
- pluggable.php - 62.027 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 33.409 $notify_message .= __('You can see all comments on this post here: ') . "\r\n";
- 35.237 $notify_message .= get_permalink($comment->comment_post_ID) . "#comments\r\n\r\n";
- 37.845 $comments_waiting = $wpdb->get_var("SELECT count(comment_ID) FROM $wpdb->comments WHERE comment_approved = '0'");
- 40.790 'Currently %s comments are waiting for approval. Please visit the moderation panel:', $comments_waiting), number_format_i18n($comments_waiting) ) . "\r\n";
- 40.969 $notify_message .= admin_url("edit-comments.php?comment_status=moderated") . "\r\n";
- Post.php - 174.598 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 820 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats' ),
- 1.382 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'page-attributes', 'custom-fields', 'comments', 'revisions' ),
- 45.842 * editor or a meta box: 'title', 'editor', 'comments', 'revisions', 'trackbacks', 'author',
- 46.070 * and the 'comments' feature dicates whether the comments count will show on the edit screen.
- 46.108 * and the 'comments' feature dicates whether the comments count will show on the edit screen.
- 69.462 * This includes comments, post meta fields, and terms associated with the post.
- 72.451 $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d", $postid ));
- 75.474 * Moves comments for a post to the trash
- 75.945 $comments = $wpdb->get_results( $wpdb->prepare("SELECT comment_ID, comment_approved FROM $wpdb->comments WHERE comment_post_ID = %d", $post_id) );
- 76.040 $comments = $wpdb->get_results( $wpdb->prepare("SELECT comment_ID, comment_approved FROM $wpdb->comments WHERE comment_post_ID = %d", $post_id) );
- 76.105 if ( empty($comments) )
- 76.209 foreach ( $comments as $comment )
- 76.395 // Set status for all comments to post-trashed
- 76.453 $result = $wpdb->update($wpdb->comments, array('comment_approved' => 'post-trashed'), array('comment_post_ID' => $post_id));
- 76.700 * Restore comments for a post from the trash
- 77.540 foreach ( $group_by_status as $status => $comments ) {
- 77.687 $comments_in = implode( "', '", $comments );
- 77.731 $wpdb->query( "UPDATE $wpdb->comments SET comment_approved = '$status' WHERE comment_ID IN ('" . $comments_in . "')" );
- 83.251 * and 'post_date_gmt' keys. You can close the comments or open the comments by
- 83.272 * and 'post_date_gmt' keys. You can close the comments or open the comments by
- 119.985 * By default, the comments will use the default settings for whether the
- 120.044 * comments are allowed. You can close them manually or keep them open by
- 125.759 * Deletion removes all post meta fields, taxonomy, comments, etc. associated
- 127.495 $comment_ids = $wpdb->get_col( $wpdb->prepare( "SELECT comment_ID FROM $wpdb->comments WHERE comment_post_ID = %d", $post_id ));
- Query.php - 95.265 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 7.440 * Whether the current URL is within the comments popup window.
- 9.245 * Is the query for a comments feed?
- 18.488 * Whether there are comments to loop over.
- 20.706 * The list of comments for current post.
- 20.805 var $comments;
- 20.842 * The amount of comments for the posts.
- 24.211 * Set if query is within comments popup window.
- 27.001 unset( $this->comments );
- 33.680 if ( false !== strpos($qv['feed'], 'comments-') ) {
- 33.727 $qv['feed'] = str_replace('comments-', '', $qv['feed']);
- 65.087 $cjoin = "JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) $join ";
- 65.219 $cgroupby = "$wpdb->comments.comment_id";
- 65.332 $cjoin = "JOIN $wpdb->posts ON ( $wpdb->comments.comment_post_ID = $wpdb->posts.ID )";
- 66.186 $this->comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits");
- 66.249 $this->comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits");
- 66.272 $this->comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits");
- 66.368 $this->comment_count = count($this->comments);
- 66.429 foreach ( $this->comments as $comment )
- 70.960 $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits";
- 70.983 $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits";
- 71.049 $this->comments = $wpdb->get_results($comments_request);
- 71.139 $this->comment_count = count($this->comments);
- 77.527 $this->comment = $this->comments[$this->current_comment];
- 78.026 * Whether there are more comments available.
- 78.078 * Automatically rewinds comments when finished.
- 78.182 * @return bool True, if more comments. False, if no more posts.
- 78.482 * Rewind the comments, resets the comment index and comment to first.
- 78.716 $this->comment = $this->comments[0];
- 85.930 * Whether the current URL is within the comments popup window.
- 86.832 * Is the query for a comments feed?
- Rewrite.php - 60.745 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 3.290 * Endpoint Mask for comments.
- 9.921 var $comments_base = 'comments';
- 29.927 * @param bool $forcomments Optional, default is false. Whether for comments.
- 35.657 //only on pages with comments add ../comment-page-xx/
- script-loader.php - 35.968 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 16.251 $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'jquery-query'), '20110122' );
- 16.281 $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'jquery-query'), '20110122' );
- 16.417 $scripts->add_data( 'admin-comments', 'group', 1 );
- 16.472 $scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
- 17.580 'showcomm' => __('Show more comments'),
- 17.621 'endcomm' => __('No more comments found.'),
- 21.305 $scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox' ), '20110113' );
- Theme.php - 56.474 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 32.108 $template = get_query_template( 'comments_popup', array( 'comments-popup.php' ) );
- 32.268 $template = ABSPATH . WPINC . '/theme-compat/comments-popup.php';
- Wp-db.php - 45.588 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\
- 3.427 var $tables = array( 'posts', 'comments', 'links', 'options', 'postmeta',
- 4.401 var $comments;
- Entry.php - 2.309 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\Pomo\
- 1.182 * - translator_comments (string) -- comments left by translators
- 1.250 * - extracted_comments (string) -- comments left by developers
- Po.php - 11.172 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\Pomo\
- 7.679 // comments have to be at the beginning
- Comments.php - 4.099 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\theme-compat\
- 457 if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
- 708 <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.'); ?></p>
- 842 <h3 id="comments"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
- 1.504 <?php else : // this is displayed if there are no comments so far ?>
- 1.572 <!-- If comments are open, but there are no comments. -->
- 1.608 <!-- If comments are open, but there are no comments. -->
- 1.643 <?php else : // comments are closed ?>
- 1.677 <!-- If comments are closed. -->
- 2.332 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- comments-popup.php - 5.460 Bytes - Do, 17.03.11 um 08:56 - F:\Ruhrgebietonline\wp-includes\theme-compat\
- 1.257 <h2 id="comments"><?php _e('Comments'); ?></h2>
- 1.437 <p><a href="<?php echo get_post_comments_feed_link($post->ID); ?>"><?php _e('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.'); ?></a></p>
- 1.797 $comments = get_approved_comments($id);
- 1.996 <?php if ($comments) { ?>
- 2.051 <?php foreach ($comments as $comment) { ?>
- 2.464 <?php } else { // this is displayed if there are no comments so far ?>
- 2.501 <p><?php _e('No comments yet.'); ?></p>
- 2.873 <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- 4.396 <?php } else { // comments are closed ?>
Advertisement
Add Comment
Please, Sign In to add comment