Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from bluehost/micah
Browse files Browse the repository at this point in the history
Remove reference to MM_BASE_URL
  • Loading branch information
wpscholar authored Aug 25, 2020
2 parents 362684e + dadad90 commit 6e3041b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function eig_module_gutenframe_register() {
if ( ! defined( 'EIG_GUTENFRAME_PYM_URL' ) ) {
define(
'EIG_GUTENFRAME_PYM_URL',
trailingslashit( MM_BASE_URL ) . 'vendor/bluehost/endurance-wp-module-gutenframe/assets/pym.js'
str_replace( WP_CONTENT_DIR, content_url(), __DIR__ ) . '/assets/pym.js'
);
}
}
Expand All @@ -40,12 +40,12 @@ function eig_module_gutenframe_register() {
* @return void
*/
function eig_module_gutenframe_load() {
if (
class_exists( 'EIG_Module_Gutenframe' )
&& is_user_logged_in()
&& current_user_can( 'edit_posts' )
&& is_admin()
) {
if (
class_exists( 'EIG_Module_Gutenframe' ) &&
is_user_logged_in() &&
current_user_can( 'edit_posts' ) &&
is_admin()
) {
new EIG_Module_Gutenframe();
}
}

0 comments on commit 6e3041b

Please sign in to comment.