Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#19249 closed defect (bug) (fixed)

Fixing Walker Notice regarding parameter in class hierarchy.

Reported by: Blackskyliner Owned by: ryan
Priority: normal Milestone: 3.4
Component: General Version: 3.2.1
Severity: normal Keywords: has-patch needs-testing 3.4-early
Cc: Focuses:

Description

First: Its just a "cosmetic" and PHP5 coding standard patch (or at least you could say, we want to use the PHP5 language the right way).

As I started to write a plugin to Integrate SF2 into Wordpress I got a Notice Error Exception from my SF2 Kernel which stated, that some classes, like the PluginList in the Administration Menu try to overload some function prototypes with a wrong parameter count...

So I just fixed this and now everything works fine, would be great to have this in the Release version, as its against the principles of function prototyping in PHP to overload smth. with the wrong Parameter count.

I just tested the Patch a little bit and found no other errors, but I don't know if I just had luck - or maybe break other plugins with this.

This error is in all versions of WP I tested till now, also I did not found any other patches regarding this problem, hopefully I did not failed to see them ;)

Attachments (1)

patch (1.9 KB ) - added by Blackskyliner 15 years ago.
SVN diff patch

Download all attachments as: .zip

Change History (8)

@Blackskyliner
15 years ago

SVN diff patch

#1 @Blackskyliner
15 years ago

With SF2 I mean the Symfony2 Framework.

#3 @nacin
15 years ago

  • Keywords 3.4-early added
  • Milestone Awaiting ReviewFuture Release
  • Version 3.33.2.1

Happy with 18975.diff in 3.4.

#4 @ryan
15 years ago

  • Milestone Future Release3.4

#5 @ryan
15 years ago

  • Owner set to ryan
  • Resolutionfixed
  • Status newclosed

In [19679]:

Clear strict notices for the walkers. fixes #19249

#6 @dd32
15 years ago

In [19681]:

Revert Debug cruft from [19679], See #19249

#7 @DrewAPicture
13 years ago

In 25641:

Inline documentation improvements for Walker_Category and Walker_CategoryDropdown.

Also covers previously undocumented parameters.

See #23406, #19249.

Note: See TracTickets for help on using tickets.