WordPress.org

Make WordPress Core

Ticket #12940: 12940.1.diff

File 12940.1.diff, 1.0 KB (added by caesarsgrunt, 8 years ago)

Method 1

  • wp-admin/includes/template.php

     
    885885        <?php
    886886        $hclass = count( $hierarchical_taxonomies ) ? 'post' : 'page';
    887887        $bulk = 0;
    888         while ( $bulk < 2 ) { ?>
     888        while ( $bulk < 2 ) {
    889889
     890                // allow plugin to replace the popup content
     891                $filter_name = 'wp_';
     892                $filter_name .= $bulk ? 'bulk' : 'quick';
     893                $filter_name .= '_edit_';
     894                $filter_name .= $screen->post_type;
     895
     896                $content = apply_filters( $filter_name, '' );
     897
     898                if ( ! empty($content) ) {
     899                        echo $content;
     900                        break;
     901                }
     902?>
     903
    890904        <tr id="<?php echo $bulk ? 'bulk-edit' : 'inline-edit'; ?>" class="inline-edit-row inline-edit-row-<?php echo "$hclass inline-edit-$screen->post_type ";
    891905                echo $bulk ? "bulk-edit-row bulk-edit-row-$hclass bulk-edit-$screen->post_type" : "quick-edit-row quick-edit-row-$hclass inline-edit-$screen->post_type";
    892906        ?>" style="display: none"><td colspan="<?php echo $col_count; ?>">