File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 138138
139139 $ actions = "<a href=' " . esc_url ( home_url () ) . "'> " . __ ( 'Visit ' ) . '</a> ' ;
140140
141+ // @phpstan-ignore if.alwaysTrue (Capabilities are site-specific)
141142 if ( current_user_can ( 'read ' ) ) {
142143 $ actions .= " | <a href=' " . esc_url ( admin_url () ) . "'> " . __ ( 'Dashboard ' ) . '</a> ' ;
143144 }
Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ function () {
210210 <h1 class="wp-heading-inline"><?php echo esc_html ( $ title ); ?> </h1>
211211
212212 <?php
213+ // @phpstan-ignore if.alwaysTrue (Confidence check in case the file is required instead of accessed)
213214 if ( current_user_can ( 'upload_files ' ) ) {
214215 ?>
215216 <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>
@@ -417,10 +418,11 @@ function () {
417418<h1 class="wp-heading-inline"><?php echo esc_html ( $ title ); ?> </h1>
418419
419420<?php
421+ // @phpstan-ignore if.alwaysTrue (Confidence check in case the file is required instead of accessed)
420422if ( current_user_can ( 'upload_files ' ) ) {
421423 ?>
422424 <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
425+ <?php
424426}
425427
426428if ( isset ( $ _REQUEST ['s ' ] ) && strlen ( $ _REQUEST ['s ' ] ) ) {
You can’t perform that action at this time.
0 commit comments