PluginProbe
Snippet Shortcodes / 5.0a
Snippet Shortcodes v5.0a
5.2.1 5.2 5.1.8 5.1.6 5.1.7 5.1.5 trunk 1.0 1.1 1.2 1.3 1.3.1 1.4 1.5 1.5.1 1.6 1.6.1 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.8 2.0 2.0.1 All 74 releases
← All changes | includes/hooks.php +2 -4 5.2.15.0a View file →
@@ -17,9 +17,9 @@
17 17 // Add sub menus
18 18 add_submenu_page( 'sh-cd-shortcode-variables-main-menu', __( 'Your Shortcodes', SH_CD_SLUG ), __( 'Your shortcodes', SH_CD_SLUG ), $allowed_viewer, 'sh-cd-shortcode-variables-your-shortcodes', 'sh_cd_pages_your_shortcodes');
19 19 add_submenu_page( 'sh-cd-shortcode-variables-main-menu', __( 'Premade Shortcodes', SH_CD_SLUG ), __( 'Premade shortcodes', SH_CD_SLUG ), $allowed_viewer, 'sh-cd-shortcode-variables-sub-premade', 'sh_cd_premade_shortcodes_page');
20 20
21 - add_submenu_page( 'sh-cd-shortcode-variables-main-menu', __( 'Import / Export', SH_CD_SLUG ), __( 'Import / Export', SH_CD_SLUG ), 'manage_options', 'sh-cd-import', 'sh_cd_admin_page_import' );
21 + add_submenu_page( 'sh-cd-shortcode-variables-main-menu', __( 'Import shortcodes', SH_CD_SLUG ), __( 'Import shortcodes', SH_CD_SLUG ), 'manage_options', 'sh-cd-import', 'sh_cd_admin_page_import' );
22 22
23 23 if( false === sh_cd_is_premium_plugin_activated() ) {
24 24 add_submenu_page( 'sh-cd-shortcode-variables-main-menu', '<i class="fa-solid fa-star"></i> ' . __( 'Upgrade to Premium', SH_CD_SLUG ), '<i class="fa-solid fa-star"></i> ' . __( 'Get Premium', SH_CD_SLUG ), 'manage_options', 'sh-cd-shortcode-variables-upgrade', 'sh_cd_page_upgrade');
25 25 }
@@ -122,10 +122,8 @@
122 122 sh_cd_create_database_table();
123 123
124 124 sh_cd_create_database_table_multisite();
125 125
126 - sh_cd_create_database_table_revisions();
127 -
128 126 do_action( 'sh-cd-upgrade' );
129 127 }
130 128 }
131 129 add_action('admin_init', 'sh_cd_upgrade');
@@ -183,9 +181,9 @@
183 181 Ajax handler for toggling disable status of a shortcode
184 182 **/
185 183 function sh_cd_ajax_toggle_multisite() {
186 184
187 - if ( false === sh_cd_is_multisite_enabled() ) {
185 + if ( false === sh_cd_is_premium() ) {
188 186 wp_send_json( 'not-premium' );
189 187 }
190 188
191 189 check_ajax_referer( 'sh-cd-security', 'security' );