Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#35238 closed enhancement (fixed)

Describe the difference between site_url and home_url

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

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 9 years ago.

Download all attachments as: .zip

Change History (7)

@ericlewis
9 years ago

#1 @johnbillion
9 years ago

  • Type changed from defect (bug) to enhancement

#2 @ericlewis
9 years ago

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

#3 @DrewAPicture
9 years ago

  • Owner set to DrewAPicture
  • Status changed from new to reviewing

#4 @ericlewis
9 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
9 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
9 years ago

  • Resolution set to fixed
  • Status changed from reviewing to 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.