Timeline for What are the differences between WPINC and ABSPATH?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 31, 2013 at 14:40 | vote | accept | Daniel | ||
Jul 31, 2013 at 4:53 | comment | added | gmazzap |
There is no real right way, and I always use if ( ! defined( 'ABSPATH' ) ) exit; ... but, maybe, consider that the scope of this snippet is ensure that wordpress is loaded 'WPINC' is better because is more wordpressfull staring with 'WP'.
|
|
Jul 31, 2013 at 4:52 | history | edited | Wyck | CC BY-SA 3.0 |
deleted 6 characters in body
|
Jul 31, 2013 at 4:47 | history | edited | Wyck | CC BY-SA 3.0 |
deleted 6 characters in body
|
Jul 31, 2013 at 4:40 | history | answered | Wyck | CC BY-SA 3.0 |