[wp-trac] [WordPress Trac] #41329: Undefined constants in WP_class Filesystem_Direct

WordPress Trac noreply at wordpress.org
Fri Jul 14 15:09:04 UTC 2017


#41329: Undefined constants in WP_class Filesystem_Direct
-----------------------------------------+-----------------------------
 Reporter:  nabil_kadimi                 |      Owner:
     Type:  defect (bug)                 |     Status:  new
 Priority:  normal                       |  Milestone:  Awaiting Review
Component:  Filesystem API               |    Version:  trunk
 Severity:  normal                       |   Keywords:
  Focuses:  administration, performance  |
-----------------------------------------+-----------------------------
 I'm using the WordPress filesystem classes, it seems the classes assume
 some constants are always defined.

 Anyways, the errors:

 {{{
  Notice: Use of undefined constant FS_CHMOD_FILE - assumed 'FS_CHMOD_FILE'
 in /var/www/public/wp-admin/includes/class-wp-filesystem-direct.php on
 line 152

 Notice: Use of undefined constant FS_CHMOD_FILE - assumed 'FS_CHMOD_FILE'
 in /var/www/public/wp-admin/includes/class-wp-filesystem-direct.php on
 line 152

 Notice: Use of undefined constant FS_CHMOD_FILE - assumed 'FS_CHMOD_FILE'
 in /var/www/public/wp-admin/includes/class-wp-filesystem-direct.php on
 line 152
 }}}

 I thought I would suggest a patch...

 Thanks,
 Nabil

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41329>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list