help with php please
-
This is the instructions:
To allow plugin control to work the following code has to be added to wp-admin/plugins.php around line 120 – the first line of the foreach($plugins…) loop.
New Line:
if (!premiumBlogs::allowedPlugin($plugin_file)) continue;
And the code will be what???
Another instruction:
To allow theme control to work the following changes have to be made to wp-admin/themes.php around line 22 – in the foreach($themes…) loop:
Original:
foreach( $themes as $key => $theme ) {
if( isset( $allowed_themes[ wp_specialchars( $theme[ ‘Stylesheet’ ] ) ] ) == false ) {
unset( $themes[ $key ] );
}
}
New:
foreach( $themes as $key => $theme ) {
if( isset( $allowed_themes[ wp_specialchars( $theme[ ‘Stylesheet’ ] ) ] ) == false ) {
unset( $themes[ $key ] );
} elseif (premiumBlogs::allowedTheme(wp_specialchars($theme[‘Stylesheet’])) == false){ unset($themes[$key]);
}
}
And the code will be what???
Please help, I have tryed but I onley get error code, so I must put in the code wrong, help me put in the right code.
Regards
Martin
The topic ‘help with php please’ is closed to new replies.