Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Other Changes and Gotchas

PHP7 require any immediate action for Wordpress websites?

Will I be able to use these need features right away with my Wordpress site or will I have to wait for Wordpress to update its version?

1 Answer

Codin - Codesmite
Codin - Codesmite
8,600 Points

Wordpress core has been updated to work with PHP7 and they have fixed the depreciations from PHP4 to be PHP7 friendly.

But there is no garuntee any themes or plugins you are using on your site will not be affected, you will need to check them individually before making the change.

There is not to many changes, mostly depreciation of things people shouldn't be using anyway such as mysql_ queries etc There has been some syntax changes to OOPHP5.6 that will need to be changed for example:

$object->{$car[model']}

Is now:

{$object->$car}['model']

You will also require PHP7 installed on your webserver, depending on if you host your own webserver, or rent shared hosting or a server you may need till it is deployed to your server.