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' );
}