• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Akismet_Admin::comment_status_meta_box() –

You appear to be a bot. Output may be restricted

Description

Usage

Akismet_Admin::comment_status_meta_box( $comment );

Parameters

$comment
( mixed ) required –

Returns

void

Source

File name: akismet/class.akismet-admin.php
Lines:

101 to 125 of 125
            /* translators: The placeholder is an amount of time, like "7 seconds" or "3 days" returned by the function human_time_diff(). */
            $time_html = '<span style="color: #999;" alt="' . esc_attr( $time ) . '" title="' . esc_attr( $time ) . '">' . sprintf( esc_html__( '%s ago', 'akismet' ), human_time_diff( $row['time'] ) ) . '</span>';

            echo sprintf(
              /* translators: %1$s is a human-readable time difference, like "3 hours ago", and %2$s is an already-translated phrase describing how a comment's status changed, like "This comment was reported as spam." */
              esc_html( __( '%1$s - %2$s', 'akismet' ) ),
              // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
              $time_html,
              // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
              $message
            ); // esc_html() is done above so that we can use HTML in $message.
          } else {
            // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
            echo $message; // esc_html() is done above so that we can use HTML in $message.
          }

          echo '</p>';
        }
      }
    } else {
      echo '<p>';
      echo esc_html( __( 'No comment history.', 'akismet' ) );
      echo '</p>';
    }
  }
 
« Previous [1] [2]

 View on GitHub View on Trac

Published: 19th December 2019 | Last updated: 9th June 2022

Primary Sidebar

Information

Function name: Akismet_Admin::comment_status_meta_box
Class ref: Akismet_Admin
Plugin ref: Akismet
Version: 5.0.1
Sourcefile: class.akismet-admin.php
File ref: class.akismet-admin.php
Deprecated?: No
API Letters: A,C,M,S

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 6.1.1. PHP: 8.0.28
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites