Changeset 5152
- Timestamp:
- 03/31/2007 07:30:18 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-functions.php
r5119 r5152 1774 1774 if ( $plugins_dir ) { 1775 1775 while (($file = $plugins_dir->read() ) !== false ) { 1776 if ( preg_match( '|^\.+$|', $file ))1776 if ( substr($file, 0, 1) == '.' ) 1777 1777 continue; 1778 1778 if ( is_dir( $plugin_root.'/'.$file ) ) { … … 1780 1780 if ( $plugins_subdir ) { 1781 1781 while (($subfile = $plugins_subdir->read() ) !== false ) { 1782 if ( preg_match( '|^\.+$|', $subfile ))1782 if ( substr($subfile, 0, 1) == '.' ) 1783 1783 continue; 1784 if ( preg_match( '|\.php$|', $subfile ))1784 if ( substr($subfile, -4) == '.php' ) 1785 1785 $plugin_files[] = "$file/$subfile"; 1786 1786 } 1787 1787 } 1788 1788 } else { 1789 if ( preg_match( '|\.php$|', $file ))1789 if ( substr($file, -4) == '.php' ) 1790 1790 $plugin_files[] = $file; 1791 1791 }
Note: See TracChangeset
for help on using the changeset viewer.