I purchased a commercial theme for WordPress (Clockstone) and I ran Theme Check against it ( http://wordpress.org/extend/plugins/theme-check/ ).
It is returning a number of errors. I know I can go to the author and ask them to fix these errors, but I need to get the site functional quickly. Would someone here on these forums kindly offer some advice on how to best resolve these errors:
[code] WARNING: readfile was found in the file timthumb.php possible file operations.
Line 546: if (!@readfile ($cache_file)) {
WARNING: fwrite was found in the file timthumb.php possible file operations.
Line 756: fwrite ($fh, $data);
WARNING: fopen was found in the file timthumb.php possible file operations.
Line 684: $fh = fopen ($local_filepath, 'w');
WARNING: file_put_contents was found in the file timthumb.php possible file operations.
Line 712: if (file_put_contents ($local_filepath, $img) == FALSE) {
WARNING: file_get_contents was found in the file update-notifier.php possible file operations.
Line 94: $cache = @file_get_contents($notifier_file_url);
WARNING: file_get_contents was found in the file timthumb.php possible file operations.
Line 547: $content = file_get_contents ($cache_file);
Line 708: if (!$img = file_get_contents ($src)) {
WARNING: fclose was found in the file timthumb.php possible file operations.
Line 704: fclose ($fh);
WARNING: curl_init was found in the file update-notifier.php possible file operations.
Line 86: if (function_exists('curl_init')){
Line 87: $ch = curl_init($notifier_file_url);
WARNING: curl_init was found in the file timthumb.php possible file operations.
Line 680: if (function_exists ('curl_init')) {
Line 685: $ch = curl_init ($src);
WARNING: curl_exec was found in the file update-notifier.php possible file operations.
Line 91: $cache = curl_exec($ch);
WARNING: curl_exec was found in the file timthumb.php possible file operations.
Line 697: if (curl_exec ($ch) === FALSE) {
REQUIRED: Could not find comment_form. See: comment_form
<?php comment_form(); ?>
REQUIRED: update-notifier.php. Themes should use add_theme_page() for adding admin pages.
Line 15: add_dashboard_page(NOTIFIER_THEME_NAME.' Theme Updates', NOTIFIER_THEME_NAM
REQUIRED: slides-sorting.php. Themes should use add_theme_page() for adding admin pages.
Line 5: add_submenu_page('edit.php?post_type=slides', 'Sort Slides', 'Sort Slides',
REQUIRED: projects-sorting.php. Themes should use add_theme_page() for adding admin pages.
Line 5: add_submenu_page('edit.php?post_type=portfolio', 'Sort Projects', 'Sort Pro
REQUIRED: albums-sorting.php. Themes should use add_theme_page() for adding admin pages.
Line 5: add_submenu_page('edit.php?post_type=gallery', 'Sort Albums', 'Sort Albums'
REQUIRED: admin-interface.php. Themes should use add_theme_page() for adding admin pages.
Line 2393: add_menu_page($themename.' Options', $themename, 'edit_themes', $page_handl
Line 2405: add_menu_page($themename.' Options', $themename.' <span class='update-plugi
RECOMMENDED: Text domain problems in widgets.php. You have not included a text domain!
Line 90: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 246: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 407: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 550: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 700: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 873: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 1018: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 1168: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 1342: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 1490: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 1622: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 1775: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 1917: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 2099: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
Line 2270: <p><label for='<?php echo $this->get_field_id('title'); ?>'><?php _e('Title:
'); ?>
RECOMMENDED: No reference to the_post_thumbnail() was found in the theme. It is recommended that the theme implement this functionality instead of using custom fields for thumbnails.
RECOMMENDED: No reference to add_custom_image_header was found in the theme. It is recommended that the theme implement this functionality if using an image for the header.
RECOMMENDED: No reference to add_custom_background() was found in the theme. If the theme uses background images or solid colors for the background, then it is recommended that the theme implement this functionality.
RECOMMENDED: Tags: is either empty or missing in style.css header.
INFO: TimThumb detected in file timthumb.php. Version detected was 1.31
INFO: Possible hard-coded links were found in the file widgets.php.
Line 93: <p><label for='<?php echo $this->get_field_id('usernames'); ?>'><?php _e('Flickr ID (idGettr):
'); ?>
INFO: Possible hard-coded links were found in the file slider.php.
Line 95: <p>You need to upgrade your Flash Player t
Line 110: <p>You need to upgrade your Flash Player t
INFO: wp-pagenavi.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 186: require('var.php');
INFO: window_widget.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_video.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_tabs.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_table.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_shadow.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_pricing.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_list.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_dropcap.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_divider.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_contact.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_column.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_button.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: window_box.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require_once('config.php');
INFO: widgets.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 21: require(CMSMASTERS_CLASSES . '/var.php');
Line 295: require(CMSMASTERS_CLASSES . '/var.php');
Line 453: require(CMSMASTERS_CLASSES . '/var.php');
Line 604: require(CMSMASTERS_CLASSES . '/var.php');
Line 1390: require(CMSMASTERS_CLASSES . '/var.php');
Line 1551: require(CMSMASTERS_CLASSES . '/var.php');
INFO: uploadbg.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require('../../../../../wp-load.php');
INFO: theme-functions.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 64: require(CMSMASTERS_CLASSES . '/var.php');
Line 554: include(TEMPLATEPATH . '/theme/pages/single-testimonial.php');
Line 676: include(TEMPLATEPATH . '/theme/pages/single-article.php');
Line 817: include(TEMPLATEPATH . '/theme/pages/single-product.php');
Line 1066: include(TEMPLATEPATH . '/theme/pages/single-portfolio.php');
Line 1239: include(TEMPLATEPATH . '/theme/pages/single-album.php');
Line 1382: require_once('slides-sorting.php');
Line 1383: require_once('albums-sorting.php');
Line 1384: require_once('projects-sorting.php');
INFO: searchform.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 7: require(CMSMASTERS_CLASSES . '/var.php');
INFO: post-options.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 10: require(CMSMASTERS_CLASSES . '/var.php');
INFO: piecemaker.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 8: require('../../../../../wp-load.php');
Line 9: require('../classes/var.php');
INFO: piecemaker.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 8: require('../../../../../../wp-load.php');
Line 9: require('../../classes/var.php');
INFO: pie.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 18: include( 'pie.htc' );
INFO: import.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require('../../../../../wp-load.php');
INFO: iframe was found in the file theme-functions.php iframes are sometimes used to load unwanted adverts and code on your site.
Line 250: $ext = 'pre[id|name|class|style], iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|
Line 367: function get_video_iframe($url, $width, $height){
Line 374: $out .= '<iframe src='http://www.youtube.com/embed/'.$match.'?rel=0&hd=1' framebo
Line 385: $out .= '></iframe>';
Line 392: $out .= '<iframe src='http://player.vimeo.com/video/'.$match.'?title=0&byline=0&a
Line 403: $out .= '></iframe>';
Line 410: $out .= '<iframe src='http://www.dailymotion.com/embed/video/'.$match.'?hideInfos=1'
Line 421: $out .= '></iframe>';
Line 428: $out .= '<iframe src='http://www.screenr.com/embed/'.$match.'' frameborder='0'';
Line 439: $out .= '></iframe>';
Line 1160: echo '<li style='float:left; display:block; padding:0 8px 2px 0;' id=''.$attachment->ID.''><img sty
Line 1167: echo '<p>Please upload images</p>
';
Line 1333: echo '<li style='float:left; display:block; padding:0 9px 3px 0;' id=''.$attachment->ID.''><img sty
Line 1340: echo '<p>Please upload images</p>
';
INFO: ie_css3.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 4: require('../../../../wp-load.php');
INFO: fonts.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 4: require('../../../../wp-load.php');
Line 5: require('../theme/classes/var.php');
INFO: db_operator.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 3: require('../../../../../wp-load.php');
INFO: config.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 8: require($wp_include);
INFO: comments.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 8: require(CMSMASTERS_CLASSES . '/var.php');
INFO: breadcrumb.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 17: require('var.php');
INFO: admin-interface.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 5: require(CMSMASTERS_CLASSES . '/var.php');
INFO: 3d.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 8: require('../../../../../wp-load.php');
Line 9: require('../classes/var.php');
INFO: 3d.php The theme appears to use include or require. If these are being used to include separate sections of a template from independent files, then get_template_part() should be used instead.
Line 8: require('../../../../../../wp-load.php');
Line 9: require('../../classes/var.php');
INFO: At least one hard coded date was found in the file single-product.php. Consider get_option( 'date_format' )
INFO: At least one hard coded date was found in the file products.php. Consider get_option( 'date_format' )
INFO: At least one hard coded date was found in the file portfolio.php. Consider get_option( 'date_format' )
INFO: At least one hard coded date was found in the file gallery.php. Consider get_option( 'date_format' )[/code]