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/entry-vi.../inc
File: shortcodes.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Shortcodes for the plgin.
[2] Fix | Delete
*
[3] Fix | Delete
* @package EntryViews
[4] Fix | Delete
* @version 1.0.0
[5] Fix | Delete
* @author Justin Tadlock <justin@justintadlock.com>
[6] Fix | Delete
* @copyright Copyright (c) 2010 - 2014, Justin Tadlock
[7] Fix | Delete
* @link http://themehybrid.com/plugins/entry-views
[8] Fix | Delete
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
/* Register shortcodes. */
[12] Fix | Delete
add_action( 'init', 'ev_register_shortcodes' );
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Registers shortcodes for the plugin.
[16] Fix | Delete
*
[17] Fix | Delete
* @since 1.0.0
[18] Fix | Delete
* @access public
[19] Fix | Delete
* @return void
[20] Fix | Delete
*/
[21] Fix | Delete
function ev_register_shortcodes() {
[22] Fix | Delete
[23] Fix | Delete
add_shortcode( 'entry-views', 'ev_entry_views_shortcode' );
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Gets the number of views a specific post has.
[28] Fix | Delete
*
[29] Fix | Delete
* @since 1.0.0
[30] Fix | Delete
* @access public
[31] Fix | Delete
* @param array $attr Attributes for use in the shortcode.
[32] Fix | Delete
* @return string
[33] Fix | Delete
*/
[34] Fix | Delete
function ev_entry_views_shortcode( $attr = '' ) {
[35] Fix | Delete
[36] Fix | Delete
$defaults = array(
[37] Fix | Delete
'before' => '',
[38] Fix | Delete
'after' => '',
[39] Fix | Delete
'text' => '',
[40] Fix | Delete
'post_id' => get_the_ID()
[41] Fix | Delete
);
[42] Fix | Delete
[43] Fix | Delete
$attr = shortcode_atts( $defaults, $attr, 'entry-views' );
[44] Fix | Delete
[45] Fix | Delete
return ev_get_post_views( $attr );
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function