Bug – `function_exists()` missing from `yt_site_top_bar()`

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: resolved
Viewing 4 reply threads
  • Author
    Posts
    • #6147

      I would like to customize the layout markup for the site top bar, most of the interface functions in the theme-interface.php include are wrapped with a if ( !function_exists( '<yt_interface_function_name>' ) ) : so the function can be overridden in child themes. This is wonderful, but it’s missing around the yt_site_top_bar function, approximately on line 30.

      Expected code:

      if ( !function_exists( 'yt_site_top_bar' ) ) :
      /**
       * Top bar
       *
       * @since 1.0.3
       */
      function yt_site_top_bar() {
          // ... function code
      }
      endif;

      Actual code:

      /**
       * Top bar
       *
       * @since 1.0.3
       */
      function yt_site_top_bar() {
          // ... function code
      }

      Thanks.

    • #6165

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #6339

      Who said I didn’t? My report is on an inconsistency in the Sparkle methodology, not that I couldn’t solve the problem. Please feel free to mark as wontfix so I can know not to expect this to change in the future.

    • #6353

      Max
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #7663

      Just updated to the latest release (1.0.4.4) and saw this was added. Yay! Of course it’s need is probably nullified by the new templating (which I LOVE!) for theme functions. Thanks!

Viewing 4 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.