WordPress Sitemap for MSSQL

When I look at your error message, I get the impression that you’re running WordPress off a MS SQL database rather than a MySQL database. That’s fine, but it makes things a bit tricky from a support perspective because the two database platforms are, in fact, different. For example, the error message you’re getting is … Read more

All new plugins generating 311 chars of unexpected output?

Basically it goes like this (relevant steps only): plugins.php page calls activate_plugin() function. Function starts output buffering. Includes plugin file. Fires activate_plugin action. Fires ‘activate_’ . trim( $plugin ) action. Fires activated_plugin action. If buffer is not empty it creates WP_Error object and returns it. plugins.php page checks for error and displays error message. So … Read more

Defining the value of a variable before a function?

Wrong approach. $print_submenu_navigation will be filled in local scope when function is called with arguments, it’s not a matter of global variables. You want something like this when function is called (not defined): load_view( ‘name’, array(), current_user_can(‘administrator’) ) { Alternatively you can add your snippet inside the function, then input value for $print_submenu_navigation will overwritten … Read more