Plugin Directory

Changeset 1643307


Ignore:
Timestamp:
04/23/2017 04:57:59 PM (9 years ago)
Author:
racanu
Message:

Moved settings menu entry; send updates only on new article

Location:
keep-in-touch/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • keep-in-touch/trunk/class-keep-in-touch-msg.php

    r1638852 r1643307  
    352352            'date_query' => array(
    353353                array(
    354                     'column'    => 'post_modified_gmt',
     354                    //'column'    => 'post_modified_gmt',
     355                    'column'    => 'post_date_gmt',
    355356                    'after'     => date('Y-m-d', strtotime('yesterday')),
    356357                    //'before'    => date('Y-m-d', strtotime('today')),
     
    368369            'date_query' => array(
    369370                array(
    370                     'column'    => 'post_modified_gmt',
     371                    //'column'    => 'post_modified_gmt',
     372                    'column'    => 'post_date_gmt',
    371373                    'after'     => date('Y-m-d', strtotime('-1 week')),
    372374                    'inclusive' => true,
  • keep-in-touch/trunk/class-virtual-page.php

    r1638852 r1643307  
    7575        global $wp, $wp_query;
    7676
    77         if (count($posts) == 0 &&
    78             (strcasecmp($wp->request, $this->slug) == 0 || $wp->query_vars['page_id'] == $this->slug))
     77        if (count($posts) == 0 /*and (strcasecmp($wp->request, $this->slug) == 0 || $wp->query_vars['page_id'] == $this->slug)*/)
    7978        {
    8079            // set filter results
  • keep-in-touch/trunk/keep-in-touch.php

    r1638717 r1643307  
    166166    static function plugin_menu()
    167167    {
    168         add_options_page('Keep in Touch', 'Keep in Touch', 'manage_options', 'keep-in-touch', array('Keep_In_Touch_Settings', 'plugin_options'));
     168        add_menu_page(__('Keep in Touch', 'keep-in-touch'), __('Keep in Touch', 'keep-in-touch'), 'activate_plugins', 'keep-in-touch', array('Keep_In_Touch_Settings', 'plugin_options'), 'dashicons-admin-links', 26);
    169169    }
    170170}
Note: See TracChangeset for help on using the changeset viewer.