ru-se.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

edit.php (19216B)


      1 <?php
      2 /**
      3  * Edit Posts Administration Screen.
      4  *
      5  * @package WordPress
      6  * @subpackage Administration
      7  */
      8 
      9 /** WordPress Administration Bootstrap */
     10 require_once __DIR__ . '/admin.php';
     11 
     12 if ( ! $typenow ) {
     13 	wp_die( __( 'Invalid post type.' ) );
     14 }
     15 
     16 if ( ! in_array( $typenow, get_post_types( array( 'show_ui' => true ) ), true ) ) {
     17 	wp_die( __( 'Sorry, you are not allowed to edit posts in this post type.' ) );
     18 }
     19 
     20 if ( 'attachment' === $typenow ) {
     21 	if ( wp_redirect( admin_url( 'upload.php' ) ) ) {
     22 		exit;
     23 	}
     24 }
     25 
     26 /**
     27  * @global string       $post_type
     28  * @global WP_Post_Type $post_type_object
     29  */
     30 global $post_type, $post_type_object;
     31 
     32 $post_type        = $typenow;
     33 $post_type_object = get_post_type_object( $post_type );
     34 
     35 if ( ! $post_type_object ) {
     36 	wp_die( __( 'Invalid post type.' ) );
     37 }
     38 
     39 if ( ! current_user_can( $post_type_object->cap->edit_posts ) ) {
     40 	wp_die(
     41 		'<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' .
     42 		'<p>' . __( 'Sorry, you are not allowed to edit posts in this post type.' ) . '</p>',
     43 		403
     44 	);
     45 }
     46 
     47 $wp_list_table = _get_list_table( 'WP_Posts_List_Table' );
     48 $pagenum       = $wp_list_table->get_pagenum();
     49 
     50 // Back-compat for viewing comments of an entry.
     51 foreach ( array( 'p', 'attachment_id', 'page_id' ) as $_redirect ) {
     52 	if ( ! empty( $_REQUEST[ $_redirect ] ) ) {
     53 		wp_redirect( admin_url( 'edit-comments.php?p=' . absint( $_REQUEST[ $_redirect ] ) ) );
     54 		exit;
     55 	}
     56 }
     57 unset( $_redirect );
     58 
     59 if ( 'post' !== $post_type ) {
     60 	$parent_file   = "edit.php?post_type=$post_type";
     61 	$submenu_file  = "edit.php?post_type=$post_type";
     62 	$post_new_file = "post-new.php?post_type=$post_type";
     63 } else {
     64 	$parent_file   = 'edit.php';
     65 	$submenu_file  = 'edit.php';
     66 	$post_new_file = 'post-new.php';
     67 }
     68 
     69 $doaction = $wp_list_table->current_action();
     70 
     71 if ( $doaction ) {
     72 	check_admin_referer( 'bulk-posts' );
     73 
     74 	$sendback = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'locked', 'ids' ), wp_get_referer() );
     75 	if ( ! $sendback ) {
     76 		$sendback = admin_url( $parent_file );
     77 	}
     78 	$sendback = add_query_arg( 'paged', $pagenum, $sendback );
     79 	if ( strpos( $sendback, 'post.php' ) !== false ) {
     80 		$sendback = admin_url( $post_new_file );
     81 	}
     82 
     83 	$post_ids = array();
     84 
     85 	if ( 'delete_all' === $doaction ) {
     86 		// Prepare for deletion of all posts with a specified post status (i.e. Empty Trash).
     87 		$post_status = preg_replace( '/[^a-z0-9_-]+/i', '', $_REQUEST['post_status'] );
     88 		// Validate the post status exists.
     89 		if ( get_post_status_object( $post_status ) ) {
     90 			$post_ids = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE post_type=%s AND post_status = %s", $post_type, $post_status ) );
     91 		}
     92 		$doaction = 'delete';
     93 	} elseif ( isset( $_REQUEST['media'] ) ) {
     94 		$post_ids = $_REQUEST['media'];
     95 	} elseif ( isset( $_REQUEST['ids'] ) ) {
     96 		$post_ids = explode( ',', $_REQUEST['ids'] );
     97 	} elseif ( ! empty( $_REQUEST['post'] ) ) {
     98 		$post_ids = array_map( 'intval', $_REQUEST['post'] );
     99 	}
    100 
    101 	if ( empty( $post_ids ) ) {
    102 		wp_redirect( $sendback );
    103 		exit;
    104 	}
    105 
    106 	switch ( $doaction ) {
    107 		case 'trash':
    108 			$trashed = 0;
    109 			$locked  = 0;
    110 
    111 			foreach ( (array) $post_ids as $post_id ) {
    112 				if ( ! current_user_can( 'delete_post', $post_id ) ) {
    113 					wp_die( __( 'Sorry, you are not allowed to move this item to the Trash.' ) );
    114 				}
    115 
    116 				if ( wp_check_post_lock( $post_id ) ) {
    117 					$locked++;
    118 					continue;
    119 				}
    120 
    121 				if ( ! wp_trash_post( $post_id ) ) {
    122 					wp_die( __( 'Error in moving the item to Trash.' ) );
    123 				}
    124 
    125 				$trashed++;
    126 			}
    127 
    128 			$sendback = add_query_arg(
    129 				array(
    130 					'trashed' => $trashed,
    131 					'ids'     => implode( ',', $post_ids ),
    132 					'locked'  => $locked,
    133 				),
    134 				$sendback
    135 			);
    136 			break;
    137 		case 'untrash':
    138 			$untrashed = 0;
    139 
    140 			if ( isset( $_GET['doaction'] ) && ( 'undo' === $_GET['doaction'] ) ) {
    141 				add_filter( 'wp_untrash_post_status', 'wp_untrash_post_set_previous_status', 10, 3 );
    142 			}
    143 
    144 			foreach ( (array) $post_ids as $post_id ) {
    145 				if ( ! current_user_can( 'delete_post', $post_id ) ) {
    146 					wp_die( __( 'Sorry, you are not allowed to restore this item from the Trash.' ) );
    147 				}
    148 
    149 				if ( ! wp_untrash_post( $post_id ) ) {
    150 					wp_die( __( 'Error in restoring the item from Trash.' ) );
    151 				}
    152 
    153 				$untrashed++;
    154 			}
    155 			$sendback = add_query_arg( 'untrashed', $untrashed, $sendback );
    156 
    157 			remove_filter( 'wp_untrash_post_status', 'wp_untrash_post_set_previous_status', 10, 3 );
    158 
    159 			break;
    160 		case 'delete':
    161 			$deleted = 0;
    162 			foreach ( (array) $post_ids as $post_id ) {
    163 				$post_del = get_post( $post_id );
    164 
    165 				if ( ! current_user_can( 'delete_post', $post_id ) ) {
    166 					wp_die( __( 'Sorry, you are not allowed to delete this item.' ) );
    167 				}
    168 
    169 				if ( 'attachment' === $post_del->post_type ) {
    170 					if ( ! wp_delete_attachment( $post_id ) ) {
    171 						wp_die( __( 'Error in deleting the attachment.' ) );
    172 					}
    173 				} else {
    174 					if ( ! wp_delete_post( $post_id ) ) {
    175 						wp_die( __( 'Error in deleting the item.' ) );
    176 					}
    177 				}
    178 				$deleted++;
    179 			}
    180 			$sendback = add_query_arg( 'deleted', $deleted, $sendback );
    181 			break;
    182 		case 'edit':
    183 			if ( isset( $_REQUEST['bulk_edit'] ) ) {
    184 				$done = bulk_edit_posts( $_REQUEST );
    185 
    186 				if ( is_array( $done ) ) {
    187 					$done['updated'] = count( $done['updated'] );
    188 					$done['skipped'] = count( $done['skipped'] );
    189 					$done['locked']  = count( $done['locked'] );
    190 					$sendback        = add_query_arg( $done, $sendback );
    191 				}
    192 			}
    193 			break;
    194 		default:
    195 			$screen = get_current_screen()->id;
    196 
    197 			/**
    198 			 * Fires when a custom bulk action should be handled.
    199 			 *
    200 			 * The redirect link should be modified with success or failure feedback
    201 			 * from the action to be used to display feedback to the user.
    202 			 *
    203 			 * The dynamic portion of the hook name, `$screen`, refers to the current screen ID.
    204 			 *
    205 			 * @since 4.7.0
    206 			 *
    207 			 * @param string $sendback The redirect URL.
    208 			 * @param string $doaction The action being taken.
    209 			 * @param array  $items    The items to take the action on. Accepts an array of IDs of posts,
    210 			 *                         comments, terms, links, plugins, attachments, or users.
    211 			 */
    212 			$sendback = apply_filters( "handle_bulk_actions-{$screen}", $sendback, $doaction, $post_ids ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
    213 			break;
    214 	}
    215 
    216 	$sendback = remove_query_arg( array( 'action', 'action2', 'tags_input', 'post_author', 'comment_status', 'ping_status', '_status', 'post', 'bulk_edit', 'post_view' ), $sendback );
    217 
    218 	wp_redirect( $sendback );
    219 	exit;
    220 } elseif ( ! empty( $_REQUEST['_wp_http_referer'] ) ) {
    221 	wp_redirect( remove_query_arg( array( '_wp_http_referer', '_wpnonce' ), wp_unslash( $_SERVER['REQUEST_URI'] ) ) );
    222 	exit;
    223 }
    224 
    225 $wp_list_table->prepare_items();
    226 
    227 wp_enqueue_script( 'inline-edit-post' );
    228 wp_enqueue_script( 'heartbeat' );
    229 
    230 if ( 'wp_block' === $post_type ) {
    231 	wp_enqueue_script( 'wp-list-reusable-blocks' );
    232 	wp_enqueue_style( 'wp-list-reusable-blocks' );
    233 }
    234 
    235 $title = $post_type_object->labels->name;
    236 
    237 if ( 'post' === $post_type ) {
    238 	get_current_screen()->add_help_tab(
    239 		array(
    240 			'id'      => 'overview',
    241 			'title'   => __( 'Overview' ),
    242 			'content' =>
    243 					'<p>' . __( 'This screen provides access to all of your posts. You can customize the display of this screen to suit your workflow.' ) . '</p>',
    244 		)
    245 	);
    246 	get_current_screen()->add_help_tab(
    247 		array(
    248 			'id'      => 'screen-content',
    249 			'title'   => __( 'Screen Content' ),
    250 			'content' =>
    251 					'<p>' . __( 'You can customize the display of this screen&#8217;s contents in a number of ways:' ) . '</p>' .
    252 					'<ul>' .
    253 						'<li>' . __( 'You can hide/display columns based on your needs and decide how many posts to list per screen using the Screen Options tab.' ) . '</li>' .
    254 						'<li>' . __( 'You can filter the list of posts by post status using the text links above the posts list to only show posts with that status. The default view is to show all posts.' ) . '</li>' .
    255 						'<li>' . __( 'You can view posts in a simple title list or with an excerpt using the Screen Options tab.' ) . '</li>' .
    256 						'<li>' . __( 'You can refine the list to show only posts in a specific category or from a specific month by using the dropdown menus above the posts list. Click the Filter button after making your selection. You also can refine the list by clicking on the post author, category or tag in the posts list.' ) . '</li>' .
    257 					'</ul>',
    258 		)
    259 	);
    260 	get_current_screen()->add_help_tab(
    261 		array(
    262 			'id'      => 'action-links',
    263 			'title'   => __( 'Available Actions' ),
    264 			'content' =>
    265 					'<p>' . __( 'Hovering over a row in the posts list will display action links that allow you to manage your post. You can perform the following actions:' ) . '</p>' .
    266 					'<ul>' .
    267 						'<li>' . __( '<strong>Edit</strong> takes you to the editing screen for that post. You can also reach that screen by clicking on the post title.' ) . '</li>' .
    268 						'<li>' . __( '<strong>Quick Edit</strong> provides inline access to the metadata of your post, allowing you to update post details without leaving this screen.' ) . '</li>' .
    269 						'<li>' . __( '<strong>Trash</strong> removes your post from this list and places it in the Trash, from which you can permanently delete it.' ) . '</li>' .
    270 						'<li>' . __( '<strong>Preview</strong> will show you what your draft post will look like if you publish it. View will take you to your live site to view the post. Which link is available depends on your post&#8217;s status.' ) . '</li>' .
    271 					'</ul>',
    272 		)
    273 	);
    274 	get_current_screen()->add_help_tab(
    275 		array(
    276 			'id'      => 'bulk-actions',
    277 			'title'   => __( 'Bulk actions' ),
    278 			'content' =>
    279 					'<p>' . __( 'You can also edit or move multiple posts to the Trash at once. Select the posts you want to act on using the checkboxes, then select the action you want to take from the Bulk actions menu and click Apply.' ) . '</p>' .
    280 							'<p>' . __( 'When using Bulk Edit, you can change the metadata (categories, author, etc.) for all selected posts at once. To remove a post from the grouping, just click the x next to its name in the Bulk Edit area that appears.' ) . '</p>',
    281 		)
    282 	);
    283 
    284 	get_current_screen()->set_help_sidebar(
    285 		'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    286 		'<p>' . __( '<a href="https://wordpress.org/support/article/posts-screen/">Documentation on Managing Posts</a>' ) . '</p>' .
    287 		'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    288 	);
    289 
    290 } elseif ( 'page' === $post_type ) {
    291 	get_current_screen()->add_help_tab(
    292 		array(
    293 			'id'      => 'overview',
    294 			'title'   => __( 'Overview' ),
    295 			'content' =>
    296 					'<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the &#8220;Parent&#8221; of the other, creating a group of pages.' ) . '</p>',
    297 		)
    298 	);
    299 	get_current_screen()->add_help_tab(
    300 		array(
    301 			'id'      => 'managing-pages',
    302 			'title'   => __( 'Managing Pages' ),
    303 			'content' =>
    304 					'<p>' . __( 'Managing pages is very similar to managing posts, and the screens can be customized in the same way.' ) . '</p>' .
    305 					'<p>' . __( 'You can also perform the same types of actions, including narrowing the list by using the filters, acting on a page using the action links that appear when you hover over a row, or using the Bulk actions menu to edit the metadata for multiple pages at once.' ) . '</p>',
    306 		)
    307 	);
    308 
    309 	get_current_screen()->set_help_sidebar(
    310 		'<p><strong>' . __( 'For more information:' ) . '</strong></p>' .
    311 		'<p>' . __( '<a href="https://wordpress.org/support/article/pages-screen/">Documentation on Managing Pages</a>' ) . '</p>' .
    312 		'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>'
    313 	);
    314 
    315 }
    316 
    317 get_current_screen()->set_screen_reader_content(
    318 	array(
    319 		'heading_views'      => $post_type_object->labels->filter_items_list,
    320 		'heading_pagination' => $post_type_object->labels->items_list_navigation,
    321 		'heading_list'       => $post_type_object->labels->items_list,
    322 	)
    323 );
    324 
    325 add_screen_option(
    326 	'per_page',
    327 	array(
    328 		'default' => 20,
    329 		'option'  => 'edit_' . $post_type . '_per_page',
    330 	)
    331 );
    332 
    333 $bulk_counts = array(
    334 	'updated'   => isset( $_REQUEST['updated'] ) ? absint( $_REQUEST['updated'] ) : 0,
    335 	'locked'    => isset( $_REQUEST['locked'] ) ? absint( $_REQUEST['locked'] ) : 0,
    336 	'deleted'   => isset( $_REQUEST['deleted'] ) ? absint( $_REQUEST['deleted'] ) : 0,
    337 	'trashed'   => isset( $_REQUEST['trashed'] ) ? absint( $_REQUEST['trashed'] ) : 0,
    338 	'untrashed' => isset( $_REQUEST['untrashed'] ) ? absint( $_REQUEST['untrashed'] ) : 0,
    339 );
    340 
    341 $bulk_messages             = array();
    342 $bulk_messages['post']     = array(
    343 	/* translators: %s: Number of posts. */
    344 	'updated'   => _n( '%s post updated.', '%s posts updated.', $bulk_counts['updated'] ),
    345 	'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 post not updated, somebody is editing it.' ) :
    346 					/* translators: %s: Number of posts. */
    347 					_n( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $bulk_counts['locked'] ),
    348 	/* translators: %s: Number of posts. */
    349 	'deleted'   => _n( '%s post permanently deleted.', '%s posts permanently deleted.', $bulk_counts['deleted'] ),
    350 	/* translators: %s: Number of posts. */
    351 	'trashed'   => _n( '%s post moved to the Trash.', '%s posts moved to the Trash.', $bulk_counts['trashed'] ),
    352 	/* translators: %s: Number of posts. */
    353 	'untrashed' => _n( '%s post restored from the Trash.', '%s posts restored from the Trash.', $bulk_counts['untrashed'] ),
    354 );
    355 $bulk_messages['page']     = array(
    356 	/* translators: %s: Number of pages. */
    357 	'updated'   => _n( '%s page updated.', '%s pages updated.', $bulk_counts['updated'] ),
    358 	'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 page not updated, somebody is editing it.' ) :
    359 					/* translators: %s: Number of pages. */
    360 					_n( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $bulk_counts['locked'] ),
    361 	/* translators: %s: Number of pages. */
    362 	'deleted'   => _n( '%s page permanently deleted.', '%s pages permanently deleted.', $bulk_counts['deleted'] ),
    363 	/* translators: %s: Number of pages. */
    364 	'trashed'   => _n( '%s page moved to the Trash.', '%s pages moved to the Trash.', $bulk_counts['trashed'] ),
    365 	/* translators: %s: Number of pages. */
    366 	'untrashed' => _n( '%s page restored from the Trash.', '%s pages restored from the Trash.', $bulk_counts['untrashed'] ),
    367 );
    368 $bulk_messages['wp_block'] = array(
    369 	/* translators: %s: Number of blocks. */
    370 	'updated'   => _n( '%s block updated.', '%s blocks updated.', $bulk_counts['updated'] ),
    371 	'locked'    => ( 1 === $bulk_counts['locked'] ) ? __( '1 block not updated, somebody is editing it.' ) :
    372 					/* translators: %s: Number of blocks. */
    373 					_n( '%s block not updated, somebody is editing it.', '%s blocks not updated, somebody is editing them.', $bulk_counts['locked'] ),
    374 	/* translators: %s: Number of blocks. */
    375 	'deleted'   => _n( '%s block permanently deleted.', '%s blocks permanently deleted.', $bulk_counts['deleted'] ),
    376 	/* translators: %s: Number of blocks. */
    377 	'trashed'   => _n( '%s block moved to the Trash.', '%s blocks moved to the Trash.', $bulk_counts['trashed'] ),
    378 	/* translators: %s: Number of blocks. */
    379 	'untrashed' => _n( '%s block restored from the Trash.', '%s blocks restored from the Trash.', $bulk_counts['untrashed'] ),
    380 );
    381 
    382 /**
    383  * Filters the bulk action updated messages.
    384  *
    385  * By default, custom post types use the messages for the 'post' post type.
    386  *
    387  * @since 3.7.0
    388  *
    389  * @param array[] $bulk_messages Arrays of messages, each keyed by the corresponding post type. Messages are
    390  *                               keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
    391  * @param int[]   $bulk_counts   Array of item counts for each message, used to build internationalized strings.
    392  */
    393 $bulk_messages = apply_filters( 'bulk_post_updated_messages', $bulk_messages, $bulk_counts );
    394 $bulk_counts   = array_filter( $bulk_counts );
    395 
    396 require_once ABSPATH . 'wp-admin/admin-header.php';
    397 ?>
    398 <div class="wrap">
    399 <h1 class="wp-heading-inline">
    400 <?php
    401 echo esc_html( $post_type_object->labels->name );
    402 ?>
    403 </h1>
    404 
    405 <?php
    406 if ( current_user_can( $post_type_object->cap->create_posts ) ) {
    407 	echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    408 }
    409 
    410 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    411 	echo '<span class="subtitle">';
    412 	printf(
    413 		/* translators: %s: Search query. */
    414 		__( 'Search results for: %s' ),
    415 		'<strong>' . get_search_query() . '</strong>'
    416 	);
    417 	echo '</span>';
    418 }
    419 ?>
    420 
    421 <hr class="wp-header-end">
    422 
    423 <?php
    424 // If we have a bulk message to issue:
    425 $messages = array();
    426 foreach ( $bulk_counts as $message => $count ) {
    427 	if ( isset( $bulk_messages[ $post_type ][ $message ] ) ) {
    428 		$messages[] = sprintf( $bulk_messages[ $post_type ][ $message ], number_format_i18n( $count ) );
    429 	} elseif ( isset( $bulk_messages['post'][ $message ] ) ) {
    430 		$messages[] = sprintf( $bulk_messages['post'][ $message ], number_format_i18n( $count ) );
    431 	}
    432 
    433 	if ( 'trashed' === $message && isset( $_REQUEST['ids'] ) ) {
    434 		$ids        = preg_replace( '/[^0-9,]/', '', $_REQUEST['ids'] );
    435 		$messages[] = '<a href="' . esc_url( wp_nonce_url( "edit.php?post_type=$post_type&doaction=undo&action=untrash&ids=$ids", 'bulk-posts' ) ) . '">' . __( 'Undo' ) . '</a>';
    436 	}
    437 
    438 	if ( 'untrashed' === $message && isset( $_REQUEST['ids'] ) ) {
    439 		$ids = explode( ',', $_REQUEST['ids'] );
    440 
    441 		if ( 1 === count( $ids ) && current_user_can( 'edit_post', $ids[0] ) ) {
    442 			$messages[] = sprintf(
    443 				'<a href="%1$s">%2$s</a>',
    444 				esc_url( get_edit_post_link( $ids[0] ) ),
    445 				esc_html( get_post_type_object( get_post_type( $ids[0] ) )->labels->edit_item )
    446 			);
    447 		}
    448 	}
    449 }
    450 
    451 if ( $messages ) {
    452 	echo '<div id="message" class="updated notice is-dismissible"><p>' . implode( ' ', $messages ) . '</p></div>';
    453 }
    454 unset( $messages );
    455 
    456 $_SERVER['REQUEST_URI'] = remove_query_arg( array( 'locked', 'skipped', 'updated', 'deleted', 'trashed', 'untrashed' ), $_SERVER['REQUEST_URI'] );
    457 ?>
    458 
    459 <?php $wp_list_table->views(); ?>
    460 
    461 <form id="posts-filter" method="get">
    462 
    463 <?php $wp_list_table->search_box( $post_type_object->labels->search_items, 'post' ); ?>
    464 
    465 <input type="hidden" name="post_status" class="post_status_page" value="<?php echo ! empty( $_REQUEST['post_status'] ) ? esc_attr( $_REQUEST['post_status'] ) : 'all'; ?>" />
    466 <input type="hidden" name="post_type" class="post_type_page" value="<?php echo $post_type; ?>" />
    467 
    468 <?php if ( ! empty( $_REQUEST['author'] ) ) { ?>
    469 <input type="hidden" name="author" value="<?php echo esc_attr( $_REQUEST['author'] ); ?>" />
    470 <?php } ?>
    471 
    472 <?php if ( ! empty( $_REQUEST['show_sticky'] ) ) { ?>
    473 <input type="hidden" name="show_sticky" value="1" />
    474 <?php } ?>
    475 
    476 <?php $wp_list_table->display(); ?>
    477 
    478 </form>
    479 
    480 <?php
    481 if ( $wp_list_table->has_items() ) {
    482 	$wp_list_table->inline_edit();
    483 }
    484 ?>
    485 
    486 <div id="ajax-response"></div>
    487 <div class="clear"></div>
    488 </div>
    489 
    490 <?php
    491 require_once ABSPATH . 'wp-admin/admin-footer.php';