diff --git a/admin/class-reuna-glossario-admin.php b/admin/class-reuna-glossario-admin.php index 74873dc..f019dbc 100644 --- a/admin/class-reuna-glossario-admin.php +++ b/admin/class-reuna-glossario-admin.php @@ -120,9 +120,12 @@ class Reuna_Glossario_Admin { * * @since 1.0.0 */ - public function display_term_shortcode_after_title() + public function display_term_shortcode_after_title($post) { - global $post; + if (get_post_type($post) !== 'glossario') { + return; + } + require (plugin_dir_path(__FILE__) . 'partials/shortcode-metabox.php'); } diff --git a/reuna-glossario.php b/reuna-glossario.php index 023c27f..7b4a44d 100644 --- a/reuna-glossario.php +++ b/reuna-glossario.php @@ -16,7 +16,7 @@ * Plugin Name: Instituto Reúna - Glossário * Plugin URI: https://horizontes.info * Description: Implementa função de glossário via shortcode - * Version: 1.0.0 + * Version: 1.1.0 * Author: Horizontes Coop. * Author URI: https://horizontes.info * License: GPL-2.0+ @@ -35,7 +35,7 @@ if ( ! defined( 'WPINC' ) ) { * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define( 'REUNA_GLOSSARIO_VERSION', '1.0.0' ); +define( 'REUNA_GLOSSARIO_VERSION', '1.1.0' ); /** * Require the Composer autoloader