Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#1746 closed defect (bug) (fixed)

Massive Code Cleanup: template-functions-author.php and template-functions-category.php

Reported by: markjaquith Owned by: markjaquith
Priority: lowest Milestone:
Component: Administration Version: 1.6
Severity: trivial Keywords: bg|has-patch massive-code-cleanup bg|commit
Cc: Focuses:

Description (last modified by markjaquith)

Part II of my Massive Code Cleanup series. :-) This time the target is template-functions-author.php and template-functitons-category.php

  • spaces to tabs
  • one newline between functions
  • brackets removed for one-line if ()s
  • \t\n => \n
  • [space]\n => \n
  • no cramming two lines into one.
  • $id was declared global in a bunch of functions where it did not need to be ( all the ones that just return $authordata->something; )
  • if/else bracket tab matching
  • stray foreach : endforeach; eliminated

Attachments (2)

template-functions-author.php-CLEANUP.diff​ (10.1 KB ) - added by markjaquith 21 years ago.
patch for WP 1.6 SVN
template-functions-category.php-CLEANUP.diff​ (22.9 KB ) - added by markjaquith 21 years ago.
patch for WP 1.6 SVN

Download all attachments as: .zip

Change History (7)

@markjaquith
21 years ago

patch for WP 1.6 SVN

#1 @markjaquith
21 years ago

  • Description modified (diff)
  • Status new → assigned

#2 @markjaquith
21 years ago

  • Description modified (diff)
  • Summary Massive Code Cleanup: template-functions-author.php → Massive Code Cleanup: template-functions-author.php and template-functions-category.php

#3 @markjaquith
21 years ago

  • Description modified (diff)

#4 @ryan
21 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [2943]) Code cleanup from Mark Jaquith. fixes #1746

#5 @(none)
20 years ago

  • Milestone 2.0

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.