Title: trekb's Replies | WordPress.org

---

# trekb

  [  ](https://wordpress.org/support/users/trekb/)

 *   [Profile](https://wordpress.org/support/users/trekb/)
 *   [Topics Started](https://wordpress.org/support/users/trekb/topics/)
 *   [Replies Created](https://wordpress.org/support/users/trekb/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/trekb/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/trekb/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/trekb/engagements/)
 *   [Favorites](https://wordpress.org/support/users/trekb/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] Redux Framework Notice, don't know how to get rid of it](https://wordpress.org/support/topic/redux-framework-notice-dont-know-how-to-get-rid-of-it/)
 *  [trekb](https://wordpress.org/support/users/trekb/)
 * (@trekb)
 * [10 years ago](https://wordpress.org/support/topic/redux-framework-notice-dont-know-how-to-get-rid-of-it/#post-6719563)
 * The problem is due to a bug in redux/framework.php (included in the Pinnacle 
   theme). In two places, the strpos function is being used incorrectly by checking
   its return value against ‘**>= 0**‘ rather than ‘**!== false**‘ (note: there 
   must be the extra equals, i.e. not ‘!=’). It’s an easy mistake to make. The condition
   will always be true if the check is made. Thus, the result is that if there is
   anything in the admin_bar_links or share_icons options a warning message will
   be printed. That’s why removing the share_icons data as previously suggested 
   resulted in the message disappearing.
 * The offending lines for the version I have (downloaded with Pinnacle 2016-05-
   21) are:
 *     ```
       3879: if (strpos(strtolower($y), 'redux') >= 0) {
       ...
       3894: if (strpos(strtolower($y), 'redux') >= 0) {
       ```
   
 * I suggest that the $y value be included in the error message as it might make
   it easier for people to discover the cause should this happen in earnest. That
   would not only help people to understand and rectify the problem, but would clearly
   have demonstrated the existence of the bug. For example, in my case:
 * Redux Framework Notice: There are references to the Redux Framework support site
   in your config’s share_icons argument: for key [url] found “redux” in [https://
   www.facebook.com/KadenceThemes]…
 * P.S. Another (possibly harmless) incorrect usage of strpos (should be !== rather
   than !=):
    redux/inc/class.redux_admin_notices.php `55: if ( strpos( $notice['
   type'], 'redux-message' ) <strong>!= false</strong> ) {`
 * FYI: There is also a problem in Pinnacle whereby it performs the get_header action
   twice. This is because it calls do_action(‘get_header’) in header.php, but that
   action has already been invoked before loading header.php.

Viewing 1 replies (of 1 total)