Skip to content

Commit bdde354

Browse files
committed
Merge branch 'nb81dev'
2 parents c6a61d8 + 273006d commit bdde354

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This is NetBeans plugin for WordPress.
2828
- create a .htaccess file for permalink
2929
- create a new child theme action (create a style.css for child theme)
3030

31-
### Impotant Files
31+
### Important Files
3232
It contains wp-config.php
3333

3434
### Create New WordPress Project

manifest.mf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Manifest-Version: 1.0
22
OpenIDE-Module: org.netbeans.modules.php.wordpress
33
OpenIDE-Module-Layer: org/netbeans/modules/php/wordpress/resources/layer.xml
44
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/php/wordpress/Bundle.properties
5-
OpenIDE-Module-Specification-Version: 0.8.1
5+
OpenIDE-Module-Specification-Version: 0.8.2
66
OpenIDE-Module-Install: org/netbeans/modules/php/wordpress/WordPressModuleInstall.class

src/org/netbeans/modules/php/wordpress/ConfigurationFiles.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ public final class ConfigurationFiles extends FileChangeAdapter implements Impor
6868
// @GuardedBy("this")
6969
private boolean isInitialized = false;
7070
private static final String WP_CONFIG_PHP = "wp-config.php"; // NOI18N
71+
private static final String HTACCESS = ".htaccess"; // NOI18N
72+
private static final String[] CONFIG_FILES = {
73+
WP_CONFIG_PHP,
74+
HTACCESS
75+
};
7176

7277
public ConfigurationFiles(PhpModule phpModule) {
7378
assert phpModule != null;
@@ -79,9 +84,11 @@ public Collection<FileInfo> getFiles() {
7984
FileObject wordPressRoot = getWordPressRoot();
8085
List<FileInfo> files = new ArrayList<>();
8186
if (wordPressRoot != null) {
82-
FileObject config = wordPressRoot.getFileObject(WP_CONFIG_PHP);
83-
if (config != null) {
84-
files.add(new FileInfo(config));
87+
for (String configFile : CONFIG_FILES) {
88+
FileObject config = wordPressRoot.getFileObject(configFile);
89+
if (config != null) {
90+
files.add(new FileInfo(config));
91+
}
8592
}
8693
}
8794
return files;

0 commit comments

Comments
 (0)