Skip to content

[DevHub] Trailing space in FTP_PLUGIN_DIR constant name on wp-config.php page #2519

Closed

Description

@maheshbohara

Issue Description

The FTP_PLUGIN_DIR example has a space inside the constant name.

URL of the Page with the Issue

https://developer.wordpress.org/apis/wp-config-php/#wordpress-upgrade-constants

Section of Page with the issue

WordPress Upgrade Constants

Why is this a problem?

define( 'FTP_PLUGIN_DIR ', ... ) defines a constant called FTP_PLUGIN_DIR (with a space), so the real FTP_PLUGIN_DIR is never set. Anyone who copies the example gets a setting that silently does nothing.

Suggested Fix

define( 'FTP_PLUGIN_DIR', '/path/to/wordpress/wp-content/plugins/' );

Activity

  1. github-actions commented on Oct 5, 2026

    @github-actions

    Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

  2. changed the title [-]Trailing space in `FTP_PLUGIN_DIR` constant name on wp-config.php page[/-] [+][DevHub] Trailing space in `FTP_PLUGIN_DIR` constant name on wp-config.php page[/+] on Oct 8, 2026
  3. andreawetzel commented on Oct 9, 2026

    @andreawetzel
    Collaborator

    Thanks for the edit. This is updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions