Support Forum

Have you fixed the WordPress 4.3 deprecated function bug

BL Blaise
Blaise
Member

Hi,

I’m using an older version of Simple Press and this creates a huge amount of PHP notices when upgrading to WP 4.3 because you are using a deprecated construct method calling $this->WP_Widget

It’s everywhere in your code. I’m curious to know whether this was fixed in the latest release?

Thanks

Blaise

5 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Blaise Fiedler said
Hi,

I’m using an older version of Simple Press and this creates a huge amount of PHP notices when upgrading to WP 4.3…

I am not seeing any nor have we any other reports – and I have been using 4.3 snce the start of its development.

…because you are using a deprecated construct method calling $this->WP_Widget

Can you link me to further information on this so I can review it? If we are, actually, inadvertently doing something wrong then we will want to fix it. But a very quick search through the WP Codex didnlt throw up any mention of deprecation on this.

It’s everywhere in your code. I’m curious to know whether this was fixed in the latest release?

Everywhere? There are no widgets in our core code and only two SP plugins that contain a widget. How can it be everywhere?

KV kvr28
kvr28
Member

don’t know if this is what you are looking for yellow, came across the same question on our wp theme forum and they referenced this

https://make.wordpress.org/core/2015/07/02/deprecating-php4-style-constructors-in-wordpress-4-3/

https://gist.github.com/chriscct7/d7d077afb01011b1839d

MP Mr Papa
Mr Papa
Member

first its not a bug or error… its just a notice which wp introduced in 4.3…  so of course no way to have handled it previously… and of course, you shouldnt be displaying notices on a production site anyways…

simple press version 5.5.9 (OP stated using older version) does not use php4 constructors…

BL Blaise
Blaise
Member

Dear Yellow,

Thanks for your answer. I must have been confused when I wrote my first post as I am now unable to fund mentions of WP_Widget in your code: my apologies.

YS Yellow Swordfish
Yellow Swordfish
Member

Good news! I was wondering if I had missed something fundamental.