WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32450, comment 2


Ignore:
Timestamp:
05/22/2015 02:34:29 AM (5 years ago)
Author:
johnjamesjacoby
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32450, comment 2

    initial v1  
    44* Moves the guts of `get_site_by_path()` into a static `get()` method
    55* Includes a `get_instance()` method similar to `WP_Post::get_instance()`, but I don't see a practical use case for it yet
     6
     7This patch isn't very great, but is... something. We should iterate towards replacing `get_site_by_path()` usages with `new WP_Site( $args )` usages instead.