Plugin Directory

Changeset 1518671


Ignore:
Timestamp:
10/20/2016 03:25:14 PM (9 years ago)
Author:
123teru321
Message:

1.4.6

Location:
cfiltering
Files:
141 added
5 edited

Legend:

Unmodified
Added
Removed
  • cfiltering/trunk/ajax.php

    r1517312 r1518671  
    22namespace CollaborativeFilteringService;
    33
    4 if ( !defined( 'COLLABORATIVE_FILTERING_PLUGIN' ) && defined( 'ABSPATH' ) ) {
     4if ( defined( 'COLLABORATIVE_FILTERING_PLUGIN' ) || defined( 'ABSPATH' ) ) {
    55    header( 'HTTP/1.1 403 Forbidden' );
    66    echo 'Forbidden';
     
    2727header( 'HTTP/1.1 500 Internal Server Error' );
    2828echo 'Internal Server Error';
    29 die( '0' );
     29die( );
  • cfiltering/trunk/collaborative-filtering.php

    r1517362 r1518671  
    55  Description: Recommendation plugin using collaborative filtering
    66  Author: 123teru321
    7   Version: 1.4.4
     7  Version: 1.4.6
    88  Author URI: http://technote.space/
    99  Text Domain: CollaborativeFiltering
     
    2727
    2828//plugin version
    29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.4.4' );
     29define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.4.6' );
    3030
    3131//required php version
  • cfiltering/trunk/readme.txt

    r1517362 r1518671  
    44Requires at least: 3.9.13
    55Tested up to: 4.6.1
    6 Stable tag: 1.4.4
     6Stable tag: 1.4.6
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232
    3333== Changelog ==
     34
     35= 1.4.6 =
     36* 2016-10-21  Small bug fix
     37
     38= 1.4.5 =
     39* 2016-10-20
     40* Changed ajax check way
     41* Added check_ajax_url filter
    3442
    3543= 1.4.4 =
  • cfiltering/trunk/services/ajax.php

    r1517312 r1518671  
    1313    {
    1414        add_action( 'init', function () {
    15             if ( !$this->mod_rewrite_ajax_access() && $this->defined( 'COLLABORATIVE_FILTERING_AJAX_ACCESS' ) ) {
     15            if ( $this->defined( 'COLLABORATIVE_FILTERING_AJAX_ACCESS' ) ) {
    1616                add_action( 'wp_loaded', array( $this, 'setup' ) );
    1717            } elseif ( $this->mod_rewrite_ajax_access() ) {
     
    3535        }
    3636
    37         $exploded = explode( '?', home_url( $_SERVER["REQUEST_URI"], $this->get_url_scheme() ) );
    38         if ( $exploded[0] !== $this->get_ajax_url() ) {
     37        if ( !$this->check_ajax_url() ) {
    3938            return;
    4039        }
     
    4645
    4746        add_action( 'wp_loaded', array( $this, 'setup' ) );
     47    }
     48
     49    private function check_ajax_url()
     50    {
     51        return $this->apply_filters( 'check_ajax_url', $_SERVER["REQUEST_URI"] === $this->get_ajax_url( null, 'relative', true ) );
    4852    }
    4953
  • cfiltering/trunk/update.json

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