πŸ’¦ FULL SET: Ticket/ - Collection

Opened 16 years ago

Closed 10 years ago

#11598 closed enhancement (wontfix)

code improvements in wp_:dashboard_plugins_output()

Reported by: hakre's profile hakre Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.9
Component: General Keywords: needs-patch
Focuses: Cc:

Description

Smaller code changes to improve the function. Stumbeled over this while digging into #11597 and #11518.

Attachments (2)

11598.patch​ (2.6 KB) - added by hakre 16 years ago.
11598.2.patch​ (5.1 KB) - added by hakre 16 years ago.
Next Iteration

Download all attachments as: .zip

Change History (13)

@hakre
16 years ago

#1 @hakre
16 years ago

  • Keywords tested added

Tested against current trunk, Plugin listing works flawlessly.

#2 @hakre
16 years ago

Still ready to commit. Can a commiter please take care?

#3 follow-up: @dd32
16 years ago

  • Keywords tested removed

Does that do {} while(false); loop work? That will only ever run once from looking at the code.

Continue will just skip the rest of the loop and go straight to the conditional.

Best to leave it as a while(true) { break;} , Theres no need for the do syntax which is out of line with the rest of WordPress

#4 @Denis-de-Bernardy
16 years ago

  • Keywords needs-patch added; has-patch removed

#5 @nacin
16 years ago

  • Milestone changed from 3.0 to 3.1
  • Type changed from defect (bug) to enhancement

#6 in reply to: ↑ 3 @hakre
16 years ago

Replying to dd32:

Does that do {} while(false); loop work? That will only ever run once from looking at the code.

Yes/Yes: Yes, it does work. Second yes is clear I guess. Let me know if not.

Best to leave it as a while(true) { break;} , Theres no need for the do syntax which is out of line with the rest of WordPress

Will adopt the patch accordingly to that feedback.

@hakre
16 years ago

Next Iteration