Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-revie...
File: wp-review.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Plugin Name: WP Review
[2] Fix | Delete
* Plugin URI: http://mythemeshop.com/plugins/wp-review/
[3] Fix | Delete
* Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
[4] Fix | Delete
* Version: 5.3.5
[5] Fix | Delete
* Author: MyThemeShop
[6] Fix | Delete
* Author URI: http://mythemeshop.com/
[7] Fix | Delete
* Text Domain: wp-review
[8] Fix | Delete
* MTS Product Type: Free
[9] Fix | Delete
*
[10] Fix | Delete
* @since 1.0
[11] Fix | Delete
* @copyright Copyright (c) 2013, MyThemesShop
[12] Fix | Delete
* @author MyThemesShop
[13] Fix | Delete
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
[14] Fix | Delete
*
[15] Fix | Delete
* @package WP_Review
[16] Fix | Delete
*/
[17] Fix | Delete
[18] Fix | Delete
// Exit if accessed directly.
[19] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[20] Fix | Delete
exit;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
if ( defined( 'WP_REVIEW_PLUGIN_VERSION' ) ) {
[24] Fix | Delete
return;
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Plugin requires PHP 5.6 or later.
[29] Fix | Delete
*/
[30] Fix | Delete
if ( version_compare( phpversion(), '5.6', '<' ) ) {
[31] Fix | Delete
/**
[32] Fix | Delete
* Adds a message for outdate PHP version.
[33] Fix | Delete
*/
[34] Fix | Delete
function wp_review_php_upgrade_notice() {
[35] Fix | Delete
// translators: PHP version.
[36] Fix | Delete
$message = sprintf( __( '<strong>WP Review</strong> requires PHP version 5.6 or above. You are running version %s. Please update PHP to run this plugin.', 'wp-review' ), phpversion() );
[37] Fix | Delete
printf( '<div class="error"><p>%s</p></div>', $message ); // WPCS: XSS OK.
[38] Fix | Delete
[39] Fix | Delete
deactivate_plugins( plugin_basename( __FILE__ ) );
[40] Fix | Delete
}
[41] Fix | Delete
add_action( 'admin_notices', 'wp_review_php_upgrade_notice' );
[42] Fix | Delete
[43] Fix | Delete
return;
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
/* Plugin version */
[47] Fix | Delete
define( 'WP_REVIEW_PLUGIN_VERSION', '5.3.5' );
[48] Fix | Delete
[49] Fix | Delete
/* Sets the custom db table name. */
[50] Fix | Delete
define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
[51] Fix | Delete
[52] Fix | Delete
/* When plugin is activated */
[53] Fix | Delete
register_activation_hook( __FILE__, 'wp_review_activation' );
[54] Fix | Delete
[55] Fix | Delete
/* Defines constants used by the plugin. */
[56] Fix | Delete
add_action( 'plugins_loaded', 'wp_review_constants', 1 );
[57] Fix | Delete
[58] Fix | Delete
/* Internationalize the text strings used. */
[59] Fix | Delete
add_action( 'plugins_loaded', 'wp_review_i18n', 2 );
[60] Fix | Delete
[61] Fix | Delete
/* Loads libraries. */
[62] Fix | Delete
add_action( 'plugins_loaded', 'wp_review_includes_libraries', 3 );
[63] Fix | Delete
[64] Fix | Delete
if ( ! function_exists( 'wp_review_constants' ) ) :
[65] Fix | Delete
/**
[66] Fix | Delete
* Defines constants.
[67] Fix | Delete
*
[68] Fix | Delete
* @since 1.0
[69] Fix | Delete
*/
[70] Fix | Delete
function wp_review_constants() {
[71] Fix | Delete
[72] Fix | Delete
/* Sets the path to the plugin directory. */
[73] Fix | Delete
define( 'WP_REVIEW_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );
[74] Fix | Delete
[75] Fix | Delete
/* Sets the path to the plugin directory URI. */
[76] Fix | Delete
define( 'WP_REVIEW_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );
[77] Fix | Delete
[78] Fix | Delete
/* Sets the path to the `admin` directory. */
[79] Fix | Delete
define( 'WP_REVIEW_ADMIN', WP_REVIEW_DIR . trailingslashit( 'admin' ) );
[80] Fix | Delete
[81] Fix | Delete
/* Sets the path to the `includes` directory. */
[82] Fix | Delete
define( 'WP_REVIEW_INCLUDES', WP_REVIEW_DIR . trailingslashit( 'includes' ) );
[83] Fix | Delete
[84] Fix | Delete
/* Sets the path to the `assets` directory. */
[85] Fix | Delete
define( 'WP_REVIEW_ASSETS', WP_REVIEW_URI . 'public/' );
[86] Fix | Delete
[87] Fix | Delete
/* Sets plugin base 'directory/file.php' */
[88] Fix | Delete
define( 'WP_REVIEW_PLUGIN_BASE', plugin_basename( __FILE__ ) );
[89] Fix | Delete
[90] Fix | Delete
define( 'WP_REVIEW_COMMENT_TYPE_COMMENT', 'wp_review_comment' );
[91] Fix | Delete
define( 'WP_REVIEW_COMMENT_TYPE_VISITOR', 'wp_review_visitor' );
[92] Fix | Delete
[93] Fix | Delete
define( 'WP_REVIEW_VISITOR_RATING_METAKEY', 'wp_review_visitor_rating' );
[94] Fix | Delete
define( 'WP_REVIEW_COMMENT_RATING_METAKEY', 'wp_review_comment_rating' );
[95] Fix | Delete
define( 'WP_REVIEW_COMMENT_TITLE_METAKEY', 'wp_review_comment_title' );
[96] Fix | Delete
[97] Fix | Delete
define( 'WP_REVIEW_COMMENT_FEATURES_RATING_METAKEY', 'wp_review_features_rating' );
[98] Fix | Delete
[99] Fix | Delete
/* Keys for user review permissions */
[100] Fix | Delete
define( 'WP_REVIEW_REVIEW_DISABLED', 0 );
[101] Fix | Delete
define( 'WP_REVIEW_REVIEW_VISITOR_ONLY', 2 );
[102] Fix | Delete
define( 'WP_REVIEW_REVIEW_COMMENT_ONLY', 3 );
[103] Fix | Delete
define( 'WP_REVIEW_REVIEW_ALLOW_BOTH', 4 );
[104] Fix | Delete
[105] Fix | Delete
define( 'WP_REVIEW_GRAPH_API_VERSION', '2.12' );
[106] Fix | Delete
}
[107] Fix | Delete
endif;
[108] Fix | Delete
[109] Fix | Delete
if ( ! function_exists( 'wp_review_i18n' ) ) :
[110] Fix | Delete
/**
[111] Fix | Delete
* Internationalize the text strings used.
[112] Fix | Delete
*
[113] Fix | Delete
* @since 1.0
[114] Fix | Delete
*/
[115] Fix | Delete
function wp_review_i18n() {
[116] Fix | Delete
load_plugin_textdomain( 'wp-review', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
[117] Fix | Delete
}
[118] Fix | Delete
endif;
[119] Fix | Delete
[120] Fix | Delete
if ( ! function_exists( 'wp_review_includes_libraries' ) ) :
[121] Fix | Delete
/**
[122] Fix | Delete
* Loads the initial files needed by the plugin.
[123] Fix | Delete
*
[124] Fix | Delete
* @since 1.0
[125] Fix | Delete
*/
[126] Fix | Delete
function wp_review_includes_libraries() {
[127] Fix | Delete
[128] Fix | Delete
/* Loads the admin functions. */
[129] Fix | Delete
require_once( WP_REVIEW_ADMIN . 'admin.php' );
[130] Fix | Delete
[131] Fix | Delete
/* Loads the meta boxes. */
[132] Fix | Delete
require_once( WP_REVIEW_ADMIN . 'metaboxes.php' );
[133] Fix | Delete
[134] Fix | Delete
/* Loads the templates list. */
[135] Fix | Delete
require_once( WP_REVIEW_DIR . 'template-list.php' );
[136] Fix | Delete
[137] Fix | Delete
/* Loads the front-end functions. */
[138] Fix | Delete
require_once( WP_REVIEW_INCLUDES . 'functions.php' );
[139] Fix | Delete
[140] Fix | Delete
/* Loads ajax handles. */
[141] Fix | Delete
require_once( WP_REVIEW_INCLUDES . 'ajax.php' );
[142] Fix | Delete
[143] Fix | Delete
/* Loads the widget. */
[144] Fix | Delete
require_once( WP_REVIEW_INCLUDES . 'widget.php' );
[145] Fix | Delete
[146] Fix | Delete
/* Loads rate with comment functions. */
[147] Fix | Delete
require_once( WP_REVIEW_INCLUDES . 'comments.php' );
[148] Fix | Delete
[149] Fix | Delete
/* Loads the enqueue functions. */
[150] Fix | Delete
require_once( WP_REVIEW_INCLUDES . 'enqueue.php' );
[151] Fix | Delete
[152] Fix | Delete
/* Loads shortcodes */
[153] Fix | Delete
require_once( WP_REVIEW_INCLUDES . 'shortcodes.php' );
[154] Fix | Delete
[155] Fix | Delete
/* Loads the settings page. */
[156] Fix | Delete
require_once( WP_REVIEW_ADMIN . 'class-wp-review-options.php' );
[157] Fix | Delete
[158] Fix | Delete
/* Loads the form field class. */
[159] Fix | Delete
require_once( WP_REVIEW_ADMIN . 'class-wp-review-form-field.php' );
[160] Fix | Delete
[161] Fix | Delete
/* Loads the importer. */
[162] Fix | Delete
require_once( WP_REVIEW_ADMIN . 'class-wp-review-importer.php' );
[163] Fix | Delete
[164] Fix | Delete
/* Loads the demo importer. */
[165] Fix | Delete
require_once( WP_REVIEW_ADMIN . 'demo-importer.php' );
[166] Fix | Delete
[167] Fix | Delete
/* Loads the review notice. */
[168] Fix | Delete
require_once( WP_REVIEW_ADMIN . 'class-wpr-review-notice.php' );
[169] Fix | Delete
}
[170] Fix | Delete
endif;
[171] Fix | Delete
[172] Fix | Delete
if ( ! function_exists( 'wp_review_activation' ) ) :
[173] Fix | Delete
/**
[174] Fix | Delete
* Plugin activation.
[175] Fix | Delete
*/
[176] Fix | Delete
function wp_review_activation() {
[177] Fix | Delete
require_once( plugin_dir_path( __FILE__ ) . '/admin/activation.php' );
[178] Fix | Delete
}
[179] Fix | Delete
endif;
[180] Fix | Delete
[181] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function