Make WordPress Core

Ticket #37535: 37535-01.patch

File 37535-01.patch, 600 bytes (added by Jonnyauk, 9 years ago)

I like this idea, would be improve UX for content editors (esp as there is no hook for developers to insert it, so a patch to core is the only way to achieve this)

  • wp-admin/edit.php

    diff --git a/wp-admin/edit.php b/wp-admin/edit.php
    index 59cb4f1..200da05 100644
    a b if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { 
    311311?></h1>
    312312
    313313<?php
     314// Output post type description if we have one:
     315if ( property_exists( $post_type_object, 'description' ) && !empty( $post_type_object->description ) ) {
     316        echo '<p class="page-title-description">' . esc_html( $post_type_object->description ) . '</p>';
     317}
     318
    314319// If we have a bulk message to issue:
    315320$messages = array();
    316321foreach ( $bulk_counts as $message => $count ) {