[wp-trac] [WordPress Trac] #28364: WordPress Entry Points (wp-load.php occurrences)

WordPress Trac noreply at wordpress.org
Mon Feb 9 06:49:49 UTC 2015


#28364: WordPress Entry Points (wp-load.php occurrences)
----------------------------+------------------------------
 Reporter:  szepe.viktor    |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  3.9.1
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------
Changes (by Denis-de-Bernardy):

 * keywords:  reporter-feedback =>


Comment:

 Replying to [comment:3 jeremyfelt]:
 > I guess my key misunderstanding is around this item. An example scenario
 of how current core code is not working or providing enough data would be
 great.

 It's "working." His complaint is that it's inconsistent and clunky.

 It's sometimes not obvious where to find the documentation, for instance
 OP doesn't seem to be aware of `is_trackback()`. (Perhaps where could be
 note in the file's header?)

 Last but not least, it occasionally breaks down to:

 {{{
 $_SERVER['SCRIPT_FILENAME'] === ABSPATH . $file_to_check
 }}}

 (I'm quite sure I've used a less buggy version of the above idiom over the
 years to detect in what precise context WP was being loaded.)

 Again, it ''works''... It's just not very convenient -- or change proof,
 for that matter.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28364#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list