Plugin Directory

Changeset 1155618


Ignore:
Timestamp:
05/07/2015 07:49:55 PM (11 years ago)
Author:
websitezcom
Message:

Fixing the filters and actions for the admin

Location:
wp-mobile-detector
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-mobile-detector/tags/3.0/admin/admin-page.php

    r1155575 r1155618  
    33    error_reporting(0);
    44}
    5 
    6 add_action('wp_ajax_websitez_options', 'websitez_save_options');
    75
    86function websitez_save_options() {
  • wp-mobile-detector/tags/3.0/functions.php

    r1155606 r1155618  
    33    error_reporting(0);
    44}
    5 
    6 add_filter('bloginfo', 'websitez_mobile_title', 10, 2);
    7 add_filter( 'cron_schedules', 'wz_cron_add_monthly' );
    8 add_filter('plugin_action_links', 'websitez_settings_link', 10, 2 );
    9 add_action("activated_plugin", "websitez_plugin_activated");
    10 add_filter('pre_get_posts', 'websitez_post_results');
    115
    126function websitez_check_for_update(){
     
    993987
    994988        if($mobile_device['type'] == "2"){ //Standard device
     989            add_filter('bloginfo', 'websitez_mobile_title', 10, 2);
     990            add_filter('pre_get_posts', 'websitez_post_results');
    995991            if(strlen($websitez_options['general']['remove_shortcodes']) > 0){
    996992                websitez_nullify_shortcodes($websitez_options['general']['remove_shortcodes']);
     
    10191015            }
    10201016        }else if($mobile_device['type'] == "1"){ //Smart device
     1017            add_filter('bloginfo', 'websitez_mobile_title', 10, 2);
     1018            add_filter('pre_get_posts', 'websitez_post_results');
    10211019            if(strlen($websitez_options['general']['disable_plugins']) > 0){
    10221020                $disabled = explode(",", $websitez_options['general']['disable_plugins']);
  • wp-mobile-detector/trunk/admin/admin-page.php

    r1155575 r1155618  
    33    error_reporting(0);
    44}
    5 
    6 add_action('wp_ajax_websitez_options', 'websitez_save_options');
    75
    86function websitez_save_options() {
  • wp-mobile-detector/trunk/functions.php

    r1155606 r1155618  
    33    error_reporting(0);
    44}
    5 
    6 add_filter('bloginfo', 'websitez_mobile_title', 10, 2);
    7 add_filter( 'cron_schedules', 'wz_cron_add_monthly' );
    8 add_filter('plugin_action_links', 'websitez_settings_link', 10, 2 );
    9 add_action("activated_plugin", "websitez_plugin_activated");
    10 add_filter('pre_get_posts', 'websitez_post_results');
    115
    126function websitez_check_for_update(){
     
    993987
    994988        if($mobile_device['type'] == "2"){ //Standard device
     989            add_filter('bloginfo', 'websitez_mobile_title', 10, 2);
     990            add_filter('pre_get_posts', 'websitez_post_results');
    995991            if(strlen($websitez_options['general']['remove_shortcodes']) > 0){
    996992                websitez_nullify_shortcodes($websitez_options['general']['remove_shortcodes']);
     
    10191015            }
    10201016        }else if($mobile_device['type'] == "1"){ //Smart device
     1017            add_filter('bloginfo', 'websitez_mobile_title', 10, 2);
     1018            add_filter('pre_get_posts', 'websitez_post_results');
    10211019            if(strlen($websitez_options['general']['disable_plugins']) > 0){
    10221020                $disabled = explode(",", $websitez_options['general']['disable_plugins']);
Note: See TracChangeset for help on using the changeset viewer.