Issues (311)

template-parts/content-none.php (9 issues)

Labels
Severity
1
<?php
2
/**
3
 * Template part for displaying a message that posts cannot be found
4
 *
5
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
6
 *
7
 * @package DesignFly
8
 */
9
10
?>
11
12
<section class="no-results not-found">
13
	<header class="page-header">
14
		<h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'designfly' ); ?></h1>
0 ignored issues
show
The function esc_html_e was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

14
		<h1 class="page-title"><?php /** @scrutinizer ignore-call */ esc_html_e( 'Nothing Found', 'designfly' ); ?></h1>
Loading history...
15
	</header><!-- .page-header -->
16
17
	<div class="page-content">
18
		<?php
19
		if ( is_home() && current_user_can( 'publish_posts' ) ) :
0 ignored issues
show
The function current_user_can was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
		if ( is_home() && /** @scrutinizer ignore-call */ current_user_can( 'publish_posts' ) ) :
Loading history...
The function is_home was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
		if ( /** @scrutinizer ignore-call */ is_home() && current_user_can( 'publish_posts' ) ) :
Loading history...
20
21
			printf(
22
				'<p>' . wp_kses(
0 ignored issues
show
The function wp_kses was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
				'<p>' . /** @scrutinizer ignore-call */ wp_kses(
Loading history...
23
					/* translators: 1: link to WP admin new post page. */
24
					__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'designfly' ),
0 ignored issues
show
The function __ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
					/** @scrutinizer ignore-call */ 
25
     __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'designfly' ),
Loading history...
25
					array(
26
						'a' => array(
27
							'href' => array(),
28
						),
29
					)
30
				) . '</p>',
31
				esc_url( admin_url( 'post-new.php' ) )
0 ignored issues
show
The function admin_url was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

31
				esc_url( /** @scrutinizer ignore-call */ admin_url( 'post-new.php' ) )
Loading history...
The function esc_url was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

31
				/** @scrutinizer ignore-call */ 
32
    esc_url( admin_url( 'post-new.php' ) )
Loading history...
32
			);
33
34
		elseif ( is_search() ) :
0 ignored issues
show
The function is_search was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

34
		elseif ( /** @scrutinizer ignore-call */ is_search() ) :
Loading history...
35
			?>
36
37
			<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'designfly' ); ?></p>
38
			<?php
39
			get_search_form();
0 ignored issues
show
The function get_search_form was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

39
			/** @scrutinizer ignore-call */ 
40
   get_search_form();
Loading history...
40
41
		else :
42
			?>
43
44
			<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'designfly' ); ?></p>
45
			<?php
46
			get_search_form();
47
48
		endif;
49
		?>
50
	</div><!-- .page-content -->
51
</section><!-- .no-results -->
52