PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 trunk All 48 releases
← All changes | app/CPT/FluentProducts.php +36 -20 1.3.21 → 1.6.5 View file →
@@ -40,13 +40,19 @@
40 40 $this->registerProductTaxonomies();
41 41 });
42 42
43 43 add_action('admin_enqueue_scripts', function () {
44 + $screen = get_current_screen();
45 + $isProductEditingScreen = $screen && $screen->post_type === 'fluent-products' && $screen->base === 'post';
46 +
44 47 if ($this->showStandaloneMenu) {
48 + if ($isProductEditingScreen && App::request()->get('custom-editor') === 'true') {
49 + wp_enqueue_style('wp-admin');
50 + $this->enqueueCustomEditorStyles();
51 + }
45 52 return;
46 53 }
47 - $screen = get_current_screen();
48 - $isProductEditingScreen = $screen && $screen->post_type === 'fluent-products' && $screen->base === 'post';
54 +
49 55 if (!$isProductEditingScreen) {
50 56 if ($screen && $screen->post_type === 'fluent-products' && ($screen->base == 'edit-tags' || $screen->base == 'term')) {
51 57 $this->customizeTaxonomyScreen();
52 58 }
@@ -55,27 +61,10 @@
55 61
56 62 // Make sure the default admin styles are enqueued
57 63 wp_enqueue_style('wp-admin');
58 64
59 - $custom_css =
60 - '#editor .editor-sidebar__panel .editor-post-summary .editor-post-trash,' .
61 - '#wpadminbar,' .
62 - '#adminmenu,' .
63 - '#adminmenuback,' .
64 - '#adminmenuwrap {' .
65 - 'display: none !important;' .
66 - '}' .
67 - '#wpbody-content .interface-interface-skeleton {' .
68 - 'left: 0 !important;' .
69 - 'top: 0 !important;' .
70 - '}' .
71 - '#wpcontent, #wpfooter {' .
72 - 'margin-left: 0 !important;' .
73 - 'margin-right: 0 !important;' .
74 - '}';
65 + $this->enqueueCustomEditorStyles();
75 66
76 - wp_add_inline_style('wp-admin', $custom_css);
77 -
78 67 wp_register_script('fluent-products-inline-js', '', [], FLUENTCART_VERSION, true);
79 68 wp_enqueue_script('fluent-products-inline-js');
80 69
81 70 $custom_js = "window.addEventListener('click', function (event) {
@@ -319,8 +308,35 @@
319 308 'view_item' => __('View Brand', 'fluent-cart'),
320 309 'not_found' => __('No Brand found', 'fluent-cart'),
321 310 ],
322 311 ]);
312 +
313 + // product-tags is deliberately NOT registered: FluentCart ships
314 + // categories and brands only (product decision 2026-08-06). The former
315 + // dead consumers (Product tag getters, shop shortcode tag= filter)
316 + // were removed with that decision.
317 + }
318 +
319 + private function enqueueCustomEditorStyles()
320 + {
321 + $custom_css =
322 + '#editor .editor-sidebar__panel .editor-post-summary .editor-post-trash,' .
323 + '#wpadminbar,' .
324 + '#adminmenu,' .
325 + '#adminmenuback,' .
326 + '#adminmenuwrap {' .
327 + 'display: none !important;' .
328 + '}' .
329 + '#wpbody-content .interface-interface-skeleton {' .
330 + 'left: 0 !important;' .
331 + 'top: 0 !important;' .
332 + '}' .
333 + '#wpcontent, #wpfooter {' .
334 + 'margin-left: 0 !important;' .
335 + 'margin-right: 0 !important;' .
336 + '}';
337 +
338 + wp_add_inline_style('wp-admin', $custom_css);
323 339 }
324 340
325 341 public function customizeTaxonomyScreen()
326 342 {