wp-advads 1.0.23 → 1.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "wp-advads",
4
- "version": "1.0.23",
4
+ "version": "1.0.25",
5
5
  "description": "Create a Advanced Ads wordPress plugin eco system.",
6
6
  "author": {
7
7
  "name": "Shakeeb Ahmed",
@@ -42,8 +42,8 @@ export default (classname, options) => {
42
42
  const template = templateName(options);
43
43
  const namespace = classname.split('\\');
44
44
  const paths = classname.toLowerCase().split('\\');
45
- const filename = paths.pop() + '.php';
46
- const folder = path.join(getProjectRoot(), getSetting('paths.php'), paths.join('/'));
45
+ const filename = paths.pop().replace(/_/g, '-') + '.php';
46
+ const folder = path.join(getProjectRoot(), getSetting('paths.php'), paths.join('/'));;
47
47
 
48
48
  // Data
49
49
  const data = getSetting();