wp/wp-admin/upload.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
equal deleted inserted replaced
21:48c4eec2b7e6 22:8c2e4d02f4ef
   210 		<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
   210 		<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
   211 
   211 
   212 		<?php
   212 		<?php
   213 		if ( current_user_can( 'upload_files' ) ) {
   213 		if ( current_user_can( 'upload_files' ) ) {
   214 			?>
   214 			?>
   215 			<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html__( 'Add New Media File' ); ?></a>
   215 			<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action aria-button-if-js"><?php echo esc_html__( 'Add Media File' ); ?></a>
   216 			<?php
   216 			<?php
   217 		}
   217 		}
   218 		?>
   218 		?>
   219 
   219 
   220 		<hr class="wp-header-end">
   220 		<hr class="wp-header-end">
   417 <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
   417 <h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
   418 
   418 
   419 <?php
   419 <?php
   420 if ( current_user_can( 'upload_files' ) ) {
   420 if ( current_user_can( 'upload_files' ) ) {
   421 	?>
   421 	?>
   422 	<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add New Media File' ); ?></a>
   422 	<a href="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="page-title-action"><?php echo esc_html__( 'Add Media File' ); ?></a>
   423 						<?php
   423 						<?php
   424 }
   424 }
   425 
   425 
   426 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
   426 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
   427 	echo '<span class="subtitle">';
   427 	echo '<span class="subtitle">';