Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35238 closed enhancement (fixed)

Describe the difference between site_url and home_url

Reported by: ericlewis Owned by: DrewAPicture
Priority: normal Milestone: 4.5
Component: General Version: 0.71
Severity: normal Keywords: has-patch
Cc: Focuses: docs

Description

I find it hard to remember the difference between these two. Let's modify the inline docs appropriately.

Attachments (1)

35238.diff​ (1.6 KB ) - added by ericlewis 11 years ago.

Download all attachments as: .zip

Change History (7)

#1 @johnbillion
11 years ago

  • Type defect (bug) → enhancement

#2 @ericlewis
11 years ago

@DrewAPicture can you review my work here? Thanks :)

#3 @DrewAPicture
11 years ago

  • Owner set to DrewAPicture
  • Status new → reviewing

#4 @ericlewis
11 years ago

In 36408:

General: Document the difference between site_url() and home_url().

site_url() returns a url where WordPress application files are accessible (e.g. where the wp-admin/ folder resides). home_url() returns a url where the front-end of the WordPress site can be visited.

See #35238.

#5 @DrewAPicture
11 years ago

In 36494:

Docs: Slightly simplify the DocBlock summaries for home_url(), get_home_url(), site_url(), and get_site_url().

See #35238. See #32246.

#6 @DrewAPicture
11 years ago

  • Resolution → fixed
  • Status reviewing → closed

This seems covered. Closing as fixed, feel free to reopen if there's more to do here.

Note: See TracTickets for help on using tickets.