MB User Profile not working because of latest MB User Meta

Support MB User Meta MB User Profile not working because of latest MB User MetaResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17927
    luisdelcidluisdelcid
    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' );
    }
    #17930
    Ryan LauritsenRyan Lauritsen
    Participant

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

    #17943
    Anh TranAnh Tran
    Keymaster

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

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