mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- WPCS for defined constants;
* um_url -> UM_URL * um_path -> UM_PATH * um_plugin -> UM_PLUGIN * ultimatemember_version -> UM_VERSION * ultimatemember_plugin_name -> UM_PLUGIN_NAME
This commit is contained in:
@@ -131,7 +131,7 @@ if ( ! class_exists( 'um\core\Blocks' ) ) {
|
||||
|
||||
foreach ( $blocks as $k => $block_data ) {
|
||||
$block_type = str_replace( 'um-block/', '', $k );
|
||||
register_block_type_from_metadata( um_path . 'includes/blocks/' . $block_type, $block_data );
|
||||
register_block_type_from_metadata( UM_PATH . 'includes/blocks/' . $block_type, $block_data );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user