PluginProbe
CSS & JavaScript Toolbox / 9.2
CSS & JavaScript Toolbox v9.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | models/block-templates.php +0 -21 11.79.2 View file →
@@ -10,29 +10,8 @@
10 10 *
11 11 */
12 12 class CJTBlockTemplatesModel extends CJTHookableClass {
13 13
14 -
15 - /**
16 - * put your comment there...
17 - *
18 - * @param mixed $blockId
19 - */
20 - public static function getLinkedTemplatesCount($blockId) {
21 -
22 - global $wpdb;
23 -
24 - $query = " SELECT count(*)
25 - FROM {$wpdb->prefix}cjtoolbox_block_templates
26 - WHERE blockId = %d;";
27 -
28 - $query = $wpdb->prepare($query, $blockId);
29 -
30 - $count = $wpdb->get_var($query);
31 -
32 - return $count;
33 - }
34 -
35 14 /**
36 15 * Check weather a template is linked to specific block.
37 16 *
38 17 * Check database block_templates table for record with the given ids.