Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter michaelthulin

    (@michaelthulin)

    was trying out some code for a plug-in tutorial.
    I have tried to copy Akismet into the topmenu.php and I still get the same error therefore I thought that it actually was a problem.

    But even tho I installed a plugin with following comment:

    /*
    Plugin Name: test
    Plugin URI: http://xxx.xx
    Description: Test description
    Version: 1.0
    Author: Michael Thulin
    Author URI: http://xxx.xx
    */

    (nothing more)

    and the same error still appeared – why’s that?

    Thread Starter michaelthulin

    (@michaelthulin)

    <?php
    /*
    Plugin Name: test
    Plugin URI: http://xxx.xx
    Description: Test description
    Version: 1.0
    Author: Michael Thulin
    Author URI: http://xxx.xx
    */
    if (!class_exists("testclass")) {
        class testclass {
            function testfunction() {
    			function addHeaderCode() {
                ?>
    <!-- thulin Was Here -->
                <?php
    
    			}
            }
        }
    }
    
    if (class_exists("testclass")) {
        $dl_pluginSeries = new testclass();
    }
    
    if (isset($dl_pluginSeries)) {
        add_action('wp_head', array(&$dl_pluginSeries, 'addHeaderCode'), 1);
    }
    ?>
    Thread Starter michaelthulin

    (@michaelthulin)

    I am aware of that.

    But as I said – even when I copy one of the other existing plugins,
    the problem is still there.

Viewing 3 replies - 1 through 3 (of 3 total)