Skip to content

Commit

Permalink
php 7 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredharbour committed Jan 3, 2017
1 parent fa7b2b8 commit e4350c3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion hopper/grinder/beans/espresso-class-shortcode-button.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ static function &init() {
return $instance;
}

function Espresso_Shortcode_Button(){
function __construct(){

// Don't bother doing this stuff if the current user lacks permissions
if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') )
Expand Down
4 changes: 2 additions & 2 deletions hopper/grinder/beans/espresso-display-ids.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ static function &init() {
static $instance = false;

if ( !$instance ) {
$instance = new EspressoDisplayIDs;
$instance = new EspressoDisplayIDs();
}

return $instance;
}

function EspressoDisplayIDs(){
function __construct(){

wp_enqueue_style('espresso-displayid-css', PARENT_URL . '/hopper/css/espresso-displayid.css');

Expand Down
2 changes: 1 addition & 1 deletion hopper/grinder/beans/espresso-widget-flickr.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Espresso_Flickr extends WP_Widget {
function __construct() {
$widget_ops = array('description' => 'This Flickr widget populates photos from a Flickr ID.' );

parent::WP_Widget(false, __(apply_filters('espresso-widget-title', 'Espresso Flickr'), 'espresso'),$widget_ops);
parent::__construct(false, __(apply_filters('espresso-widget-title', 'Espresso Flickr'), 'espresso'),$widget_ops);
}

function widget($args, $instance) {
Expand Down
2 changes: 1 addition & 1 deletion hopper/grinder/beans/espresso-widget-nav.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Espresso_Nav_Menu_Widget extends WP_Widget {

function __construct() {
$widget_ops = array( 'description' => __('Use this widget to add a styled custom menu as a widget.') );
parent::WP_Widget( 'nav_menu_es', __(apply_filters('espresso-widget-title', 'Espresso Menu')), $widget_ops );
parent::__construct( 'nav_menu_es', __(apply_filters('espresso-widget-title', 'Espresso Menu')), $widget_ops );
}

function widget($args, $instance) {
Expand Down
2 changes: 1 addition & 1 deletion hopper/grinder/beans/espresso-widget-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Espresso_Post extends WP_Widget {
function __construct() {
$widget_ops = array( 'classname' => 'espressopost', 'description' => __('Displays featured posts with thumbnails', 'espresso') );
$control_ops = array( 'width' => 505, 'height' => 350, 'id_base' => 'espresso-post' );
$this->WP_Widget( 'espresso-post', __(apply_filters('espresso-widget-title', 'Espresso Posts'), 'espresso'), $widget_ops, $control_ops );
parent::__construct( 'espresso-post', __(apply_filters('espresso-widget-title', 'Espresso Posts'), 'espresso'), $widget_ops, $control_ops );
}

function widget($args, $instance) {
Expand Down
2 changes: 1 addition & 1 deletion hopper/grinder/beans/espresso-widget-tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function __construct () {
$control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => $this->tabs_widget_idbase );

/* Create the widget. */
$this->WP_Widget( $this->tabs_widget_idbase, $this->tabs_widget_title, $widget_ops, $control_ops );
parent::__construct( $this->tabs_widget_idbase, $this->tabs_widget_title, $widget_ops, $control_ops );

/* Load in assets for the widget. */
add_action( 'wp_enqueue_scripts', array( &$this, 'enqueue_styles' ) );
Expand Down
4 changes: 2 additions & 2 deletions hopper/grinder/beans/shortcodes/cycle-slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ function &init() {
static $instance = false;

if ( !$instance ) {
$instance = new CycleSliderPro;
$instance = new CycleSliderPro();
}

return $instance;
}

function CycleSliderPro() {
function __construct() {
add_shortcode('es-cycle', array($this, 'cycle_shortcode' ) );
add_action('wp_footer', array($this , 'add_script'));
add_filter('espresso_shortcode_box',array($this,'support_box_create'));
Expand Down
2 changes: 1 addition & 1 deletion hopper/grinder/class-espresso-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class EspressoImages {
var $menu_id;

// Plugin initialization
function EspressoImages() {
function __construct() {
if ( ! function_exists( 'admin_url' ) )
return false;

Expand Down

0 comments on commit e4350c3

Please sign in to comment.