error log – illegal string for Admin CSS
-
Hi,
I added 2 small CSS codes using the admin & login places. Suddenly I received this message in my log :
Illegal string offset ‘language’ in wp-content/plugins/custom-css-js/includes/admin-screens.php on line 1390Here is the code snippet where the error points to the first “language” argument :
/** * Remove the JS/CSS file from the disk when deleting the post */ function before_delete_post( $postid ) { global $post; if ( ! is_object( $post ) ) return; if ( 'custom-css-js' !== $post->post_type ) return; if ( ! wp_is_writable( CCJ_UPLOAD_DIR ) ) return; $options = get_post_meta( $postid, 'options', true ); $slug = get_post_meta( $postid, '_slug', true ); $file_name = $postid . '.' . $options['language']; @unlink( CCJ_UPLOAD_DIR . '/' . $file_name ); if ( !empty( $slug ) ) { @unlink( CCJ_UPLOAD_DIR . '/' . $slug . '.' . $options['language'] ); } }What’s happening ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘error log – illegal string for Admin CSS’ is closed to new replies.