Make WordPress Core


Ignore:
Timestamp:
09/20/2013 08:30:13 PM (12 years ago)
Author:
helen
Message:

Allow the "Add New" URL on post edit screens to be filtered via admin_url(). props SergeyBiryukov, jeremyfelt, c3mdigital. fixes #18504.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r25461 r25527  
    316316echo esc_html( $title );
    317317if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) )
    318     echo ' <a href="' . esc_url( $post_new_file ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
     318    echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    319319?></h2>
    320320<?php if ( $notice ) : ?>
Note: See TracChangeset for help on using the changeset viewer.