jakemackie / wordpress

A full stack web social platform as a way of learning Wordpress
2 stars 0 forks source link

Revert to original Wordpress Structure #14

Open alfiephillips opened 3 weeks ago

alfiephillips commented 3 weeks ago

Summary

We need to revert our project to the original WordPress structure to ensure compatibility and simplicity. This will facilitate smoother development and debugging processes and make the project easier to manage.

Objectives

  1. Revert to Original WordPress Structure:

    • Restore the default WordPress hierarchal structure.
  2. Ensure Compatibility:

    • Ensure that the WordPress installation is compatible with XAMPP and any other development environments. Wordpress Installation here.
  3. Simplify Development Workflow:

    • Make the development process straightforward without the need for complex directory structures. This will be featured in the future to ensure our project is scalable and an easier codebase to manage - however for now this is redundant during the development process.

Original WordPress Structure

project-root/

index.php we-config.php wp-settings.php wp-load.php wp-blog-header.php .htaccess

Task List

  1. Restore Directory Structure:

    • Place all WordPress core files back into the root directory as per the default WordPress structure.
  2. Move Files:

    • Ensure that wp-admin, wp-content, and wp-includes directories are in the root directory.
    • Place index.php, wp-config.php, wp-settings.php, wp-load.php, wp-blog-header.php, and .htaccess in the root directory.
  3. Update Configuration:

    • Ensure wp-config.php is properly configured with the database details and any other necessary configurations.
  4. Verify Functionality:

    • Test the site locally using XAMPP to ensure everything works as expected.
    • Check for broken links, missing files, or any errors in the server logs.
  5. Update Documentation:

    • Document the setup instructions or README files to reflect the original structure.
    • Provide clear instructions on how to run the site locally and how to deploy it to production.

THIS IS A HIGH PRIORITY ISSUE

jakemackie commented 3 weeks ago

Good issue 😎

alfiephillips commented 3 weeks ago

@jakemackie Are you able to do this ticket and then send me over a zip file of the new structure so we're both working with the exact same core files? Then we can move onto seperate tickets as it wouldn't be efficient for us both to do this issue as it's just re-organising. I believe you've opened up a branch fix for this?

jakemackie commented 3 weeks ago

Yes - we'll see about today, if not definitely tomorrow