Making WordPress.org

Opened 3 months ago

Last modified 3 months ago

#7691 new defect (bug)

Strict comparison operator missing with post get_post_type() check

Reported by: deepakrohilla's profile deepakrohilla Owned by:
Milestone: Priority: lowest
Component: Jobs (jobs.wordpress.net) Keywords: has-patch
Cc:

Description

Strict check missing in post type check in jobswp theme.
it should be <?php if ( 'post' === get_post_type() ) : ?> but currently it is <?php if ( 'post' == get_post_type() ) : ?>

Attachments (1)

job.PNG (36.9 KB) - added by deepakrohilla 3 months ago.

Download all attachments as: .zip

Change History (3)

@deepakrohilla
3 months ago

This ticket was mentioned in PR #339 on WordPress/wordpress.org by @deepakrohilla.


3 months ago
#1

  • Keywords has-patch added

#2 @dd32
3 months ago

  • Priority changed from high to lowest

Strict checks are not always required, loose comparisons are often better in non-security scenarios. Marking as low-priority.

Note: See TracTickets for help on using tickets.