WordPress.org

Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 14 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
Milestone: Priority: lowest
Severity: trivial Version: 1.6
Component: Administration Keywords: bg|has-patch massive-code-cleanup bg|commit
Focuses: Cc:

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 15 years ago.
patch for WP 1.6 SVN
template-functions-category.php-CLEANUP.diff (22.9 KB) - added by markjaquith 15 years ago.
patch for WP 1.6 SVN

Download all attachments as: .zip

Change History (7)

@markjaquith
15 years ago

patch for WP 1.6 SVN

#1 @markjaquith
15 years ago

  • Description modified (diff)
  • Status changed from new to assigned

#2 @markjaquith
15 years ago

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

#3 @markjaquith
15 years ago

  • Description modified (diff)

#4 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

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

#5 @(none)
14 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.