Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Fixed WP activation hook#2

Open
MikhailRoot wants to merge 1 commit intowp-plugins:masterfrom
MikhailRoot:master
Open

Fixed WP activation hook#2
MikhailRoot wants to merge 1 commit intowp-plugins:masterfrom
MikhailRoot:master

Conversation

@MikhailRoot
Copy link

Leaving bb2_install(); call just in primary plugin's file makes it running database query on each request, which isn't good at all for performance.
Install - creates table in database and it should run only on activation.
So i've just enabled it as i understood.
I've checked at least on my dev and production sites. plugin activates successfully, and creates table as it should.
(PHP 7, WP 4.9.8)

Leaving `bb2_install();` call just in primary plugin's file makes it running database query on each request, which isn't good at all for performance.
Install - creates table in database and it should run only on activation. 
So i've just enabled it as  i understood. 
I've checked at least on my dev and production sites. plugin activates successfully, and creates table as it should.
(PHP 7, WP 4.9.8)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant