WordPress.org

Plugin Directory

Changeset 615344


Ignore:
Timestamp:
10/21/12 19:31:42 (18 months ago)
Author:
MattyRob
Message:

Minor code layout updates

Location:
subscribe2/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • subscribe2/trunk/admin/settings.php

    r614694 r615344  
    7272                    wp_clear_scheduled_hook('s2_digest_cron'); 
    7373                    $scheds = (array)wp_get_schedules(); 
    74                     $interval = ( isset($scheds[$email_freq]['interval']) ) ? (int) $scheds[$email_freq]['interval'] : 0; 
     74                    $interval = ( isset($scheds[$email_freq]['interval']) ) ? (int)$scheds[$email_freq]['interval'] : 0; 
    7575                    if ( $interval == 0 ) { 
    7676                        // if we are on per-post emails remove last_cron entry 
  • subscribe2/trunk/admin/subscribers.php

    r610163 r615344  
    130130} 
    131131 
    132 if( !class_exists('WP_List_Table') ){ 
     132if ( !class_exists('WP_List_Table') ){ 
    133133    require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); 
    134134} 
  • subscribe2/trunk/classes/class-s2-admin.php

    r614698 r615344  
    66    */ 
    77    function admin_menu() { 
    8         add_menu_page (__('Subscribe2', 'subscribe2'), __('Subscribe2', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', NULL, S2URL . 'include/email_edit.png'); 
     8        add_menu_page(__('Subscribe2', 'subscribe2'), __('Subscribe2', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', NULL, S2URL . 'include/email_edit.png'); 
    99 
    1010        $s2user = add_submenu_page('s2', __('Your Subscriptions', 'subscribe2'), __('Your Subscriptions', 'subscribe2'), apply_filters('s2_capability', "read", 'user'), 's2', array(&$this, 'user_menu'), S2URL . 'include/email_edit.png'); 
  • subscribe2/trunk/include/options.php

    r596231 r615344  
    3939} // option for displaying 'one-click' option on profile page 
    4040 
    41 if(!isset($this->subscribe2_options['bcclimit'])) { 
     41if (!isset($this->subscribe2_options['bcclimit'])) { 
    4242    $this->subscribe2_options['bcclimit'] = 1; 
    4343} // option for default bcc limit on email notifications 
     
    5151} // option for tracking 
    5252 
    53 if(!isset($this->subscribe2_options['s2page'])) { 
     53if (!isset($this->subscribe2_options['s2page'])) { 
    5454    $this->subscribe2_options['s2page'] = 0; 
    5555} // option for default WordPress page for Subscribe2 to use 
     
    9999} // option for excluded categories to be overriden for registered users 
    100100 
    101 if(!isset($this->subscribe2_options['show_meta'])) { 
     101if (!isset($this->subscribe2_options['show_meta'])) { 
    102102    $this->subscribe2_options['show_meta'] = "0"; 
    103103} // option to display link to subscribe2 page from 'meta' 
     
    119119} // option to enable Subscribe2 Counter Widget 
    120120 
    121 if(!isset($this->subscribe2_options['s2meta_default'])) { 
     121if (!isset($this->subscribe2_options['s2meta_default'])) { 
    122122    $this->subscribe2_options['s2meta_default'] = "0"; 
    123123} // option for Subscribe2 over ride postmeta to be checked by default 
  • subscribe2/trunk/uninstall.php

    r422296 r615344  
    11<?php 
    2 if( !defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') ) { 
     2if ( !defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') ) { 
    33    // Make sure not to call this file directly 
    44    exit(); 
Note: See TracChangeset for help on using the changeset viewer.