Skip to content

Commit 3316c66

Browse files
Comply with plugin guidelines (correct Hardcoded plugin folder name)
https://codex.wordpress.org/Function_Reference/plugins_url
1 parent ceb693b commit 3316c66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

translation-stats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function ts_register_plugin_styles( $hook ) {
4949
if ( 'plugins.php' != $hook ) {
5050
return;
5151
};
52-
wp_register_style( 'translation-stats', plugins_url( 'translation-stats/css/admin.css' ), false, '0.5.0' );
52+
wp_register_style( 'translation-stats', plugins_url( 'css/admin.css', __FILE__ ), false, '0.6.4' );
5353
wp_enqueue_style( 'translation-stats' );
5454
// Add Dark Mode style sheet.
5555
// https://github.com/danieltj27/Dark-Mode/wiki/Help:-Plugin-Compatibility-Guide
@@ -61,7 +61,7 @@ function ts_register_plugin_styles( $hook ) {
6161
* Register and enqueue Dark Mode style sheet.
6262
*/
6363
function ts_register_plugin_styles_dark_mode() {
64-
wp_register_style( 'translation-stats-dark-mode', plugins_url( 'translation-stats/css/admin-dark-mode.css' ), false, '0.5.0' );
64+
wp_register_style( 'translation-stats-dark-mode', plugins_url( 'css/admin-dark-mode.css', __FILE__ ), false, '0.6.4' );
6565
wp_enqueue_style( 'translation-stats-dark-mode' );
6666
}
6767

0 commit comments

Comments
 (0)