WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] File naming conventions (3 posts)

  1. pizdin_dim
    Member
    Posted 9 years ago #

    Hi all, forgive me if this is off-topic.

    I've just started looking at what seems to be a fantastic piece of software and I have a question on the file-naming conventions:

    Why are some scripts prefixed with "wp-" (wp-blog-header.php, wp-login.php, wp-pass.php, etc) and some (classes.php, class-snoopy.php, functions-post.php, vars.php, streams.php, etc) are not?

  2. skippy
    Member
    Posted 9 years ago #

    Top-level files are prefixed with wp- so that you can install WordPress in the root of your site along with other files, without clobbering anything.

    The directories that start with wp- (like wp-includes and wp-admin) contain the prefix to note that they're WordPress-related. Files inside these directories should be inferred to be WordPress files, and as such do not require the prefix.

  3. pizdin_dim
    Member
    Posted 9 years ago #

    A nice, concise explanation which makes sense. Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic