Plugin Directory

Changeset 2073823


Ignore:
Timestamp:
04/24/2019 08:26:14 AM (7 years ago)
Author:
wordpresshandbuch
Message:

Strict equality checks are better style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wh-eyecatcher/trunk/wh-eyecatcher.php

    r2073746 r2073823  
    6060    public function page_init() {
    6161        if (isset($_GET['page'])) {
    62             if (($_GET['page'] == 'wh-eyecatcher-page')) {
     62            if (($_GET['page'] === 'wh-eyecatcher-page')) {
    6363                register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_slogan' );
    6464                register_setting( 'wh_eyecatcher_option_group', 'wh_eyecatcher_style' );
     
    124124    public function show_eyecatcher() {
    125125        if (isset($_GET['page']) || (! is_admin())) {
    126             if (($_GET['page'] == 'wh-eyecatcher-page') || (! is_admin())) {
     126            if (($_GET['page'] === 'wh-eyecatcher-page') || (! is_admin())) {
    127127                echo '<div id="wh-eyecatcher" role="banner" class="wh-eyecatcher wh-eyecatcher-style" style="' . get_option('wh_eyecatcher_css') . '">' . get_option('wh_eyecatcher_slogan') . '</div>';
    128128            }
Note: See TracChangeset for help on using the changeset viewer.