WordPress.org

Make WordPress Core

Ticket #3963: rewrite-php-alt.diff

File rewrite-php-alt.diff, 592 bytes (added by jhodgdon, 7 years ago)

Alternative patch that leaves value of EP_ALL alone but adds comment to avoid confusion

  • E:/EclipseWork/WordPressDev/wp-includes/rewrite.php

     
    5050define('EP_PAGES',      2048); 
    5151//pseudo-places 
    5252define('EP_NONE',       0  ); 
    53 define('EP_ALL',        255); 
     53define('EP_ALL',        255); // NOTE: only covers constants whose values are less than 225 above! 
    5454 
    5555//and an endpoint, like /trackback/ 
    5656function add_rewrite_endpoint($name, $places) {