Make WordPress Core

Ticket #33495: edit-form-advanced.diff

File edit-form-advanced.diff, 476 bytes (added by grvrulz, 9 years ago)
  • wp-admin/edit-form-advanced.php

     
    544544?>
    545545        <div id="edit-slug-box" class="hide-if-no-js">
    546546        <?php
    547                 if ( $has_sample_permalink )
     547                if ( $has_sample_permalink  && ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) )
    548548                        echo $sample_permalink_html;
    549549        ?>
    550550        </div>