Skip to content

Commit

Permalink
Merge pull request #145 from vektor-inc/fix/wp5.6
Browse files Browse the repository at this point in the history
[Fix]wp 5.6
  • Loading branch information
naogify committed Dec 7, 2020
2 parents 8f905f5 + 29483f0 commit 4a10140
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/vk-blocks/vk-blocks-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,12 @@ function vkblocks_blocks_categories( $categories, $post ) {
if ( ! function_exists( 'vkblocks_set_wp_version' ) ) {
function vkblocks_set_wp_version() {
global $wp_version;

// RC版の - を削除
$_wp_version =strstr($wp_version,'-',true);

echo '<script>',
'var wpVersion = "' . $wp_version . '";',
'var wpVersion = "' . $_wp_version . '";',
'</script>';
}
add_action( 'admin_head', 'vkblocks_set_wp_version', 10, 0 );
Expand Down

0 comments on commit 4a10140

Please sign in to comment.