Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Lavelight on "[plugin write]Static function error"

$
0
0

Hi everyone :)

I writing plugin and i have some problems.
Working on localhost - xampp and here check my plugin.
Plugin works have 100% correct on my localhost.
Problem started when i transfer file on real host

Website error

Parse error: syntax error, unexpected T_STATIC in

This is line:

if(get_current_screen()->id == 'toplevel_page_'.static::$plugin_id){

up script

class blabla{
private static $plugin_id = 'blablabla';

Host use php 5.4.21


Viewing all articles
Browse latest Browse all 8245

Trending Articles