WordPress.org

Ready to get started?Download WordPress

Forums

Does the WordPress database have fields siteurl and home incorrectly named? (5 posts)

  1. roadie
    Member
    Posted 2 years ago #

    In my version of WordPress (2.9.2), the wp-admin -> Settings -> General screen refers to "WordPress address (URL)" and "Blog address (URL)" while the text at http://codex.wordpress.org/Changing_The_Site_URL says:

    On the Settings->General screen in a single site installation of WordPress, there are two fields named "WordPress address (URL)" and "Site address (URL)". These are also known as the "Home" and "Site URL" settings. They are important settings, since they controls where WordPress thinks your site is located. They control the display of the URL in the admin section of your page as well as the front end, and are used throughout the WordPress code.

    In the wp-admin -> Settings -> General screen, if you have, e.g., the following:

    WordPress address (URL) http://faustino.local/wordpress
    Blog address (URL) http://faustino.local/roadsigns292
    Enter the address here if you want your blog homepage to be different from the directory you installed WordPress.

    then after doing this, phpMyAdmin says that in table wp_options

    siteurl contains  	http://faustino.local/wordpress
    home contains 	http://faustino.local/roadsigns292

    Viewing the blog at http://faustino.local/roadsigns292 and administering it at http://faustino.local/wordpress works as expected, but surely the names of the database fields are the wrong way round in relation to what the codex says?

  2. kostas123
    Member
    Posted 2 years ago #

    In my version of WordPress (2.9.2)

    Your WordPress release is v2.9 (the current version is v3.2.1) .
    Each WordPress release has a slightly different database schema >>>>

  3. roadie
    Member
    Posted 2 years ago #

    @kostas123

    But ISTR http://codex.wordpress.org/Changing_The_Site_URL had the same text back when 2.9.2 was the latest version.

  4. kostas123
    Member
    Posted 2 years ago #

    Yes you are right .
    The Codex documentation can confuse/mislead us .
    On WordPress 3.2.1 :

    1) The Frond-end page is mentioned on the General-Settings panel as Side Address(URL) and on Mysql as home .
    2)The admin panel is mentioned on the General-Settings panel as WordPress address(URL) and on Mysql as siteurl .

  5. roadie
    Member
    Posted 2 years ago #

    If I knew who maintained the http://codex.wordpress.org/Changing_The_Site_URL page, I would send them an email asking them to put in a footnote about this.

Topic Closed

This topic has been closed to new replies.

About this Topic