diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
index 8d0e587b7f..0453dff0c8 100644
--- a/src/wp-admin/includes/template.php
+++ b/src/wp-admin/includes/template.php
@@ -80,7 +80,9 @@ class Walker_Category_Checklist extends Walker {
$name = 'tax_input['.$taxonomy.']';
$class = in_array( $category->term_id, $popular_cats ) ? ' class="popular-category"' : '';
- $output .= "\n
' . $title . '
-
' . apply_filters('editable_slug', $post->post_name) . '
+
' . apply_filters( 'editable_slug', $post->post_name ) . '
' . $post->post_author . '
' . esc_html( $post->ping_status ) . '
@@ -349,8 +368,23 @@ function get_inline_data($post) {
* @param unknown_type $mode
*/
function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true) {
- // allow plugin to replace the popup content
- $content = apply_filters( 'wp_comment_reply', '', array('position' => $position, 'checkbox' => $checkbox, 'mode' => $mode) );
+
+ /**
+ * Filter the in-line comment reply-to form output in the Comments
+ * list table.
+ *
+ * Returning a non-empty value here will short-circuit display
+ * of the in-line comment-reply form in the Comments list table,
+ * echoing the returned value instead.
+ *
+ * @since 2.7.0
+ *
+ * @see wp_comment_reply()
+ *
+ * @param string $content The reply-to form content.
+ * @param array $args An array of default args.
+ */
+ $content = apply_filters( 'wp_comment_reply', '', array( 'position' => $position, 'checkbox' => $checkbox, 'mode' => $mode ) );
if ( ! empty($content) ) {
echo $content;
@@ -556,6 +590,15 @@ function _list_meta_row( $entry, &$count ) {
function meta_form( $post = null ) {
global $wpdb;
$post = get_post( $post );
+
+ /**
+ * Filter the number of custom fields to retrieve for the drop-down
+ * in the Custom Fields meta box.
+ *
+ * @since 2.1.0
+ *
+ * @param int $limit Number of custom fields to retrieve. Default 30.
+ */
$limit = (int) apply_filters( 'postmeta_form_limit', 30 );
$keys = $wpdb->get_col( "
SELECT meta_key
@@ -770,6 +813,16 @@ function wp_dropdown_roles( $selected = false ) {
* @param string $action The action attribute for the form.
*/
function wp_import_upload_form( $action ) {
+
+ /**
+ * Filter the maximum allowed upload size for import files.
+ *
+ * @since 2.3.0
+ *
+ * @see wp_max_upload_size()
+ *
+ * @param int $max_upload_size Allowed upload size. Default 1 MB.
+ */
$bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
$size = size_format( $bytes );
$upload_dir = wp_upload_dir();
@@ -1430,13 +1483,26 @@ var ajaxurl = '',
//]]>
+
class="wp-admin wp-core-ui no-js iframe ">
@@ -1496,6 +1574,15 @@ function _post_states($post) {
if ( is_sticky($post->ID) )
$post_states['sticky'] = __('Sticky');
+ /**
+ * Filter the default post display states used in the Posts list table.
+ *
+ * @since 2.8.0
+ *
+ * @param array $post_states An array of post display states. Values include 'Password protected',
+ * 'Private', 'Draft', 'Pending', and 'Sticky'.
+ * @param int $post The post ID.
+ */
$post_states = apply_filters( 'display_post_states', $post_states, $post );
if ( ! empty($post_states) ) {
@@ -1527,6 +1614,14 @@ function _media_states( $post ) {
$media_states[] = __( 'Background Image' );
}
+ /**
+ * Filter the default media display states for items in the Media list table.
+ *
+ * @since 3.2.0
+ *
+ * @param array $media_states An array of media states. Default 'Header Image',
+ * 'Background Image'.
+ */
$media_states = apply_filters( 'display_media_states', $media_states );
if ( ! empty( $media_states ) ) {
@@ -1701,13 +1796,19 @@ function _wp_admin_html_begin() {
if ( $is_IE )
@header('X-UA-Compatible: IE=edge');
+/**
+ * Fires inside the HTML tag in the admin header.
+ *
+ * @since 2.2.0
+ */
?>
- >
+
+ >