File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 315315<h2><?php
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 ) : ?>
321321<div id="notice" class="error"><p id="has-newer-autosave"><?php echo $ notice ?> </p></div>
Original file line number Diff line number Diff line change 231231<h2><?php
232232echo esc_html ( $ post_type_object ->labels ->name );
233233if ( current_user_can ( $ post_type_object ->cap ->create_posts ) )
234- echo ' <a href=" ' . esc_url ( $ post_new_file ) . '" class="add-new-h2"> ' . esc_html ( $ post_type_object ->labels ->add_new ) . '</a> ' ;
234+ echo ' <a href=" ' . esc_url ( admin_url ( $ post_new_file ) ) . '" class="add-new-h2"> ' . esc_html ( $ post_type_object ->labels ->add_new ) . '</a> ' ;
235235if ( ! empty ( $ _REQUEST ['s ' ] ) )
236236 printf ( ' <span class="subtitle"> ' . __ ('Search results for “%s” ' ) . '</span> ' , get_search_query () );
237237?> </h2>
You can’t perform that action at this time.
0 commit comments