Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #25840, comment 10


Ignore:
Timestamp:
11/07/2013 06:37:01 AM (11 years ago)
Author:
rmccue
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25840, comment 10

    v1 v2  
    55> The easiest and most secure solution is to set the constants in a plugin, which name begin with zero, because the plugins will be executed with the order of their names!
    66
    7 That would be true, but there's not really a "maximum" priority as such. Priorities aren't guaranteed to be integers, floats, or even numbers, so there's (almost) always something higher that you can set. e.g. if something uses `-1 * PHP_INT_MAX`, you can use `-1 * PHP_INT_MAX - 1` and it'll transparently become a more-negative float. (Interesting thought: what *is* the highest priority (earliest sorted value) you can get in PHP? I'd guess `-INF`.)
     7That would be true, but there's not really a "maximum" priority as such. Priorities aren't guaranteed to be integers, floats, or even numbers, so there's (almost) always something higher that you can set. e.g. if something uses `PHP_INT_MAX`, you can use `PHP_INT_MAX + 1` and it'll transparently become a larger float. (Interesting thought: what *is* the maximum priority (last sorted value) you can get in PHP? I'd guess `INF`.)
    88
    99---