Skip to content

Commit e0d26be

Browse files
committed
Reorganize CSS files to includes/frontend/css/
- Move all CSS files from css/ to includes/frontend/css/ - Update CSS path references in class-styles-handler.php and class-blocks.php - Add security index.php to prevent directory listing - Version bump 4.2.3-beta2 to 4.2.3
1 parent b9e757c commit e0d26be

26 files changed

Lines changed: 8 additions & 8 deletions

contextual-related-posts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Plugin Name: Contextual Related Posts
1616
* Plugin URI: https://webberzone.com/plugins/contextual-related-posts/
1717
* Description: Display related posts on your website or in your feed. Increase reader retention and reduce bounce rates.
18-
* Version: 4.2.3-beta2
18+
* Version: 4.2.3
1919
* Author: WebberZone
2020
* Author URI: https://webberzone.com
2121
* License: GPL-2.0+

includes/admin/class-settings-wizard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public function get_translation_strings() {
198198
'previous_step' => __( 'Previous Step', 'contextual-related-posts' ),
199199
'finish_setup' => __( 'Finish Setup', 'contextual-related-posts' ),
200200
'skip_wizard' => __( 'Skip Wizard', 'contextual-related-posts' ),
201-
/* translators: %s: Search query. */
201+
/* translators: %s: search term */
202202
'tom_select_no_results' => __( 'No results found for "%s"', 'contextual-related-posts' ),
203203
'steps_nav_aria_label' => __( 'Setup Wizard Steps', 'contextual-related-posts' ),
204204
/* translators: %1$d: Current step number, %2$d: Total number of steps */

includes/admin/class-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ public function admin_enqueue_scripts( $hook ) {
17641764
'nonce' => wp_create_nonce( self::$prefix . '_taxonomy_search_tom_select' ),
17651765
'endpoint' => 'category',
17661766
'strings' => array(
1767-
/* translators: %s: search keyword. */
1767+
/* translators: %s: search term */
17681768
'no_results' => esc_html__( 'No results found for "%s"', 'contextual-related-posts' ),
17691769
),
17701770
)

includes/frontend/blocks/class-blocks.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static function render_block_related_posts( $attributes ) {
114114

115115
wp_register_style(
116116
"crp-style-{$style}",
117-
plugins_url( "css/{$style}.min.css", WZ_CRP_PLUGIN_FILE ),
117+
plugins_url( "includes/frontend/css/{$style}.min.css", WZ_CRP_PLUGIN_FILE ),
118118
array(),
119119
WZ_CRP_VERSION
120120
);
@@ -156,14 +156,14 @@ public static function enqueue_block_editor_assets() {
156156
$style = $style_array['name'];
157157
$extra_css = $style_array['extra_css'];
158158

159-
$pro = '';
159+
$base_path = 'includes/frontend/css/';
160160
if ( false !== strpos( $style, '-pro' ) ) {
161-
$pro = 'pro/';
161+
$base_path = 'includes/pro/frontend/css/';
162162
}
163163

164164
wp_enqueue_style(
165165
"crp-block-editor-{$style}",
166-
plugins_url( "css/{$pro}{$style}{$file_prefix}.css", WZ_CRP_PLUGIN_FILE ),
166+
plugins_url( "{$base_path}{$style}{$file_prefix}.css", WZ_CRP_PLUGIN_FILE ),
167167
array( 'wp-edit-blocks' ),
168168
WZ_CRP_VERSION
169169
);

includes/frontend/class-styles-handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static function register_styles() {
5050

5151
wp_register_style(
5252
"crp-style-{$style}",
53-
plugins_url( "css/{$style}.min.css", WZ_CRP_PLUGIN_FILE ),
53+
plugins_url( "includes/frontend/css/{$style}.min.css", WZ_CRP_PLUGIN_FILE ),
5454
array(),
5555
WZ_CRP_VERSION
5656
);

0 commit comments

Comments
 (0)