: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Custom style for the plugin.
* @copyright Copyright (c) 2013, MyThemesShop
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
/* Enqueue style for this plugin. */
add_action( 'wp_enqueue_scripts', 'wp_review_enqueue', 12 );
* @since 3.0.0 Add font awesome.
function wp_review_enqueue() {
wp_register_style( 'wp_review-style', WP_REVIEW_ASSETS . 'css/wp-review.css', array(), WP_REVIEW_PLUGIN_VERSION, 'all' );
wp_register_script( 'js-cookie', WP_REVIEW_ASSETS . 'js/js.cookie.min.js', array(), '2.1.4', true );
wp_register_script( 'wp_review-js', WP_REVIEW_ASSETS . 'js/main.js', array( 'js-cookie', 'wp-util' ), WP_REVIEW_PLUGIN_VERSION, true );
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'loginRequiredMessage' => __( 'You must log in to add your review', 'wp-review' ),
wp_enqueue_script( 'js-cookie' );
wp_enqueue_script( 'wp_review-js' );
wp_enqueue_script( 'wp_review-jquery-appear' );
wp_enqueue_style( 'wp_review-style' );
* IE7 style for the font icon.
* @deprecated 3.0.0 Default icon font is no longer used.
function wp_review_ie7() {
_deprecated_function( __FUNCTION__, '3.0.0' );
<link rel="stylesheet" href="<?php echo trailingslashit( WP_REVIEW_ASSETS ) . 'css/wp-review-ie7.css'; ?>">