[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-admin/includes/ -> class-wp-posts-list-table.php (source)

   1  <?php
   2  /**
   3   * List Table API: WP_Posts_List_Table class
   4   *
   5   * @package WordPress
   6   * @subpackage Administration
   7   * @since 3.1.0
   8   */
   9  
  10  /**
  11   * Core class used to implement displaying posts in a list table.
  12   *
  13   * @since 3.1.0
  14   * @access private
  15   *
  16   * @see WP_List_Table
  17   */
  18  class WP_Posts_List_Table extends WP_List_Table {
  19  
  20      /**
  21       * Whether the items should be displayed hierarchically or linearly.
  22       *
  23       * @since 3.1.0
  24       * @var bool
  25       */
  26      protected $hierarchical_display;
  27  
  28      /**
  29       * Holds the number of pending comments for each post.
  30       *
  31       * @since 3.1.0
  32       * @var array
  33       */
  34      protected $comment_pending_count;
  35  
  36      /**
  37       * Holds the number of posts for this user.
  38       *
  39       * @since 3.1.0
  40       * @var int
  41       */
  42      private $user_posts_count;
  43  
  44      /**
  45       * Holds the number of posts which are sticky.
  46       *
  47       * @since 3.1.0
  48       * @var int
  49       */
  50      private $sticky_posts_count = 0;
  51  
  52      private $is_trash;
  53  
  54      /**
  55       * Current level for output.
  56       *
  57       * @since 4.3.0
  58       * @var int
  59       */
  60      protected $current_level = 0;
  61  
  62      /**
  63       * Constructor.
  64       *
  65       * @since 3.1.0
  66       *
  67       * @see WP_List_Table::__construct() for more information on default arguments.
  68       *
  69       * @global WP_Post_Type $post_type_object
  70       * @global wpdb         $wpdb             WordPress database abstraction object.
  71       *
  72       * @param array $args An associative array of arguments.
  73       */
  74  	public function __construct( $args = array() ) {
  75          global $post_type_object, $wpdb;
  76  
  77          parent::__construct(
  78              array(
  79                  'plural' => 'posts',
  80                  'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
  81              )
  82          );
  83  
  84          $post_type        = $this->screen->post_type;
  85          $post_type_object = get_post_type_object( $post_type );
  86  
  87          $exclude_states         = get_post_stati(
  88              array(
  89                  'show_in_admin_all_list' => false,
  90              )
  91          );
  92          $this->user_posts_count = (int) $wpdb->get_var(
  93              $wpdb->prepare(
  94                  "
  95              SELECT COUNT( 1 )
  96              FROM $wpdb->posts
  97              WHERE post_type = %s
  98              AND post_status NOT IN ( '" . implode( "','", $exclude_states ) . "' )
  99              AND post_author = %d
 100          ",
 101                  $post_type,
 102                  get_current_user_id()
 103              )
 104          );
 105  
 106          if ( $this->user_posts_count && ! current_user_can( $post_type_object->cap->edit_others_posts ) && empty( $_REQUEST['post_status'] ) && empty( $_REQUEST['all_posts'] ) && empty( $_REQUEST['author'] ) && empty( $_REQUEST['show_sticky'] ) ) {
 107              $_GET['author'] = get_current_user_id();
 108          }
 109  
 110          $sticky_posts = get_option( 'sticky_posts' );
 111          if ( 'post' === $post_type && $sticky_posts ) {
 112              $sticky_posts             = implode( ', ', array_map( 'absint', (array) $sticky_posts ) );
 113              $this->sticky_posts_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT( 1 ) FROM $wpdb->posts WHERE post_type = %s AND post_status NOT IN ('trash', 'auto-draft') AND ID IN ($sticky_posts)", $post_type ) );
 114          }
 115      }
 116  
 117      /**
 118       * Sets whether the table layout should be hierarchical or not.
 119       *
 120       * @since 4.2.0
 121       *
 122       * @param bool $display Whether the table layout should be hierarchical.
 123       */
 124  	public function set_hierarchical_display( $display ) {
 125          $this->hierarchical_display = $display;
 126      }
 127  
 128      /**
 129       * @return bool
 130       */
 131  	public function ajax_user_can() {
 132          return current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_posts );
 133      }
 134  
 135      /**
 136       * @global string   $mode             List table view mode.
 137       * @global array    $avail_post_stati
 138       * @global WP_Query $wp_query         WordPress Query object.
 139       * @global int      $per_page
 140       */
 141  	public function prepare_items() {
 142          global $mode, $avail_post_stati, $wp_query, $per_page;
 143  
 144          if ( ! empty( $_REQUEST['mode'] ) ) {
 145              $mode = 'excerpt' === $_REQUEST['mode'] ? 'excerpt' : 'list';
 146              set_user_setting( 'posts_list_mode', $mode );
 147          } else {
 148              $mode = get_user_setting( 'posts_list_mode', 'list' );
 149          }
 150  
 151          // Is going to call wp().
 152          $avail_post_stati = wp_edit_posts_query();
 153  
 154          $this->set_hierarchical_display( is_post_type_hierarchical( $this->screen->post_type ) && 'menu_order title' === $wp_query->query['orderby'] );
 155  
 156          $post_type = $this->screen->post_type;
 157          $per_page  = $this->get_items_per_page( 'edit_' . $post_type . '_per_page' );
 158  
 159          /** This filter is documented in wp-admin/includes/post.php */
 160          $per_page = apply_filters( 'edit_posts_per_page', $per_page, $post_type );
 161  
 162          if ( $this->hierarchical_display ) {
 163              $total_items = $wp_query->post_count;
 164          } elseif ( $wp_query->found_posts || $this->get_pagenum() === 1 ) {
 165              $total_items = $wp_query->found_posts;
 166          } else {
 167              $post_counts = (array) wp_count_posts( $post_type, 'readable' );
 168  
 169              if ( isset( $_REQUEST['post_status'] ) && in_array( $_REQUEST['post_status'], $avail_post_stati, true ) ) {
 170                  $total_items = $post_counts[ $_REQUEST['post_status'] ];
 171              } elseif ( isset( $_REQUEST['show_sticky'] ) && $_REQUEST['show_sticky'] ) {
 172                  $total_items = $this->sticky_posts_count;
 173              } elseif ( isset( $_GET['author'] ) && get_current_user_id() == $_GET['author'] ) {
 174                  $total_items = $this->user_posts_count;
 175              } else {
 176                  $total_items = array_sum( $post_counts );
 177  
 178                  // Subtract post types that are not included in the admin all list.
 179                  foreach ( get_post_stati( array( 'show_in_admin_all_list' => false ) ) as $state ) {
 180                      $total_items -= $post_counts[ $state ];
 181                  }
 182              }
 183          }
 184  
 185          $this->is_trash = isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'];
 186  
 187          $this->set_pagination_args(
 188              array(
 189                  'total_items' => $total_items,
 190                  'per_page'    => $per_page,
 191              )
 192          );
 193      }
 194  
 195      /**
 196       * @return bool
 197       */
 198  	public function has_items() {
 199          return have_posts();
 200      }
 201  
 202      /**
 203       */
 204  	public function no_items() {
 205          if ( isset( $_REQUEST['post_status'] ) && 'trash' === $_REQUEST['post_status'] ) {
 206              echo get_post_type_object( $this->screen->post_type )->labels->not_found_in_trash;
 207          } else {
 208              echo get_post_type_object( $this->screen->post_type )->labels->not_found;
 209          }
 210      }
 211  
 212      /**
 213       * Determine if the current view is the "All" view.
 214       *
 215       * @since 4.2.0
 216       *
 217       * @return bool Whether the current view is the "All" view.
 218       */
 219  	protected function is_base_request() {
 220          $vars = $_GET;
 221          unset( $vars['paged'] );
 222  
 223          if ( empty( $vars ) ) {
 224              return true;
 225          } elseif ( 1 === count( $vars ) && ! empty( $vars['post_type'] ) ) {
 226              return $this->screen->post_type === $vars['post_type'];
 227          }
 228  
 229          return 1 === count( $vars ) && ! empty( $vars['mode'] );
 230      }
 231  
 232      /**
 233       * Helper to create links to edit.php with params.
 234       *
 235       * @since 4.4.0
 236       *
 237       * @param string[] $args  Associative array of URL parameters for the link.
 238       * @param string   $label Link text.
 239       * @param string   $class Optional. Class attribute. Default empty string.
 240       * @return string The formatted link string.
 241       */
 242  	protected function get_edit_link( $args, $label, $class = '' ) {
 243          $url = add_query_arg( $args, 'edit.php' );
 244  
 245          $class_html   = '';
 246          $aria_current = '';
 247          if ( ! empty( $class ) ) {
 248              $class_html = sprintf(
 249                  ' class="%s"',
 250                  esc_attr( $class )
 251              );
 252  
 253              if ( 'current' === $class ) {
 254                  $aria_current = ' aria-current="page"';
 255              }
 256          }
 257  
 258          return sprintf(
 259              '<a href="%s"%s%s>%s</a>',
 260              esc_url( $url ),
 261              $class_html,
 262              $aria_current,
 263              $label
 264          );
 265      }
 266  
 267      /**
 268       * @global array $locked_post_status This seems to be deprecated.
 269       * @global array $avail_post_stati
 270       * @return array
 271       */
 272  	protected function get_views() {
 273          global $locked_post_status, $avail_post_stati;
 274  
 275          $post_type = $this->screen->post_type;
 276  
 277          if ( ! empty( $locked_post_status ) ) {
 278              return array();
 279          }
 280  
 281          $status_links = array();
 282          $num_posts    = wp_count_posts( $post_type, 'readable' );
 283          $total_posts  = array_sum( (array) $num_posts );
 284          $class        = '';
 285  
 286          $current_user_id = get_current_user_id();
 287          $all_args        = array( 'post_type' => $post_type );
 288          $mine            = '';
 289  
 290          // Subtract post types that are not included in the admin all list.
 291          foreach ( get_post_stati( array( 'show_in_admin_all_list' => false ) ) as $state ) {
 292              $total_posts -= $num_posts->$state;
 293          }
 294  
 295          if ( $this->user_posts_count && $this->user_posts_count !== $total_posts ) {
 296              if ( isset( $_GET['author'] ) && ( $_GET['author'] == $current_user_id ) ) {
 297                  $class = 'current';
 298              }
 299  
 300              $mine_args = array(
 301                  'post_type' => $post_type,
 302                  'author'    => $current_user_id,
 303              );
 304  
 305              $mine_inner_html = sprintf(
 306                  /* translators: %s: Number of posts. */
 307                  _nx(
 308                      'Mine <span class="count">(%s)</span>',
 309                      'Mine <span class="count">(%s)</span>',
 310                      $this->user_posts_count,
 311                      'posts'
 312                  ),
 313                  number_format_i18n( $this->user_posts_count )
 314              );
 315  
 316              $mine = $this->get_edit_link( $mine_args, $mine_inner_html, $class );
 317  
 318              $all_args['all_posts'] = 1;
 319              $class                 = '';
 320          }
 321  
 322          if ( empty( $class ) && ( $this->is_base_request() || isset( $_REQUEST['all_posts'] ) ) ) {
 323              $class = 'current';
 324          }
 325  
 326          $all_inner_html = sprintf(
 327              /* translators: %s: Number of posts. */
 328              _nx(
 329                  'All <span class="count">(%s)</span>',
 330                  'All <span class="count">(%s)</span>',
 331                  $total_posts,
 332                  'posts'
 333              ),
 334              number_format_i18n( $total_posts )
 335          );
 336  
 337          $status_links['all'] = $this->get_edit_link( $all_args, $all_inner_html, $class );
 338          if ( $mine ) {
 339              $status_links['mine'] = $mine;
 340          }
 341  
 342          foreach ( get_post_stati( array( 'show_in_admin_status_list' => true ), 'objects' ) as $status ) {
 343              $class = '';
 344  
 345              $status_name = $status->name;
 346  
 347              if ( ! in_array( $status_name, $avail_post_stati, true ) || empty( $num_posts->$status_name ) ) {
 348                  continue;
 349              }
 350  
 351              if ( isset( $_REQUEST['post_status'] ) && $status_name === $_REQUEST['post_status'] ) {
 352                  $class = 'current';
 353              }
 354  
 355              $status_args = array(
 356                  'post_status' => $status_name,
 357                  'post_type'   => $post_type,
 358              );
 359  
 360              $status_label = sprintf(
 361                  translate_nooped_plural( $status->label_count, $num_posts->$status_name ),
 362                  number_format_i18n( $num_posts->$status_name )
 363              );
 364  
 365              $status_links[ $status_name ] = $this->get_edit_link( $status_args, $status_label, $class );
 366          }
 367  
 368          if ( ! empty( $this->sticky_posts_count ) ) {
 369              $class = ! empty( $_REQUEST['show_sticky'] ) ? 'current' : '';
 370  
 371              $sticky_args = array(
 372                  'post_type'   => $post_type,
 373                  'show_sticky' => 1,
 374              );
 375  
 376              $sticky_inner_html = sprintf(
 377                  /* translators: %s: Number of posts. */
 378                  _nx(
 379                      'Sticky <span class="count">(%s)</span>',
 380                      'Sticky <span class="count">(%s)</span>',
 381                      $this->sticky_posts_count,
 382                      'posts'
 383                  ),
 384                  number_format_i18n( $this->sticky_posts_count )
 385              );
 386  
 387              $sticky_link = array(
 388                  'sticky' => $this->get_edit_link( $sticky_args, $sticky_inner_html, $class ),
 389              );
 390  
 391              // Sticky comes after Publish, or if not listed, after All.
 392              $split        = 1 + array_search( ( isset( $status_links['publish'] ) ? 'publish' : 'all' ), array_keys( $status_links ), true );
 393              $status_links = array_merge( array_slice( $status_links, 0, $split ), $sticky_link, array_slice( $status_links, $split ) );
 394          }
 395  
 396          return $status_links;
 397      }
 398  
 399      /**
 400       * @return array
 401       */
 402  	protected function get_bulk_actions() {
 403          $actions       = array();
 404          $post_type_obj = get_post_type_object( $this->screen->post_type );
 405  
 406          if ( current_user_can( $post_type_obj->cap->edit_posts ) ) {
 407              if ( $this->is_trash ) {
 408                  $actions['untrash'] = __( 'Restore' );
 409              } else {
 410                  $actions['edit'] = __( 'Edit' );
 411              }
 412          }
 413  
 414          if ( current_user_can( $post_type_obj->cap->delete_posts ) ) {
 415              if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) {
 416                  $actions['delete'] = __( 'Delete permanently' );
 417              } else {
 418                  $actions['trash'] = __( 'Move to Trash' );
 419              }
 420          }
 421  
 422          return $actions;
 423      }
 424  
 425      /**
 426       * Displays a categories drop-down for filtering on the Posts list table.
 427       *
 428       * @since 4.6.0
 429       *
 430       * @global int $cat Currently selected category.
 431       *
 432       * @param string $post_type Post type slug.
 433       */
 434  	protected function categories_dropdown( $post_type ) {
 435          global $cat;
 436  
 437          /**
 438           * Filters whether to remove the 'Categories' drop-down from the post list table.
 439           *
 440           * @since 4.6.0
 441           *
 442           * @param bool   $disable   Whether to disable the categories drop-down. Default false.
 443           * @param string $post_type Post type slug.
 444           */
 445          if ( false !== apply_filters( 'disable_categories_dropdown', false, $post_type ) ) {
 446              return;
 447          }
 448  
 449          if ( is_object_in_taxonomy( $post_type, 'category' ) ) {
 450              $dropdown_options = array(
 451                  'show_option_all' => get_taxonomy( 'category' )->labels->all_items,
 452                  'hide_empty'      => 0,
 453                  'hierarchical'    => 1,
 454                  'show_count'      => 0,
 455                  'orderby'         => 'name',
 456                  'selected'        => $cat,
 457              );
 458  
 459              echo '<label class="screen-reader-text" for="cat">' . __( 'Filter by category' ) . '</label>';
 460              wp_dropdown_categories( $dropdown_options );
 461          }
 462      }
 463  
 464      /**
 465       * Displays a formats drop-down for filtering items.
 466       *
 467       * @since 5.2.0
 468       * @access protected
 469       *
 470       * @param string $post_type Post type slug.
 471       */
 472  	protected function formats_dropdown( $post_type ) {
 473          /**
 474           * Filters whether to remove the 'Formats' drop-down from the post list table.
 475           *
 476           * @since 5.2.0
 477           * @since 5.5.0 The `$post_type` parameter was added.
 478           *
 479           * @param bool   $disable   Whether to disable the drop-down. Default false.
 480           * @param string $post_type Post type slug.
 481           */
 482          if ( apply_filters( 'disable_formats_dropdown', false, $post_type ) ) {
 483              return;
 484          }
 485  
 486          // Return if the post type doesn't have post formats or if we're in the Trash.
 487          if ( ! is_object_in_taxonomy( $post_type, 'post_format' ) || $this->is_trash ) {
 488              return;
 489          }
 490  
 491          // Make sure the dropdown shows only formats with a post count greater than 0.
 492          $used_post_formats = get_terms(
 493              array(
 494                  'taxonomy'   => 'post_format',
 495                  'hide_empty' => true,
 496              )
 497          );
 498  
 499          // Return if there are no posts using formats.
 500          if ( ! $used_post_formats ) {
 501              return;
 502          }
 503  
 504          $displayed_post_format = isset( $_GET['post_format'] ) ? $_GET['post_format'] : '';
 505          ?>
 506          <label for="filter-by-format" class="screen-reader-text"><?php _e( 'Filter by post format' ); ?></label>
 507          <select name="post_format" id="filter-by-format">
 508              <option<?php selected( $displayed_post_format, '' ); ?> value=""><?php _e( 'All formats' ); ?></option>
 509              <?php
 510              foreach ( $used_post_formats as $used_post_format ) {
 511                  // Post format slug.
 512                  $slug = str_replace( 'post-format-', '', $used_post_format->slug );
 513                  // Pretty, translated version of the post format slug.
 514                  $pretty_name = get_post_format_string( $slug );
 515                  // Skip the standard post format.
 516                  if ( 'standard' === $slug ) {
 517                      continue;
 518                  }
 519                  ?>
 520                  <option<?php selected( $displayed_post_format, $slug ); ?> value="<?php echo esc_attr( $slug ); ?>"><?php echo esc_html( $pretty_name ); ?></option>
 521                  <?php
 522              }
 523              ?>
 524          </select>
 525          <?php
 526      }
 527  
 528      /**
 529       * @param string $which
 530       */
 531  	protected function extra_tablenav( $which ) {
 532          ?>
 533          <div class="alignleft actions">
 534          <?php
 535          if ( 'top' === $which ) {
 536              ob_start();
 537  
 538              $this->months_dropdown( $this->screen->post_type );
 539              $this->categories_dropdown( $this->screen->post_type );
 540              $this->formats_dropdown( $this->screen->post_type );
 541  
 542              /**
 543               * Fires before the Filter button on the Posts and Pages list tables.
 544               *
 545               * The Filter button allows sorting by date and/or category on the
 546               * Posts list table, and sorting by date on the Pages list table.
 547               *
 548               * @since 2.1.0
 549               * @since 4.4.0 The `$post_type` parameter was added.
 550               * @since 4.6.0 The `$which` parameter was added.
 551               *
 552               * @param string $post_type The post type slug.
 553               * @param string $which     The location of the extra table nav markup:
 554               *                          'top' or 'bottom' for WP_Posts_List_Table,
 555               *                          'bar' for WP_Media_List_Table.
 556               */
 557              do_action( 'restrict_manage_posts', $this->screen->post_type, $which );
 558  
 559              $output = ob_get_clean();
 560  
 561              if ( ! empty( $output ) ) {
 562                  echo $output;
 563                  submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );
 564              }
 565          }
 566  
 567          if ( $this->is_trash && current_user_can( get_post_type_object( $this->screen->post_type )->cap->edit_others_posts ) && $this->has_items() ) {
 568              submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
 569          }
 570          ?>
 571          </div>
 572          <?php
 573          /**
 574           * Fires immediately following the closing "actions" div in the tablenav for the posts
 575           * list table.
 576           *
 577           * @since 4.4.0
 578           *
 579           * @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
 580           */
 581          do_action( 'manage_posts_extra_tablenav', $which );
 582      }
 583  
 584      /**
 585       * @return string
 586       */
 587  	public function current_action() {
 588          if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
 589              return 'delete_all';
 590          }
 591  
 592          return parent::current_action();
 593      }
 594  
 595      /**
 596       * @global string $mode List table view mode.
 597       *
 598       * @return array
 599       */
 600  	protected function get_table_classes() {
 601          global $mode;
 602  
 603          $mode_class = esc_attr( 'table-view-' . $mode );
 604  
 605          return array( 'widefat', 'fixed', 'striped', $mode_class, is_post_type_hierarchical( $this->screen->post_type ) ? 'pages' : 'posts' );
 606      }
 607  
 608      /**
 609       * @return array
 610       */
 611  	public function get_columns() {
 612          $post_type = $this->screen->post_type;
 613  
 614          $posts_columns = array();
 615  
 616          $posts_columns['cb'] = '<input type="checkbox" />';
 617  
 618          /* translators: Posts screen column name. */
 619          $posts_columns['title'] = _x( 'Title', 'column name' );
 620  
 621          if ( post_type_supports( $post_type, 'author' ) ) {
 622              $posts_columns['author'] = __( 'Author' );
 623          }
 624  
 625          $taxonomies = get_object_taxonomies( $post_type, 'objects' );
 626          $taxonomies = wp_filter_object_list( $taxonomies, array( 'show_admin_column' => true ), 'and', 'name' );
 627  
 628          /**
 629           * Filters the taxonomy columns in the Posts list table.
 630           *
 631           * The dynamic portion of the hook name, `$post_type`, refers to the post
 632           * type slug.
 633           *
 634           * @since 3.5.0
 635           *
 636           * @param string[] $taxonomies Array of taxonomy names to show columns for.
 637           * @param string   $post_type  The post type.
 638           */
 639          $taxonomies = apply_filters( "manage_taxonomies_for_{$post_type}_columns", $taxonomies, $post_type );
 640          $taxonomies = array_filter( $taxonomies, 'taxonomy_exists' );
 641  
 642          foreach ( $taxonomies as $taxonomy ) {
 643              if ( 'category' === $taxonomy ) {
 644                  $column_key = 'categories';
 645              } elseif ( 'post_tag' === $taxonomy ) {
 646                  $column_key = 'tags';
 647              } else {
 648                  $column_key = 'taxonomy-' . $taxonomy;
 649              }
 650  
 651              $posts_columns[ $column_key ] = get_taxonomy( $taxonomy )->labels->name;
 652          }
 653  
 654          $post_status = ! empty( $_REQUEST['post_status'] ) ? $_REQUEST['post_status'] : 'all';
 655          if ( post_type_supports( $post_type, 'comments' ) && ! in_array( $post_status, array( 'pending', 'draft', 'future' ), true ) ) {
 656              $posts_columns['comments'] = '<span class="vers comment-grey-bubble" title="' . esc_attr__( 'Comments' ) . '"><span class="screen-reader-text">' . __( 'Comments' ) . '</span></span>';
 657          }
 658  
 659          $posts_columns['date'] = __( 'Date' );
 660  
 661          if ( 'page' === $post_type ) {
 662  
 663              /**
 664               * Filters the columns displayed in the Pages list table.
 665               *
 666               * @since 2.5.0
 667               *
 668               * @param string[] $post_columns An associative array of column headings.
 669               */
 670              $posts_columns = apply_filters( 'manage_pages_columns', $posts_columns );
 671          } else {
 672  
 673              /**
 674               * Filters the columns displayed in the Posts list table.
 675               *
 676               * @since 1.5.0
 677               *
 678               * @param string[] $post_columns An associative array of column headings.
 679               * @param string   $post_type    The post type slug.
 680               */
 681              $posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );
 682          }
 683  
 684          /**
 685           * Filters the columns displayed in the Posts list table for a specific post type.
 686           *
 687           * The dynamic portion of the hook name, `$post_type`, refers to the post type slug.
 688           *
 689           * @since 3.0.0
 690           *
 691           * @param string[] $post_columns An associative array of column headings.
 692           */
 693          return apply_filters( "manage_{$post_type}_posts_columns", $posts_columns );
 694      }
 695  
 696      /**
 697       * @return array
 698       */
 699  	protected function get_sortable_columns() {
 700          return array(
 701              'title'    => 'title',
 702              'parent'   => 'parent',
 703              'comments' => 'comment_count',
 704              'date'     => array( 'date', true ),
 705          );
 706      }
 707  
 708      /**
 709       * @global WP_Query $wp_query WordPress Query object.
 710       * @global int $per_page
 711       * @param array $posts
 712       * @param int   $level
 713       */
 714  	public function display_rows( $posts = array(), $level = 0 ) {
 715          global $wp_query, $per_page;
 716  
 717          if ( empty( $posts ) ) {
 718              $posts = $wp_query->posts;
 719          }
 720  
 721          add_filter( 'the_title', 'esc_html' );
 722  
 723          if ( $this->hierarchical_display ) {
 724              $this->_display_rows_hierarchical( $posts, $this->get_pagenum(), $per_page );
 725          } else {
 726              $this->_display_rows( $posts, $level );
 727          }
 728      }
 729  
 730      /**
 731       * @param array $posts
 732       * @param int   $level
 733       */
 734  	private function _display_rows( $posts, $level = 0 ) {
 735          $post_type = $this->screen->post_type;
 736  
 737          // Create array of post IDs.
 738          $post_ids = array();
 739  
 740          foreach ( $posts as $a_post ) {
 741              $post_ids[] = $a_post->ID;
 742          }
 743  
 744          if ( post_type_supports( $post_type, 'comments' ) ) {
 745              $this->comment_pending_count = get_pending_comments_num( $post_ids );
 746          }
 747  
 748          foreach ( $posts as $post ) {
 749              $this->single_row( $post, $level );
 750          }
 751      }
 752  
 753      /**
 754       * @global wpdb    $wpdb WordPress database abstraction object.
 755       * @global WP_Post $post Global post object.
 756       * @param array $pages
 757       * @param int   $pagenum
 758       * @param int   $per_page
 759       */
 760  	private function _display_rows_hierarchical( $pages, $pagenum = 1, $per_page = 20 ) {
 761          global $wpdb;
 762  
 763          $level = 0;
 764  
 765          if ( ! $pages ) {
 766              $pages = get_pages( array( 'sort_column' => 'menu_order' ) );
 767  
 768              if ( ! $pages ) {
 769                  return;
 770              }
 771          }
 772  
 773          /*
 774           * Arrange pages into two parts: top level pages and children_pages
 775           * children_pages is two dimensional array, eg.
 776           * children_pages[10][] contains all sub-pages whose parent is 10.
 777           * It only takes O( N ) to arrange this and it takes O( 1 ) for subsequent lookup operations
 778           * If searching, ignore hierarchy and treat everything as top level
 779           */
 780          if ( empty( $_REQUEST['s'] ) ) {
 781  
 782              $top_level_pages = array();
 783              $children_pages  = array();
 784  
 785              foreach ( $pages as $page ) {
 786  
 787                  // Catch and repair bad pages.
 788                  if ( $page->post_parent == $page->ID ) {
 789                      $page->post_parent = 0;
 790                      $wpdb->update( $wpdb->posts, array( 'post_parent' => 0 ), array( 'ID' => $page->ID ) );
 791                      clean_post_cache( $page );
 792                  }
 793  
 794                  if ( 0 == $page->post_parent ) {
 795                      $top_level_pages[] = $page;
 796                  } else {
 797                      $children_pages[ $page->post_parent ][] = $page;
 798                  }
 799              }
 800  
 801              $pages = &$top_level_pages;
 802          }
 803  
 804          $count      = 0;
 805          $start      = ( $pagenum - 1 ) * $per_page;
 806          $end        = $start + $per_page;
 807          $to_display = array();
 808  
 809          foreach ( $pages as $page ) {
 810              if ( $count >= $end ) {
 811                  break;
 812              }
 813  
 814              if ( $count >= $start ) {
 815                  $to_display[ $page->ID ] = $level;
 816              }
 817  
 818              $count++;
 819  
 820              if ( isset( $children_pages ) ) {
 821                  $this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display );
 822              }
 823          }
 824  
 825          // If it is the last pagenum and there are orphaned pages, display them with paging as well.
 826          if ( isset( $children_pages ) && $count < $end ) {
 827              foreach ( $children_pages as $orphans ) {
 828                  foreach ( $orphans as $op ) {
 829                      if ( $count >= $end ) {
 830                          break;
 831                      }
 832  
 833                      if ( $count >= $start ) {
 834                          $to_display[ $op->ID ] = 0;
 835                      }
 836  
 837                      $count++;
 838                  }
 839              }
 840          }
 841  
 842          $ids = array_keys( $to_display );
 843          _prime_post_caches( $ids );
 844  
 845          if ( ! isset( $GLOBALS['post'] ) ) {
 846              $GLOBALS['post'] = reset( $ids );
 847          }
 848  
 849          foreach ( $to_display as $page_id => $level ) {
 850              echo "\t";
 851              $this->single_row( $page_id, $level );
 852          }
 853      }
 854  
 855      /**
 856       * Given a top level page ID, display the nested hierarchy of sub-pages
 857       * together with paging support
 858       *
 859       * @since 3.1.0 (Standalone function exists since 2.6.0)
 860       * @since 4.2.0 Added the `$to_display` parameter.
 861       *
 862       * @param array $children_pages
 863       * @param int   $count
 864       * @param int   $parent
 865       * @param int   $level
 866       * @param int   $pagenum
 867       * @param int   $per_page
 868       * @param array $to_display List of pages to be displayed. Passed by reference.
 869       */
 870  	private function _page_rows( &$children_pages, &$count, $parent, $level, $pagenum, $per_page, &$to_display ) {
 871          if ( ! isset( $children_pages[ $parent ] ) ) {
 872              return;
 873          }
 874  
 875          $start = ( $pagenum - 1 ) * $per_page;
 876          $end   = $start + $per_page;
 877  
 878          foreach ( $children_pages[ $parent ] as $page ) {
 879              if ( $count >= $end ) {
 880                  break;
 881              }
 882  
 883              // If the page starts in a subtree, print the parents.
 884              if ( $count == $start && $page->post_parent > 0 ) {
 885                  $my_parents = array();
 886                  $my_parent  = $page->post_parent;
 887                  while ( $my_parent ) {
 888                      // Get the ID from the list or the attribute if my_parent is an object.
 889                      $parent_id = $my_parent;
 890                      if ( is_object( $my_parent ) ) {
 891                          $parent_id = $my_parent->ID;
 892                      }
 893  
 894                      $my_parent    = get_post( $parent_id );
 895                      $my_parents[] = $my_parent;
 896                      if ( ! $my_parent->post_parent ) {
 897                          break;
 898                      }
 899                      $my_parent = $my_parent->post_parent;
 900                  }
 901                  $num_parents = count( $my_parents );
 902                  while ( $my_parent = array_pop( $my_parents ) ) {
 903                      $to_display[ $my_parent->ID ] = $level - $num_parents;
 904                      $num_parents--;
 905                  }
 906              }
 907  
 908              if ( $count >= $start ) {
 909                  $to_display[ $page->ID ] = $level;
 910              }
 911  
 912              $count++;
 913  
 914              $this->_page_rows( $children_pages, $count, $page->ID, $level + 1, $pagenum, $per_page, $to_display );
 915          }
 916  
 917          unset( $children_pages[ $parent ] ); // Required in order to keep track of orphans.
 918      }
 919  
 920      /**
 921       * Handles the checkbox column output.
 922       *
 923       * @since 4.3.0
 924       *
 925       * @param WP_Post $post The current WP_Post object.
 926       */
 927  	public function column_cb( $post ) {
 928          if ( current_user_can( 'edit_post', $post->ID ) ) :
 929              ?>
 930              <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>">
 931                  <?php
 932                      /* translators: %s: Post title. */
 933                      printf( __( 'Select %s' ), _draft_or_post_title() );
 934                  ?>
 935              </label>
 936              <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" />
 937              <div class="locked-indicator">
 938                  <span class="locked-indicator-icon" aria-hidden="true"></span>
 939                  <span class="screen-reader-text">
 940                  <?php
 941                  printf(
 942                      /* translators: %s: Post title. */
 943                      __( '&#8220;%s&#8221; is locked' ),
 944                      _draft_or_post_title()
 945                  );
 946                  ?>
 947                  </span>
 948              </div>
 949              <?php
 950          endif;
 951      }
 952  
 953      /**
 954       * @since 4.3.0
 955       *
 956       * @param WP_Post $post
 957       * @param string  $classes
 958       * @param string  $data
 959       * @param string  $primary
 960       */
 961  	protected function _column_title( $post, $classes, $data, $primary ) {
 962          echo '<td class="' . $classes . ' page-title" ', $data, '>';
 963          echo $this->column_title( $post );
 964          echo $this->handle_row_actions( $post, 'title', $primary );
 965          echo '</td>';
 966      }
 967  
 968      /**
 969       * Handles the title column output.
 970       *
 971       * @since 4.3.0
 972       *
 973       * @global string $mode List table view mode.
 974       *
 975       * @param WP_Post $post The current WP_Post object.
 976       */
 977  	public function column_title( $post ) {
 978          global $mode;
 979  
 980          if ( $this->hierarchical_display ) {
 981              if ( 0 === $this->current_level && (int) $post->post_parent > 0 ) {
 982                  // Sent level 0 by accident, by default, or because we don't know the actual level.
 983                  $find_main_page = (int) $post->post_parent;
 984                  while ( $find_main_page > 0 ) {
 985                      $parent = get_post( $find_main_page );
 986  
 987                      if ( is_null( $parent ) ) {
 988                          break;
 989                      }
 990  
 991                      $this->current_level++;
 992                      $find_main_page = (int) $parent->post_parent;
 993  
 994                      if ( ! isset( $parent_name ) ) {
 995                          /** This filter is documented in wp-includes/post-template.php */
 996                          $parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID );
 997                      }
 998                  }
 999              }
1000          }
1001  
1002          $can_edit_post = current_user_can( 'edit_post', $post->ID );
1003  
1004          if ( $can_edit_post && 'trash' !== $post->post_status ) {
1005              $lock_holder = wp_check_post_lock( $post->ID );
1006  
1007              if ( $lock_holder ) {
1008                  $lock_holder   = get_userdata( $lock_holder );
1009                  $locked_avatar = get_avatar( $lock_holder->ID, 18 );
1010                  /* translators: %s: User's display name. */
1011                  $locked_text = esc_html( sprintf( __( '%s is currently editing' ), $lock_holder->display_name ) );
1012              } else {
1013                  $locked_avatar = '';
1014                  $locked_text   = '';
1015              }
1016  
1017              echo '<div class="locked-info"><span class="locked-avatar">' . $locked_avatar . '</span> <span class="locked-text">' . $locked_text . "</span></div>\n";
1018          }
1019  
1020          $pad = str_repeat( '&#8212; ', $this->current_level );
1021          echo '<strong>';
1022  
1023          $title = _draft_or_post_title();
1024  
1025          if ( $can_edit_post && 'trash' !== $post->post_status ) {
1026              printf(
1027                  '<a class="row-title" href="%s" aria-label="%s">%s%s</a>',
1028                  get_edit_post_link( $post->ID ),
1029                  /* translators: %s: Post title. */
1030                  esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) ),
1031                  $pad,
1032                  $title
1033              );
1034          } else {
1035              printf(
1036                  '<span>%s%s</span>',
1037                  $pad,
1038                  $title
1039              );
1040          }
1041          _post_states( $post );
1042  
1043          if ( isset( $parent_name ) ) {
1044              $post_type_object = get_post_type_object( $post->post_type );
1045              echo ' | ' . $post_type_object->labels->parent_item_colon . ' ' . esc_html( $parent_name );
1046          }
1047          echo "</strong>\n";
1048  
1049          if ( 'excerpt' === $mode
1050              && ! is_post_type_hierarchical( $this->screen->post_type )
1051              && current_user_can( 'read_post', $post->ID )
1052          ) {
1053              if ( post_password_required( $post ) ) {
1054                  echo '<span class="protected-post-excerpt">' . esc_html( get_the_excerpt() ) . '</span>';
1055              } else {
1056                  echo esc_html( get_the_excerpt() );
1057              }
1058          }
1059  
1060          get_inline_data( $post );
1061      }
1062  
1063      /**
1064       * Handles the post date column output.
1065       *
1066       * @since 4.3.0
1067       *
1068       * @global string $mode List table view mode.
1069       *
1070       * @param WP_Post $post The current WP_Post object.
1071       */
1072  	public function column_date( $post ) {
1073          global $mode;
1074  
1075          if ( '0000-00-00 00:00:00' === $post->post_date ) {
1076              $t_time    = __( 'Unpublished' );
1077              $time_diff = 0;
1078          } else {
1079              $t_time = sprintf(
1080                  /* translators: 1: Post date, 2: Post time. */
1081                  __( '%1$s at %2$s' ),
1082                  /* translators: Post date format. See https://www.php.net/manual/datetime.format.php */
1083                  get_the_time( __( 'Y/m/d' ), $post ),
1084                  /* translators: Post time format. See https://www.php.net/manual/datetime.format.php */
1085                  get_the_time( __( 'g:i a' ), $post )
1086              );
1087  
1088              $time      = get_post_timestamp( $post );
1089              $time_diff = time() - $time;
1090          }
1091  
1092          if ( 'publish' === $post->post_status ) {
1093              $status = __( 'Published' );
1094          } elseif ( 'future' === $post->post_status ) {
1095              if ( $time_diff > 0 ) {
1096                  $status = '<strong class="error-message">' . __( 'Missed schedule' ) . '</strong>';
1097              } else {
1098                  $status = __( 'Scheduled' );
1099              }
1100          } else {
1101              $status = __( 'Last Modified' );
1102          }
1103  
1104          /**
1105           * Filters the status text of the post.
1106           *
1107           * @since 4.8.0
1108           *
1109           * @param string  $status      The status text.
1110           * @param WP_Post $post        Post object.
1111           * @param string  $column_name The column name.
1112           * @param string  $mode        The list display mode ('excerpt' or 'list').
1113           */
1114          $status = apply_filters( 'post_date_column_status', $status, $post, 'date', $mode );
1115  
1116          if ( $status ) {
1117              echo $status . '<br />';
1118          }
1119  
1120          /**
1121           * Filters the published time of the post.
1122           *
1123           * @since 2.5.1
1124           * @since 5.5.0 Removed the difference between 'excerpt' and 'list' modes.
1125           *              The published time and date are both displayed now,
1126           *              which is equivalent to the previous 'excerpt' mode.
1127           *
1128           * @param string  $t_time      The published time.
1129           * @param WP_Post $post        Post object.
1130           * @param string  $column_name The column name.
1131           * @param string  $mode        The list display mode ('excerpt' or 'list').
1132           */
1133          echo apply_filters( 'post_date_column_time', $t_time, $post, 'date', $mode );
1134      }
1135  
1136      /**
1137       * Handles the comments column output.
1138       *
1139       * @since 4.3.0
1140       *
1141       * @param WP_Post $post The current WP_Post object.
1142       */
1143  	public function column_comments( $post ) {
1144          ?>
1145          <div class="post-com-count-wrapper">
1146          <?php
1147              $pending_comments = isset( $this->comment_pending_count[ $post->ID ] ) ? $this->comment_pending_count[ $post->ID ] : 0;
1148  
1149              $this->comments_bubble( $post->ID, $pending_comments );
1150          ?>
1151          </div>
1152          <?php
1153      }
1154  
1155      /**
1156       * Handles the post author column output.
1157       *
1158       * @since 4.3.0
1159       *
1160       * @param WP_Post $post The current WP_Post object.
1161       */
1162  	public function column_author( $post ) {
1163          $args = array(
1164              'post_type' => $post->post_type,
1165              'author'    => get_the_author_meta( 'ID' ),
1166          );
1167          echo $this->get_edit_link( $args, get_the_author() );
1168      }
1169  
1170      /**
1171       * Handles the default column output.
1172       *
1173       * @since 4.3.0
1174       *
1175       * @param WP_Post $post        The current WP_Post object.
1176       * @param string  $column_name The current column name.
1177       */
1178  	public function column_default( $post, $column_name ) {
1179          if ( 'categories' === $column_name ) {
1180              $taxonomy = 'category';
1181          } elseif ( 'tags' === $column_name ) {
1182              $taxonomy = 'post_tag';
1183          } elseif ( 0 === strpos( $column_name, 'taxonomy-' ) ) {
1184              $taxonomy = substr( $column_name, 9 );
1185          } else {
1186              $taxonomy = false;
1187          }
1188          if ( $taxonomy ) {
1189              $taxonomy_object = get_taxonomy( $taxonomy );
1190              $terms           = get_the_terms( $post->ID, $taxonomy );
1191              if ( is_array( $terms ) ) {
1192                  $term_links = array();
1193                  foreach ( $terms as $t ) {
1194                      $posts_in_term_qv = array();
1195                      if ( 'post' !== $post->post_type ) {
1196                          $posts_in_term_qv['post_type'] = $post->post_type;
1197                      }
1198                      if ( $taxonomy_object->query_var ) {
1199                          $posts_in_term_qv[ $taxonomy_object->query_var ] = $t->slug;
1200                      } else {
1201                          $posts_in_term_qv['taxonomy'] = $taxonomy;
1202                          $posts_in_term_qv['term']     = $t->slug;
1203                      }
1204  
1205                      $label = esc_html( sanitize_term_field( 'name', $t->name, $t->term_id, $taxonomy, 'display' ) );
1206  
1207                      $term_links[] = $this->get_edit_link( $posts_in_term_qv, $label );
1208                  }
1209  
1210                  /**
1211                   * Filters the links in `$taxonomy` column of edit.php.
1212                   *
1213                   * @since 5.2.0
1214                   *
1215                   * @param string[]  $term_links Array of term editing links.
1216                   * @param string    $taxonomy   Taxonomy name.
1217                   * @param WP_Term[] $terms      Array of term objects appearing in the post row.
1218                   */
1219                  $term_links = apply_filters( 'post_column_taxonomy_links', $term_links, $taxonomy, $terms );
1220  
1221                  /* translators: Used between list items, there is a space after the comma. */
1222                  echo implode( __( ', ' ), $term_links );
1223              } else {
1224                  echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . $taxonomy_object->labels->no_terms . '</span>';
1225              }
1226              return;
1227          }
1228  
1229          if ( is_post_type_hierarchical( $post->post_type ) ) {
1230  
1231              /**
1232               * Fires in each custom column on the Posts list table.
1233               *
1234               * This hook only fires if the current post type is hierarchical,
1235               * such as pages.
1236               *
1237               * @since 2.5.0
1238               *
1239               * @param string $column_name The name of the column to display.
1240               * @param int    $post_id     The current post ID.
1241               */
1242              do_action( 'manage_pages_custom_column', $column_name, $post->ID );
1243          } else {
1244  
1245              /**
1246               * Fires in each custom column in the Posts list table.
1247               *
1248               * This hook only fires if the current post type is non-hierarchical,
1249               * such as posts.
1250               *
1251               * @since 1.5.0
1252               *
1253               * @param string $column_name The name of the column to display.
1254               * @param int    $post_id     The current post ID.
1255               */
1256              do_action( 'manage_posts_custom_column', $column_name, $post->ID );
1257          }
1258  
1259          /**
1260           * Fires for each custom column of a specific post type in the Posts list table.
1261           *
1262           * The dynamic portion of the hook name, `$post->post_type`, refers to the post type.
1263           *
1264           * @since 3.1.0
1265           *
1266           * @param string $column_name The name of the column to display.
1267           * @param int    $post_id     The current post ID.
1268           */
1269          do_action( "manage_{$post->post_type}_posts_custom_column", $column_name, $post->ID );
1270      }
1271  
1272      /**
1273       * @global WP_Post $post Global post object.
1274       *
1275       * @param int|WP_Post $post
1276       * @param int         $level
1277       */
1278  	public function single_row( $post, $level = 0 ) {
1279          $global_post = get_post();
1280  
1281          $post                = get_post( $post );
1282          $this->current_level = $level;
1283  
1284          $GLOBALS['post'] = $post;
1285          setup_postdata( $post );
1286  
1287          $classes = 'iedit author-' . ( get_current_user_id() == $post->post_author ? 'self' : 'other' );
1288  
1289          $lock_holder = wp_check_post_lock( $post->ID );
1290          if ( $lock_holder ) {
1291              $classes .= ' wp-locked';
1292          }
1293  
1294          if ( $post->post_parent ) {
1295              $count    = count( get_post_ancestors( $post->ID ) );
1296              $classes .= ' level-' . $count;
1297          } else {
1298              $classes .= ' level-0';
1299          }
1300          ?>
1301          <tr id="post-<?php echo $post->ID; ?>" class="<?php echo implode( ' ', get_post_class( $classes, $post->ID ) ); ?>">
1302              <?php $this->single_row_columns( $post ); ?>
1303          </tr>
1304          <?php
1305          $GLOBALS['post'] = $global_post;
1306      }
1307  
1308      /**
1309       * Gets the name of the default primary column.
1310       *
1311       * @since 4.3.0
1312       *
1313       * @return string Name of the default primary column, in this case, 'title'.
1314       */
1315  	protected function get_default_primary_column_name() {
1316          return 'title';
1317      }
1318  
1319      /**
1320       * Generates and displays row action links.
1321       *
1322       * @since 4.3.0
1323       *
1324       * @param WP_Post $post        Post being acted upon.
1325       * @param string  $column_name Current column name.
1326       * @param string  $primary     Primary column name.
1327       * @return string Row actions output for posts, or an empty string
1328       *                if the current column is not the primary column.
1329       */
1330  	protected function handle_row_actions( $post, $column_name, $primary ) {
1331          if ( $primary !== $column_name ) {
1332              return '';
1333          }
1334  
1335          $post_type_object = get_post_type_object( $post->post_type );
1336          $can_edit_post    = current_user_can( 'edit_post', $post->ID );
1337          $actions          = array();
1338          $title            = _draft_or_post_title();
1339  
1340          if ( $can_edit_post && 'trash' !== $post->post_status ) {
1341              $actions['edit'] = sprintf(
1342                  '<a href="%s" aria-label="%s">%s</a>',
1343                  get_edit_post_link( $post->ID ),
1344                  /* translators: %s: Post title. */
1345                  esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ),
1346                  __( 'Edit' )
1347              );
1348  
1349              if ( 'wp_block' !== $post->post_type ) {
1350                  $actions['inline hide-if-no-js'] = sprintf(
1351                      '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>',
1352                      /* translators: %s: Post title. */
1353                      esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),
1354                      __( 'Quick&nbsp;Edit' )
1355                  );
1356              }
1357          }
1358  
1359          if ( current_user_can( 'delete_post', $post->ID ) ) {
1360              if ( 'trash' === $post->post_status ) {
1361                  $actions['untrash'] = sprintf(
1362                      '<a href="%s" aria-label="%s">%s</a>',
1363                      wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
1364                      /* translators: %s: Post title. */
1365                      esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash' ), $title ) ),
1366                      __( 'Restore' )
1367                  );
1368              } elseif ( EMPTY_TRASH_DAYS ) {
1369                  $actions['trash'] = sprintf(
1370                      '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
1371                      get_delete_post_link( $post->ID ),
1372                      /* translators: %s: Post title. */
1373                      esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $title ) ),
1374                      _x( 'Trash', 'verb' )
1375                  );
1376              }
1377              if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) {
1378                  $actions['delete'] = sprintf(
1379                      '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
1380                      get_delete_post_link( $post->ID, '', true ),
1381                      /* translators: %s: Post title. */
1382                      esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $title ) ),
1383                      __( 'Delete Permanently' )
1384                  );
1385              }
1386          }
1387  
1388          if ( is_post_type_viewable( $post_type_object ) ) {
1389              if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ), true ) ) {
1390                  if ( $can_edit_post ) {
1391                      $preview_link    = get_preview_post_link( $post );
1392                      $actions['view'] = sprintf(
1393                          '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
1394                          esc_url( $preview_link ),
1395                          /* translators: %s: Post title. */
1396                          esc_attr( sprintf( __( 'Preview &#8220;%s&#8221;' ), $title ) ),
1397                          __( 'Preview' )
1398                      );
1399                  }
1400              } elseif ( 'trash' !== $post->post_status ) {
1401                  $actions['view'] = sprintf(
1402                      '<a href="%s" rel="bookmark" aria-label="%s">%s</a>',
1403                      get_permalink( $post->ID ),
1404                      /* translators: %s: Post title. */
1405                      esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ),
1406                      __( 'View' )
1407                  );
1408              }
1409          }
1410  
1411          if ( 'wp_block' === $post->post_type ) {
1412              $actions['export'] = sprintf(
1413                  '<button type="button" class="wp-list-reusable-blocks__export button-link" data-id="%s" aria-label="%s">%s</button>',
1414                  $post->ID,
1415                  /* translators: %s: Post title. */
1416                  esc_attr( sprintf( __( 'Export &#8220;%s&#8221; as JSON' ), $title ) ),
1417                  __( 'Export as JSON' )
1418              );
1419          }
1420  
1421          if ( is_post_type_hierarchical( $post->post_type ) ) {
1422  
1423              /**
1424               * Filters the array of row action links on the Pages list table.
1425               *
1426               * The filter is evaluated only for hierarchical post types.
1427               *
1428               * @since 2.8.0
1429               *
1430               * @param string[] $actions An array of row action links. Defaults are
1431               *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
1432               *                          'Delete Permanently', 'Preview', and 'View'.
1433               * @param WP_Post  $post    The post object.
1434               */
1435              $actions = apply_filters( 'page_row_actions', $actions, $post );
1436          } else {
1437  
1438              /**
1439               * Filters the array of row action links on the Posts list table.
1440               *
1441               * The filter is evaluated only for non-hierarchical post types.
1442               *
1443               * @since 2.8.0
1444               *
1445               * @param string[] $actions An array of row action links. Defaults are
1446               *                          'Edit', 'Quick Edit', 'Restore', 'Trash',
1447               *                          'Delete Permanently', 'Preview', and 'View'.
1448               * @param WP_Post  $post    The post object.
1449               */
1450              $actions = apply_filters( 'post_row_actions', $actions, $post );
1451          }
1452  
1453          return $this->row_actions( $actions );
1454      }
1455  
1456      /**
1457       * Outputs the hidden row displayed when inline editing
1458       *
1459       * @since 3.1.0
1460       *
1461       * @global string $mode List table view mode.
1462       */
1463  	public function inline_edit() {
1464          global $mode;
1465  
1466          $screen = $this->screen;
1467  
1468          $post             = get_default_post_to_edit( $screen->post_type );
1469          $post_type_object = get_post_type_object( $screen->post_type );
1470  
1471          $taxonomy_names          = get_object_taxonomies( $screen->post_type );
1472          $hierarchical_taxonomies = array();
1473          $flat_taxonomies         = array();
1474  
1475          foreach ( $taxonomy_names as $taxonomy_name ) {
1476  
1477              $taxonomy = get_taxonomy( $taxonomy_name );
1478  
1479              $show_in_quick_edit = $taxonomy->show_in_quick_edit;
1480  
1481              /**
1482               * Filters whether the current taxonomy should be shown in the Quick Edit panel.
1483               *
1484               * @since 4.2.0
1485               *
1486               * @param bool   $show_in_quick_edit Whether to show the current taxonomy in Quick Edit.
1487               * @param string $taxonomy_name      Taxonomy name.
1488               * @param string $post_type          Post type of current Quick Edit post.
1489               */
1490              if ( ! apply_filters( 'quick_edit_show_taxonomy', $show_in_quick_edit, $taxonomy_name, $screen->post_type ) ) {
1491                  continue;
1492              }
1493  
1494              if ( $taxonomy->hierarchical ) {
1495                  $hierarchical_taxonomies[] = $taxonomy;
1496              } else {
1497                  $flat_taxonomies[] = $taxonomy;
1498              }
1499          }
1500  
1501          $m            = ( isset( $mode ) && 'excerpt' === $mode ) ? 'excerpt' : 'list';
1502          $can_publish  = current_user_can( $post_type_object->cap->publish_posts );
1503          $core_columns = array(
1504              'cb'         => true,
1505              'date'       => true,
1506              'title'      => true,
1507              'categories' => true,
1508              'tags'       => true,
1509              'comments'   => true,
1510              'author'     => true,
1511          );
1512  
1513          ?>
1514  
1515          <form method="get">
1516          <table style="display: none"><tbody id="inlineedit">
1517          <?php
1518          $hclass              = count( $hierarchical_taxonomies ) ? 'post' : 'page';
1519          $inline_edit_classes = "inline-edit-row inline-edit-row-$hclass";
1520          $bulk_edit_classes   = "bulk-edit-row bulk-edit-row-$hclass bulk-edit-{$screen->post_type}";
1521          $quick_edit_classes  = "quick-edit-row quick-edit-row-$hclass inline-edit-{$screen->post_type}";
1522  
1523          $bulk = 0;
1524          while ( $bulk < 2 ) :
1525              $classes  = $inline_edit_classes . ' ';
1526              $classes .= $bulk ? $bulk_edit_classes : $quick_edit_classes;
1527              ?>
1528              <tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="<?php echo $classes; ?>" style="display: none">
1529              <td colspan="<?php echo $this->get_column_count(); ?>" class="colspanchange">
1530  
1531              <fieldset class="inline-edit-col-left">
1532                  <legend class="inline-edit-legend"><?php echo $bulk ? __( 'Bulk Edit' ) : __( 'Quick Edit' ); ?></legend>
1533                  <div class="inline-edit-col">
1534  
1535                  <?php if ( post_type_supports( $screen->post_type, 'title' ) ) : ?>
1536  
1537                      <?php if ( $bulk ) : ?>
1538  
1539                          <div id="bulk-title-div">
1540                              <div id="bulk-titles"></div>
1541                          </div>
1542  
1543                      <?php else : // $bulk ?>
1544  
1545                          <label>
1546                              <span class="title"><?php _e( 'Title' ); ?></span>
1547                              <span class="input-text-wrap"><input type="text" name="post_title" class="ptitle" value="" /></span>
1548                          </label>
1549  
1550                          <?php if ( is_post_type_viewable( $screen->post_type ) ) : ?>
1551  
1552                              <label>
1553                                  <span class="title"><?php _e( 'Slug' ); ?></span>
1554                                  <span class="input-text-wrap"><input type="text" name="post_name" value="" /></span>
1555                              </label>
1556  
1557                          <?php endif; // is_post_type_viewable() ?>
1558  
1559                      <?php endif; // $bulk ?>
1560  
1561                  <?php endif; // post_type_supports( ... 'title' ) ?>
1562  
1563                  <?php if ( ! $bulk ) : ?>
1564                      <fieldset class="inline-edit-date">
1565                          <legend><span class="title"><?php _e( 'Date' ); ?></span></legend>
1566                          <?php touch_time( 1, 1, 0, 1 ); ?>
1567                      </fieldset>
1568                      <br class="clear" />
1569                  <?php endif; // $bulk ?>
1570  
1571                  <?php
1572                  if ( post_type_supports( $screen->post_type, 'author' ) ) :
1573                      $authors_dropdown = '';
1574  
1575                      if ( current_user_can( $post_type_object->cap->edit_others_posts ) ) :
1576                          $users_opt = array(
1577                              'hide_if_only_one_author' => false,
1578                              'who'                     => 'authors',
1579                              'name'                    => 'post_author',
1580                              'class'                   => 'authors',
1581                              'multi'                   => 1,
1582                              'echo'                    => 0,
1583                              'show'                    => 'display_name_with_login',
1584                          );
1585  
1586                          if ( $bulk ) {
1587                              $users_opt['show_option_none'] = __( '&mdash; No Change &mdash;' );
1588                          }
1589  
1590                          /**
1591                           * Filters the arguments used to generate the Quick Edit authors drop-down.
1592                           *
1593                           * @since 5.6.0
1594                           *
1595                           * @see wp_dropdown_users()
1596                           *
1597                           * @param array $users_opt An array of arguments passed to wp_dropdown_users().
1598                           * @param bool  $bulk      A flag to denote if it's a bulk action.
1599                           */
1600                          $users_opt = apply_filters( 'quick_edit_dropdown_authors_args', $users_opt, $bulk );
1601  
1602                          $authors = wp_dropdown_users( $users_opt );
1603                          if ( $authors ) :
1604                              $authors_dropdown  = '<label class="inline-edit-author">';
1605                              $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
1606                              $authors_dropdown .= $authors;
1607                              $authors_dropdown .= '</label>';
1608                          endif;
1609                      endif; // current_user_can( 'edit_others_posts' )
1610                      ?>
1611  
1612                      <?php
1613                      if ( ! $bulk ) {
1614                          echo $authors_dropdown;
1615                      }
1616                  endif; // post_type_supports( ... 'author' )
1617                  ?>
1618  
1619                  <?php if ( ! $bulk && $can_publish ) : ?>
1620  
1621                      <div class="inline-edit-group wp-clearfix">
1622                          <label class="alignleft">
1623                              <span class="title"><?php _e( 'Password' ); ?></span>
1624                              <span class="input-text-wrap"><input type="text" name="post_password" class="inline-edit-password-input" value="" /></span>
1625                          </label>
1626  
1627                          <span class="alignleft inline-edit-or">
1628                              <?php
1629                              /* translators: Between password field and private checkbox on post quick edit interface. */
1630                              _e( '&ndash;OR&ndash;' );
1631                              ?>
1632                          </span>
1633                          <label class="alignleft inline-edit-private">
1634                              <input type="checkbox" name="keep_private" value="private" />
1635                              <span class="checkbox-title"><?php _e( 'Private' ); ?></span>
1636                          </label>
1637                      </div>
1638  
1639                  <?php endif; ?>
1640  
1641                  </div>
1642              </fieldset>
1643  
1644              <?php if ( count( $hierarchical_taxonomies ) && ! $bulk ) : ?>
1645  
1646                  <fieldset class="inline-edit-col-center inline-edit-categories">
1647                      <div class="inline-edit-col">
1648  
1649                      <?php foreach ( $hierarchical_taxonomies as $taxonomy ) : ?>
1650  
1651                          <span class="title inline-edit-categories-label"><?php echo esc_html( $taxonomy->labels->name ); ?></span>
1652                          <input type="hidden" name="<?php echo ( 'category' === $taxonomy->name ) ? 'post_category[]' : 'tax_input[' . esc_attr( $taxonomy->name ) . '][]'; ?>" value="0" />
1653                          <ul class="cat-checklist <?php echo esc_attr( $taxonomy->name ); ?>-checklist">
1654                              <?php wp_terms_checklist( null, array( 'taxonomy' => $taxonomy->name ) ); ?>
1655                          </ul>
1656  
1657                      <?php endforeach; // $hierarchical_taxonomies as $taxonomy ?>
1658  
1659                      </div>
1660                  </fieldset>
1661  
1662              <?php endif; // count( $hierarchical_taxonomies ) && ! $bulk ?>
1663  
1664              <fieldset class="inline-edit-col-right">
1665                  <div class="inline-edit-col">
1666  
1667                  <?php
1668                  if ( post_type_supports( $screen->post_type, 'author' ) && $bulk ) {
1669                      echo $authors_dropdown;
1670                  }
1671                  ?>
1672  
1673                  <?php if ( post_type_supports( $screen->post_type, 'page-attributes' ) ) : ?>
1674  
1675                      <?php if ( $post_type_object->hierarchical ) : ?>
1676  
1677                          <label>
1678                              <span class="title"><?php _e( 'Parent' ); ?></span>
1679                              <?php
1680                              $dropdown_args = array(
1681                                  'post_type'         => $post_type_object->name,
1682                                  'selected'          => $post->post_parent,
1683                                  'name'              => 'post_parent',
1684                                  'show_option_none'  => __( 'Main Page (no parent)' ),
1685                                  'option_none_value' => 0,
1686                                  'sort_column'       => 'menu_order, post_title',
1687                              );
1688  
1689                              if ( $bulk ) {
1690                                  $dropdown_args['show_option_no_change'] = __( '&mdash; No Change &mdash;' );
1691                              }
1692  
1693                              /**
1694                               * Filters the arguments used to generate the Quick Edit page-parent drop-down.
1695                               *
1696                               * @since 2.7.0
1697                               * @since 5.6.0 The `$bulk` parameter was added.
1698                               *
1699                               * @see wp_dropdown_pages()
1700                               *
1701                               * @param array $dropdown_args An array of arguments passed to wp_dropdown_pages().
1702                               * @param bool  $bulk          A flag to denote if it's a bulk action.
1703                               */
1704                              $dropdown_args = apply_filters( 'quick_edit_dropdown_pages_args', $dropdown_args, $bulk );
1705  
1706                              wp_dropdown_pages( $dropdown_args );
1707                              ?>
1708                          </label>
1709  
1710                      <?php endif; // hierarchical ?>
1711  
1712                      <?php if ( ! $bulk ) : ?>
1713  
1714                          <label>
1715                              <span class="title"><?php _e( 'Order' ); ?></span>
1716                              <span class="input-text-wrap"><input type="text" name="menu_order" class="inline-edit-menu-order-input" value="<?php echo $post->menu_order; ?>" /></span>
1717                          </label>
1718  
1719                      <?php endif; // ! $bulk ?>
1720  
1721                  <?php endif; // post_type_supports( ... 'page-attributes' ) ?>
1722  
1723                  <?php if ( 0 < count( get_page_templates( null, $screen->post_type ) ) ) : ?>
1724  
1725                      <label>
1726                          <span class="title"><?php _e( 'Template' ); ?></span>
1727                          <select name="page_template">
1728                              <?php if ( $bulk ) : ?>
1729                              <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
1730                              <?php endif; // $bulk ?>
1731                              <?php
1732                              /** This filter is documented in wp-admin/includes/meta-boxes.php */
1733                              $default_title = apply_filters( 'default_page_template_title', __( 'Default template' ), 'quick-edit' );
1734                              ?>
1735                              <option value="default"><?php echo esc_html( $default_title ); ?></option>
1736                              <?php page_template_dropdown( '', $screen->post_type ); ?>
1737                          </select>
1738                      </label>
1739  
1740                  <?php endif; ?>
1741  
1742                  <?php if ( count( $flat_taxonomies ) && ! $bulk ) : ?>
1743  
1744                      <?php foreach ( $flat_taxonomies as $taxonomy ) : ?>
1745  
1746                          <?php if ( current_user_can( $taxonomy->cap->assign_terms ) ) : ?>
1747                              <?php $taxonomy_name = esc_attr( $taxonomy->name ); ?>
1748  
1749                              <label class="inline-edit-tags">
1750                                  <span class="title"><?php echo esc_html( $taxonomy->labels->name ); ?></span>
1751                                  <textarea data-wp-taxonomy="<?php echo $taxonomy_name; ?>" cols="22" rows="1" name="tax_input[<?php echo $taxonomy_name; ?>]" class="tax_input_<?php echo $taxonomy_name; ?>"></textarea>
1752                              </label>
1753  
1754                          <?php endif; // current_user_can( 'assign_terms' ) ?>
1755  
1756                      <?php endforeach; // $flat_taxonomies as $taxonomy ?>
1757  
1758                  <?php endif; // count( $flat_taxonomies ) && ! $bulk ?>
1759  
1760                  <?php if ( post_type_supports( $screen->post_type, 'comments' ) || post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>
1761  
1762                      <?php if ( $bulk ) : ?>
1763  
1764                          <div class="inline-edit-group wp-clearfix">
1765  
1766                          <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
1767  
1768                              <label class="alignleft">
1769                                  <span class="title"><?php _e( 'Comments' ); ?></span>
1770                                  <select name="comment_status">
1771                                      <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
1772                                      <option value="open"><?php _e( 'Allow' ); ?></option>
1773                                      <option value="closed"><?php _e( 'Do not allow' ); ?></option>
1774                                  </select>
1775                              </label>
1776  
1777                          <?php endif; ?>
1778  
1779                          <?php if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>
1780  
1781                              <label class="alignright">
1782                                  <span class="title"><?php _e( 'Pings' ); ?></span>
1783                                  <select name="ping_status">
1784                                      <option value=""><?php _e( '&mdash; No Change &mdash;' ); ?></option>
1785                                      <option value="open"><?php _e( 'Allow' ); ?></option>
1786                                      <option value="closed"><?php _e( 'Do not allow' ); ?></option>
1787                                  </select>
1788                              </label>
1789  
1790                          <?php endif; ?>
1791  
1792                          </div>
1793  
1794                      <?php else : // $bulk ?>
1795  
1796                          <div class="inline-edit-group wp-clearfix">
1797  
1798                          <?php if ( post_type_supports( $screen->post_type, 'comments' ) ) : ?>
1799  
1800                              <label class="alignleft">
1801                                  <input type="checkbox" name="comment_status" value="open" />
1802                                  <span class="checkbox-title"><?php _e( 'Allow Comments' ); ?></span>
1803                              </label>
1804  
1805                          <?php endif; ?>
1806  
1807                          <?php if ( post_type_supports( $screen->post_type, 'trackbacks' ) ) : ?>
1808  
1809                              <label class="alignleft">
1810                                  <input type="checkbox" name="ping_status" value="open" />
1811                                  <span class="checkbox-title"><?php _e( 'Allow Pings' ); ?></span>
1812                              </label>
1813  
1814                          <?php endif; ?>
1815  
1816                          </div>
1817  
1818                      <?php endif; // $bulk ?>
1819  
1820                  <?php endif; // post_type_supports( ... comments or pings ) ?>
1821  
1822                      <div class="inline-edit-group wp-clearfix">
1823  
1824                          <label class="inline-edit-status alignleft">
1825                              <span class="title"><?php _e( 'Status' ); ?></span>
1826                              <select name="_status">
1827                                  <?php if ( $bulk ) : ?>
1828                                      <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
1829                                  <?php endif; // $bulk ?>
1830  
1831                                  <?php if ( $can_publish ) : // Contributors only get "Unpublished" and "Pending Review". ?>
1832                                      <option value="publish"><?php _e( 'Published' ); ?></option>
1833                                      <option value="future"><?php _e( 'Scheduled' ); ?></option>
1834                                      <?php if ( $bulk ) : ?>
1835                                          <option value="private"><?php _e( 'Private' ); ?></option>
1836                                      <?php endif; // $bulk ?>
1837                                  <?php endif; ?>
1838  
1839                                  <option value="pending"><?php _e( 'Pending Review' ); ?></option>
1840                                  <option value="draft"><?php _e( 'Draft' ); ?></option>
1841                              </select>
1842                          </label>
1843  
1844                          <?php if ( 'post' === $screen->post_type && $can_publish && current_user_can( $post_type_object->cap->edit_others_posts ) ) : ?>
1845  
1846                              <?php if ( $bulk ) : ?>
1847  
1848                                  <label class="alignright">
1849                                      <span class="title"><?php _e( 'Sticky' ); ?></span>
1850                                      <select name="sticky">
1851                                          <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
1852                                          <option value="sticky"><?php _e( 'Sticky' ); ?></option>
1853                                          <option value="unsticky"><?php _e( 'Not Sticky' ); ?></option>
1854                                      </select>
1855                                  </label>
1856  
1857                              <?php else : // $bulk ?>
1858  
1859                                  <label class="alignleft">
1860                                      <input type="checkbox" name="sticky" value="sticky" />
1861                                      <span class="checkbox-title"><?php _e( 'Make this post sticky' ); ?></span>
1862                                  </label>
1863  
1864                              <?php endif; // $bulk ?>
1865  
1866                          <?php endif; // 'post' && $can_publish && current_user_can( 'edit_others_posts' ) ?>
1867  
1868                      </div>
1869  
1870                  <?php if ( $bulk && current_theme_supports( 'post-formats' ) && post_type_supports( $screen->post_type, 'post-formats' ) ) : ?>
1871                      <?php $post_formats = get_theme_support( 'post-formats' ); ?>
1872  
1873                      <label class="alignleft">
1874                          <span class="title"><?php _ex( 'Format', 'post format' ); ?></span>
1875                          <select name="post_format">
1876                              <option value="-1"><?php _e( '&mdash; No Change &mdash;' ); ?></option>
1877                              <option value="0"><?php echo get_post_format_string( 'standard' ); ?></option>
1878                              <?php if ( is_array( $post_formats[0] ) ) : ?>
1879                                  <?php foreach ( $post_formats[0] as $format ) : ?>
1880                                      <option value="<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></option>
1881                                  <?php endforeach; ?>
1882                              <?php endif; ?>
1883                          </select>
1884                      </label>
1885  
1886                  <?php endif; ?>
1887  
1888                  </div>
1889              </fieldset>
1890  
1891              <?php
1892              list( $columns ) = $this->get_column_info();
1893  
1894              foreach ( $columns as $column_name => $column_display_name ) {
1895                  if ( isset( $core_columns[ $column_name ] ) ) {
1896                      continue;
1897                  }
1898  
1899                  if ( $bulk ) {
1900  
1901                      /**
1902                       * Fires once for each column in Bulk Edit mode.
1903                       *
1904                       * @since 2.7.0
1905                       *
1906                       * @param string $column_name Name of the column to edit.
1907                       * @param string $post_type   The post type slug.
1908                       */
1909                      do_action( 'bulk_edit_custom_box', $column_name, $screen->post_type );
1910                  } else {
1911  
1912                      /**
1913                       * Fires once for each column in Quick Edit mode.
1914                       *
1915                       * @since 2.7.0
1916                       *
1917                       * @param string $column_name Name of the column to edit.
1918                       * @param string $post_type   The post type slug, or current screen name if this is a taxonomy list table.
1919                       * @param string $taxonomy    The taxonomy name, if any.
1920                       */
1921                      do_action( 'quick_edit_custom_box', $column_name, $screen->post_type, '' );
1922                  }
1923              }
1924              ?>
1925  
1926              <div class="submit inline-edit-save">
1927                  <button type="button" class="button cancel alignleft"><?php _e( 'Cancel' ); ?></button>
1928  
1929                  <?php if ( ! $bulk ) : ?>
1930                      <?php wp_nonce_field( 'inlineeditnonce', '_inline_edit', false ); ?>
1931                      <button type="button" class="button button-primary save alignright"><?php _e( 'Update' ); ?></button>
1932                      <span class="spinner"></span>
1933                  <?php else : ?>
1934                      <?php submit_button( __( 'Update' ), 'primary alignright', 'bulk_edit', false ); ?>
1935                  <?php endif; ?>
1936  
1937                  <input type="hidden" name="post_view" value="<?php echo esc_attr( $m ); ?>" />
1938                  <input type="hidden" name="screen" value="<?php echo esc_attr( $screen->id ); ?>" />
1939                  <?php if ( ! $bulk && ! post_type_supports( $screen->post_type, 'author' ) ) : ?>
1940                      <input type="hidden" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
1941                  <?php endif; ?>
1942                  <br class="clear" />
1943  
1944                  <div class="notice notice-error notice-alt inline hidden">
1945                      <p class="error"></p>
1946                  </div>
1947              </div>
1948  
1949              </td></tr>
1950  
1951              <?php
1952              $bulk++;
1953          endwhile;
1954          ?>
1955          </tbody></table>
1956          </form>
1957          <?php
1958      }
1959  }


Generated: Tue Oct 27 01:00:08 2020 Cross-referenced by PHPXref 0.7.1