Custom Fields
Re-Envisioned
Support MB User Meta MB User Profile not working because of latest MB User Meta

  • Creator
    Topic
  • #17927
    Resolved luisdelcid
    Participant

    enqueue() method is not loading styles and scripts on frontend anymore

    MB User Meta 1.2.7 (not working)
    meta-box-aio/vendor/meta-box/mb-user-meta/src/MetaBox.php

    public function enqueue() {
      if ( ! $this->is_edit_screen() ) {
        return;
      }
      parent::enqueue(); // (not working)
      list( , $url ) = RWMB_Loader::get_path( dirname( __DIR__ ) );
      wp_enqueue_style( 'mb-user-meta', $url . 'css/user-meta.css', '', '1.2.6' );
    }

    MB User Meta 1.2.5 (works like a charm)
    meta-box-aio/vendor/meta-box/mb-user-meta/src/meta-box.php

    public function enqueue() {
      parent::enqueue(); // (works like a charm)
      list( , $url ) = RWMB_Loader::get_path( dirname( dirname( __FILE__ ) ) );
      if ( ! $this->is_edit_screen() ) {
        return;
      }
      wp_enqueue_style( 'mb-user-meta', $url . 'css/user-meta.css', '', '1.2.3' );
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #17930
    Ryan Lauritsen
    Participant

    I can confirm that this is also true on our site. Thanks for tracking it down and posting this @luisdelcid

    #17943
    Anh Tran
    Keymaster

    Hi guys, thanks for your feedback. I’ve just fixed it in the latest version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.