Making WordPress.org

Opened 10 years ago

Closed 10 years ago

#534 closed defect (bug) (fixed)

Code source randomly appends endif

Reported by: clorith's profile Clorith Owned by: coffee2code's profile coffee2code
Milestone: Priority: normal
Component: Developer Hub Keywords:
Cc:

Description

The code source are randomly appending and endif; to the source code of functions, a few example functions to help narrow down the cause;

http://developer.wordpress.org/reference/functions/wp_verify_nonce/
http://developer.wordpress.org/reference/functions/wp_create_nonce/

Change History (3)

#1 @Otto42
10 years ago

That isn't random, those are pluggable functions. The endif is really there. What's missing is the if statement before the function definition.

#2 @nacin
10 years ago

I think we should probably hide the if statement and, based on the file a function is in, automatically insert a standard "this is a pluggable function and here's what that means" statement.

#3 @coffee2code
10 years ago

  • Owner set to coffee2code
  • Resolution set to fixed
  • Status changed from new to closed

In 741:

Code Reference: omit ending 'endif;' from source code parsing when erroneously included within line number range. Fixes #534

Note: See TracTickets for help on using tickets.