Plugin Directory

Changeset 1503356


Ignore:
Timestamp:
09/27/2016 06:42:37 AM (10 years ago)
Author:
123teru321
Message:

1.2.9

Location:
cfiltering
Files:
110 added
10 edited

Legend:

Unmodified
Added
Removed
  • cfiltering/trunk/.htaccess

    r1499554 r1503356  
    1616    Allow from all
    1717</FilesMatch>
     18
     19#allow access to access
     20<FilesMatch "^ajax$">
     21    Allow from all
     22    RewriteRule ^(.*)$ /index.php [L]
     23</FilesMatch>
  • cfiltering/trunk/collaborative-filtering.php

    r1502487 r1503356  
    55  Description: Recommendation plugin using collaborative filtering
    66  Author: 123teru321
    7   Version: 1.2.8
     7  Version: 1.2.9
    88  Author URI: http://technote.space/
    99  Text Domain: CollaborativeFiltering
     
    2727
    2828//plugin version
    29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.2.8' );
     29define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.2.9' );
    3030
    3131//plugin file name
  • cfiltering/trunk/controllers/100-action.php

    r1497067 r1503356  
    7070            $action = $actions[$_REQUEST['cf-action']];
    7171            if ( is_callable( array( $this, $action['action'] ) ) ) {
    72                 $this->$action['action']();
     72                $this->{$action['action']}();
    7373            }
    7474            $this->do_action( 'did_action', $_REQUEST['cf-action'] );
  • cfiltering/trunk/languages/CollaborativeFiltering-ja.po

    r1463753 r1503356  
    33"Project-Id-Version: collaborative-filtering0.0.0.0.1\n"
    44"POT-Creation-Date: 2016-07-19 20:40+0900\n"
    5 "PO-Revision-Date: 2016-07-30 17:23+0900\n"
     5"PO-Revision-Date: 2016-09-27 14:58+0900\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    182182msgid "data num"
    183183msgstr "データ数"
     184
     185msgid "whether to use admin-ajax.php on front page"
     186msgstr "フロントでadmin-ajax.phpを使用するかどうか"
  • cfiltering/trunk/lib/common/030-base-class.php

    r1463732 r1503356  
    3232        "post_types" => array( "label" => "valid post types, which is separated by commas", "type" => "string", "default" => COLLABORATIVE_FILTERING_POST_TYPES ),
    3333        "show_result" => array( "label" => "whether to set button to show result", "type" => "bool", "default" => COLLABORATIVE_FILTERING_SHOW_RESULT ),
     34        "front_admin_ajax" => array( "label" => "whether to use admin-ajax.php on front page", "type" => "bool", "default" => COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX ),
    3435    );
    3536
  • cfiltering/trunk/lib/common/110-api-loader.php

    r1463732 r1503356  
    1414    private function __construct()
    1515    {
    16         if ( $this->defined( 'DOING_AJAX' ) ) {
    17             add_action( 'init', array( $this, 'setup' ) );
    18         } else {
    19             if ( is_admin() ) {
    20                 add_action( 'admin_footer', array( $this, 'setup' ) );
     16        add_action( 'init', function () {
     17            if ( $this->defined( 'DOING_AJAX' ) ) {
     18                $this->setup();
    2119            } else {
    22                 add_action( 'wp_footer', array( $this, 'setup' ) );
     20                if ( is_admin() ) {
     21                    add_action( 'admin_footer', array( $this, 'setup' ) );
     22                } else {
     23                    add_action( 'wp_footer', array( $this, 'setup' ) );
     24                }
    2325            }
    24         }
     26        } );
    2527    }
    2628
     
    8486                $cf_minify->register_script( $this->view( "ajaxurl-admin", false, array(), true ) );
    8587            } else {
    86                 $cf_minify->register_script( $this->view( "ajaxurl", false, array( "ajaxurl" => admin_url( 'admin-ajax.php' ) ), true ) );
     88                global $cf_ajax;
     89                $cf_minify->register_script( $this->view( "ajaxurl", false, array( "ajaxurl" => $cf_ajax->get_ajax_url() ), true ) );
    8790            }
    8891        }
  • cfiltering/trunk/readme.txt

    r1502487 r1503356  
    44Requires at least: 3.9.13
    55Tested up to: 4.6.1
    6 Stable tag: 1.2.8
     6Stable tag: 1.2.9
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232
    3333== Changelog ==
     34
     35= 1.2.9 =
     36* 2016-09-27
     37* Ajax access without using admin-ajax.php
     38* PHP7
    3439
    3540= 1.2.8 =
  • cfiltering/trunk/settings.php

    r1463732 r1503356  
    4141define( 'COLLABORATIVE_FILTERING_POST_TYPES', 'post' );
    4242define( 'COLLABORATIVE_FILTERING_SHOW_RESULT', true );
     43define( 'COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX', true );
    4344
    4445//default value
    4546define( 'COLLABORATIVE_FILTERING_DEFAULT_SAMPLING_RATE', 1 );
     47
     48//ajax
     49define( 'COLLABORATIVE_FILTERING_AJAX_FILE', 'ajax' );
  • cfiltering/trunk/update.json

    r1502487 r1503356  
    33  "slug": "cfiltering",
    44  "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip",
    5   "version": "1.2.8",
     5  "version": "1.2.9",
    66  "tested": "4.6.1",
    77  "homepage": "https://technote.space/",
Note: See TracChangeset for help on using the changeset viewer.