[UIXPRESS] Deprecation notice with WP_CLI

stripos(): Passing null to parameter #1 ($haystack) of type string is deprecate

Throwed by /uixpress/admin/src/Pages/FrontEnd.php

at line 28:

  public function maybe_load_actions($admin_bar) {
    $currentURL = self::current_url();
    if (!is_admin() && !is_login() && stripos($currentURL, wp_login_url()) === false && stripos($currentURL, admin_url()) === false) {
      add_action("wp_enqueue_scripts", ["UiXpress\Pages\FrontEnd", "load_toolbar_styles"]);
      add_action("admin_bar_menu", [$this, "logo_actions"]);
    }
  }

Please authenticate to join the conversation.

Upvoters
Status

Rejected

Board

πŸ› Bug Reports

Date

Over 1 year ago

Author

Tanguy Magnaudet

Subscribe to post

Get notified by email when there are changes.