This topic is: not resolved
-
I ran Theme Checker plugin, and it give me the following errors in the theme:
WARNING: The theme uses the add_shortcode() function. Custom post-content shortcodes are plugin-territory functionality. WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments 'luxury-wp' WARNING: Found a translation function that has an incorrect number of arguments. Function __, with the arguments 'custom.css could not be created. Cannot write custom css to "', ., 'luxury-wp' WARNING: Found a translation function that has an incorrect number of arguments. Function __, with the arguments 'You can create one from ThemeForest User settings page. View a tutorial WARNING: Found ini_set in the file MCAPI.class.php. Themes should not change server PHP settings. Line 2845: ini_set('arg_separator.output', '&'); Line 2849: ini_set('arg_separator.output', $orig_sep); WARNING: Found base64_encode in the file twitteroauth.php. base64_encode() is not allowed. Line 118: return base64_encode(hash_hmac('sha1', $base_string, $key, true)); Line 198: return base64_encode($signature); WARNING: Found base64_encode in the file functions.php. base64_encode() is not allowed. Line 274: $instagram = base64_encode( serialize( $instagram ) ); WARNING: Found base64_decode in the file twitteroauth.php. base64_decode() is not allowed. Line 202: $decoded_sig = base64_decode($signature); WARNING: Found base64_decode in the file functions.php. base64_decode() is not allowed. Line 284: $instagram = unserialize( base64_decode( $instagram ) ); WARNING: Found base64_decode in the file dh_pricing_table_item.php. base64_decode() is not allowed. Line 76: $features = json_decode(base64_decode($features)); WARNING: Found base64_decode in the file dh_pricing_table.php. base64_decode() is not allowed. Line 238: $value_64 = base64_decode( $value ); WARNING: fwrite was found in the file MCAPI.class.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 2874: fwrite($sock, $payload); WARNING: fsockopen was found in the file MCAPI.class.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 2862: $sock = fsockopen('ssl://'.$host, 443, $errno, $errstr, 30); Line 2864: $sock = fsockopen($host, 80, $errno, $errstr, 30); WARNING: fread was found in the file MCAPI.class.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 2878: $response .= fread($sock, $this->chunkSize); WARNING: fopen was found in the file parsers.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 415: $fp = $this->fopen( $file, 'r' ); Line 641: function fopen( $filename, $mode = 'r' ) { Line 644: return fopen( $filename, $mode ); WARNING: file_get_contents was found in the file twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 272: file_get_contents(self::$POST_INPUT) WARNING: file_get_contents was found in the file parsers.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 66: $success = $dom->loadXML( file_get_contents( $file ) ); Line 269: if ( ! xml_parse( $xml, file_get_contents( $file ), true ) ) { WARNING: file_get_contents was found in the file functions.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 490: $dailyMotionApi = @file_get_contents('https://api.dailymotion.com/video/' . dh_get_dailymotion Line 497: $vimeoApi = @file_get_contents('http://vimeo.com/api/v2/video/' . dh_get_vimeo_id($video WARNING: fclose was found in the file parsers.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 464: $this->fclose($fp); Line 659: function fclose( $fp ) { Line 662: return fclose( $fp ); WARNING: fclose was found in the file MCAPI.class.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 2881: fclose($sock); WARNING: curl_init was found in the file twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 1066: $ci = curl_init(); WARNING: curl_exec was found in the file twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls. Line 1092: $response = curl_exec($ci); REQUIRED: The theme uses the register_taxonomy() function, which is plugin-territory functionality. REQUIRED: The theme uses the register_post_type() function, which is plugin-territory functionality. REQUIRED: tgm-plugin-activation.php. Themes should use add_theme_page() for adding admin pages. Line 641: $this->page_hook = call_user_func( 'add_submenu_page', $args['parent_slug'], $args['page_title'], $args['menu_t REQUIRED: screen_icon() found in the file wordpress-importer.php. Deprecated since version 3.8. Line 1025: screen_icon(); REQUIRED: init.php. Themes should use add_theme_page() for adding admin pages. Line 31: if(class_exists('RevSliderAdmin') && method_exists('RevSliderAdmin', 'add_plugins_page_notices')){ Line 32: remove_action('admin_notices', array('RevSliderAdmin', 'add_plugins_page_notices')); RECOMMENDED: Screenshot size should be 1200x900, to account for HiDPI displays. Any 4:3 image size is acceptable, but 1200x900 is preferred. RECOMMENDED: Possible variable $sitesao_upload_dir found in translation function in theme-options.php. Translation function calls must NOT contain PHP variables. Line 114: add_settings_error( self::$field_prefix . $option, $wp_filesystem->errors->get_error_code(), __( sprintf( '%s could not be created. Not available to create sitesao dire RECOMMENDED: Possible variable $object found in translation function in dhwc_product_brand_list_walker.php. Translation function calls must NOT contain PHP variables. Line 47: $output .= ''>term_id, 'product_brand' ) . ''>' . __( $object->name, 'luxury-wp' ) . ''; RECOMMENDED: Possible variable $filename found in translation function in theme-options.php. Translation function calls must NOT contain PHP variables. Line 88: add_settings_error( 'sitesao_custom_css', $wp_filesystem->errors->get_error_code(), __( 'custom.css could not be created. Cannot write custom css to '' . $file RECOMMENDED: No reference to add_theme_support( "custom-header", $args ) 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_theme_support( "custom-background", $args ) 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: No reference to add_editor_style() was found in the theme. It is recommended that the theme implement editor styling, so as to make the editor content match the resulting post output in the theme, for a better user experience. RECOMMENDED: wp_get_http() found in the file wordpress-importer.php. Deprecated since version 4.4. Use WP_Http instead. Line 898: $headers = wp_get_http( $url, $upload['file'] ); RECOMMENDED: flush_widget_cache() found in the file widget.php. Deprecated since version 4.4. Line 26: add_action( 'save_post', array( $this, 'flush_widget_cache' ) ); Line 27: add_action( 'deleted_post', array( $this, 'flush_widget_cache' ) ); Line 28: add_action( 'switch_theme', array( $this, 'flush_widget_cache' ) ); Line 66: public function flush_widget_cache() { Line 123: $this->flush_widget_cache(); INFO: Possible hard-coded links were found in the file widget.php. Line 317: echo ''.$tweets->errors[0]->message.'!
'.__('You\'ll need to regenerate it here!', 'luxury-wp' ) . $ INFO: Possible hard-coded links were found in the file theme-options.php. Line 226:<h2><?php echo DH_THEME_NAME?> <?php echo DH_THEME_VERSION?></h2> <?php _e('Online Document','luxury-wp') Line 1495: 'value' => 'Copyright © 2015 Designed by Sitesao. All rights reserved.' INFO: Non-printable characters were found in the theme-options.php file. You may want to check this file for errors. Line 1108: 'value'=>'Copyright �� 2015 Designed by Sitesao. All rights reserved.' Line 1495: 'value' => 'Copyright �� 2015 Designed by Sitesao. All rights r INFO: More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs. The domains found are luxury-wp, loja, ., js_composer, sitesao, woow, wordpress-importer, /images/api-key-location.jpg>here, tgmpa INFO: wordpress-importer.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. INFO: updater.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 27: include_once (DHINC_DIR . '/updaters/updating-manager.php'); Line 34: include_once (DHINC_DIR . '/updaters/updater-admin.php'); INFO: theme-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 76: require_once( DHINC_DIR . '/custom-css/brand-primary.php' ); Line 77: require_once( DHINC_DIR . '/custom-css/style.php' ); Line 716: include_once (DHINC_DIR . '/lib/google-fonts.php'); INFO: tgm-plugin-activation.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. INFO: post-type-slider.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. INFO: payment.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. INFO: meta-boxes.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 151: include_once ( ABSPATH . 'wp-admin/includes/plugin.php' ); INFO: lookbook.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. INFO: init.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 61: include_once ($dir.'/shortcodes.php'); Line 64: $maps = include ($dir.'/map.php'); Line 66: include_once ($shortcode_dir.'/'.$map); Line 70: include_once ($dir.'/woocommerce.php'); INFO: init.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 58: include_once (DHINC_DIR . '/functions.php'); Line 61: include_once (DHINC_DIR . '/less-helper.php'); Line 64: include_once (DHINC_DIR . '/register.php'); Line 66: include_once (DHINC_DIR . '/hook.php'); Line 68: include_once (DHINC_DIR . '/post-type-slider.php'); Line 70: include_once (DHINC_DIR. '/walker.php'); Line 72: include_once (DHINC_DIR . '/widget.php'); Line 74: include_once (DHINC_DIR . '/breadcrumb.php'); Line 77: include_once (DHINC_DIR . '/controller.php'); Line 80: include_once (DHINC_DIR . '/updaters/updater.php'); Line 84: include_once (DHINC_DIR . '/admin/functions.php'); Line 85: include_once (DHINC_DIR . '/admin/admin.php'); INFO: import-demo.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 11: include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); // Require plugin INFO: form-pay.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. INFO: dhwc-widget-brands.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 155: include_once(dirname(__FILE__) . '/dhwc_product_brand_list_walker.php' ); INFO: dhwc-brand.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. INFO: controller.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 481: include_once ( DHINC_DIR . '/lib/MCAPI.class.php' ); INFO: admin.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 11: include_once (dirname( __FILE__ ) . '/meta-boxes.php'); Line 12: include_once (dirname( __FILE__ ) . '/mega-menu.php'); Line 13: include_once (dirname( __FILE__ ) . '/theme-options.php'); Line 15: include_once (dirname( __FILE__ ) . '/import-demo.php')