Changeset 1510051
- Timestamp:
- 10/07/2016 02:35:46 PM (9 years ago)
- Location:
- cfiltering
- Files:
-
- 139 added
- 10 edited
-
tags/1.3.9 (added)
-
tags/1.3.9/.htaccess (added)
-
tags/1.3.9/README.md (added)
-
tags/1.3.9/apis (added)
-
tags/1.3.9/apis/access.php (added)
-
tags/1.3.9/apis/check-ajax.php (added)
-
tags/1.3.9/apis/get-tests.php (added)
-
tags/1.3.9/apis/reflect-results.php (added)
-
tags/1.3.9/apis/related-post.php (added)
-
tags/1.3.9/collaborative-filtering.php (added)
-
tags/1.3.9/controllers (added)
-
tags/1.3.9/controllers/001-setting.php (added)
-
tags/1.3.9/controllers/100-action.php (added)
-
tags/1.3.9/controllers/900-log.php (added)
-
tags/1.3.9/controllers/index.php (added)
-
tags/1.3.9/db-config.php (added)
-
tags/1.3.9/emblemmatic-c-filtering-logo-58.png (added)
-
tags/1.3.9/functions.php (added)
-
tags/1.3.9/index.php (added)
-
tags/1.3.9/languages (added)
-
tags/1.3.9/languages/CollaborativeFiltering-ja.mo (added)
-
tags/1.3.9/languages/CollaborativeFiltering-ja.po (added)
-
tags/1.3.9/lib (added)
-
tags/1.3.9/lib/apis (added)
-
tags/1.3.9/lib/apis/nonce.php (added)
-
tags/1.3.9/lib/base (added)
-
tags/1.3.9/lib/common (added)
-
tags/1.3.9/lib/common/010-defines.php (added)
-
tags/1.3.9/lib/common/030-base-class.php (added)
-
tags/1.3.9/lib/common/040-db.php (added)
-
tags/1.3.9/lib/common/050-db_config.php (added)
-
tags/1.3.9/lib/common/080-model-base.php (added)
-
tags/1.3.9/lib/common/090-api-base.php (added)
-
tags/1.3.9/lib/common/100-controller-base.php (added)
-
tags/1.3.9/lib/common/110-api-loader.php (added)
-
tags/1.3.9/lib/common/120-controller-loader.php (added)
-
tags/1.3.9/lib/common/130-service-base.php (added)
-
tags/1.3.9/lib/library (added)
-
tags/1.3.9/lib/library/YUI-CSS-compressor (added)
-
tags/1.3.9/lib/library/YUI-CSS-compressor/cssmin.php (added)
-
tags/1.3.9/lib/library/jsmin-php (added)
-
tags/1.3.9/lib/library/jsmin-php/README.md (added)
-
tags/1.3.9/lib/library/jsmin-php/jsmin.php (added)
-
tags/1.3.9/lib/library/jsmin-php/test (added)
-
tags/1.3.9/lib/library/jsmin-php/test/setup.php (added)
-
tags/1.3.9/lib/library/jsmin-php/test/test.php (added)
-
tags/1.3.9/lib/library/jsmin-php/test/utf8-with-bom.js (added)
-
tags/1.3.9/lib/library/plugin-update-checker (added)
-
tags/1.3.9/lib/library/plugin-update-checker/README.md (added)
-
tags/1.3.9/lib/library/plugin-update-checker/composer.json (added)
-
tags/1.3.9/lib/library/plugin-update-checker/css (added)
-
tags/1.3.9/lib/library/plugin-update-checker/css/puc-debug-bar.css (added)
-
tags/1.3.9/lib/library/plugin-update-checker/debug-bar-panel.php (added)
-
tags/1.3.9/lib/library/plugin-update-checker/debug-bar-plugin.php (added)
-
tags/1.3.9/lib/library/plugin-update-checker/github-checker.php (added)
-
tags/1.3.9/lib/library/plugin-update-checker/js (added)
-
tags/1.3.9/lib/library/plugin-update-checker/js/debug-bar.js (added)
-
tags/1.3.9/lib/library/plugin-update-checker/languages (added)
-
tags/1.3.9/lib/library/plugin-update-checker/languages/plugin-update-checker-fr_FR.mo (added)
-
tags/1.3.9/lib/library/plugin-update-checker/languages/plugin-update-checker-fr_FR.po (added)
-
tags/1.3.9/lib/library/plugin-update-checker/languages/plugin-update-checker-hu_HU.mo (added)
-
tags/1.3.9/lib/library/plugin-update-checker/languages/plugin-update-checker-hu_HU.po (added)
-
tags/1.3.9/lib/library/plugin-update-checker/languages/plugin-update-checker.pot (added)
-
tags/1.3.9/lib/library/plugin-update-checker/license.txt (added)
-
tags/1.3.9/lib/library/plugin-update-checker/plugin-update-checker.php (added)
-
tags/1.3.9/lib/library/plugin-update-checker/vendor (added)
-
tags/1.3.9/lib/library/plugin-update-checker/vendor/Parsedown.php (added)
-
tags/1.3.9/lib/library/plugin-update-checker/vendor/ParsedownLegacy.php (added)
-
tags/1.3.9/lib/library/plugin-update-checker/vendor/readme-parser.php (added)
-
tags/1.3.9/lib/load.php (added)
-
tags/1.3.9/lib/public (added)
-
tags/1.3.9/lib/public/css (added)
-
tags/1.3.9/lib/public/css/index.php (added)
-
tags/1.3.9/lib/public/fonts (added)
-
tags/1.3.9/lib/public/fonts/index.php (added)
-
tags/1.3.9/lib/public/img (added)
-
tags/1.3.9/lib/public/img/back.png (added)
-
tags/1.3.9/lib/public/img/index.php (added)
-
tags/1.3.9/lib/public/img/loading.gif (added)
-
tags/1.3.9/lib/public/index.php (added)
-
tags/1.3.9/lib/public/js (added)
-
tags/1.3.9/lib/public/js/index.php (added)
-
tags/1.3.9/lib/public/plugins (added)
-
tags/1.3.9/lib/public/plugins/index.php (added)
-
tags/1.3.9/lib/services (added)
-
tags/1.3.9/lib/services/device-service.php (added)
-
tags/1.3.9/lib/services/minify-service.php (added)
-
tags/1.3.9/lib/services/option-service.php (added)
-
tags/1.3.9/lib/services/post-service.php (added)
-
tags/1.3.9/lib/services/system-service.php (added)
-
tags/1.3.9/lib/services/user-service.php (added)
-
tags/1.3.9/lib/views (added)
-
tags/1.3.9/lib/views/ajaxurl-admin.php (added)
-
tags/1.3.9/lib/views/ajaxurl.php (added)
-
tags/1.3.9/lib/views/modal-script.php (added)
-
tags/1.3.9/lib/views/modal-style.php (added)
-
tags/1.3.9/logs (added)
-
tags/1.3.9/models (added)
-
tags/1.3.9/models/access.php (added)
-
tags/1.3.9/models/index.php (added)
-
tags/1.3.9/models/number.php (added)
-
tags/1.3.9/public (added)
-
tags/1.3.9/public/css (added)
-
tags/1.3.9/public/css/index.php (added)
-
tags/1.3.9/public/fonts (added)
-
tags/1.3.9/public/fonts/index.php (added)
-
tags/1.3.9/public/img (added)
-
tags/1.3.9/public/img/index.php (added)
-
tags/1.3.9/public/img/logo.png (added)
-
tags/1.3.9/public/index.php (added)
-
tags/1.3.9/public/js (added)
-
tags/1.3.9/public/js/index.php (added)
-
tags/1.3.9/public/plugins (added)
-
tags/1.3.9/public/plugins/index.php (added)
-
tags/1.3.9/readme.txt (added)
-
tags/1.3.9/screenshot-1.png (added)
-
tags/1.3.9/screenshot-2.png (added)
-
tags/1.3.9/services (added)
-
tags/1.3.9/services/ajax.php (added)
-
tags/1.3.9/services/calculate.php (added)
-
tags/1.3.9/services/clear.php (added)
-
tags/1.3.9/services/index.php (added)
-
tags/1.3.9/services/number.php (added)
-
tags/1.3.9/services/show-related-post.php (added)
-
tags/1.3.9/services/test.php (added)
-
tags/1.3.9/services/update.php (added)
-
tags/1.3.9/settings.php (added)
-
tags/1.3.9/uninstall.php (added)
-
tags/1.3.9/unsupported.php (added)
-
tags/1.3.9/update.json (added)
-
tags/1.3.9/views (added)
-
tags/1.3.9/views/action.php (added)
-
tags/1.3.9/views/index.php (added)
-
tags/1.3.9/views/log.php (added)
-
tags/1.3.9/views/setting.php (added)
-
tags/1.3.9/views/show-related-post-script.php (added)
-
tags/1.3.9/views/show-related-post.php (added)
-
tags/1.3.9/views/test-script.php (added)
-
tags/1.3.9/views/test.php (added)
-
trunk/apis/access.php (modified) (1 diff)
-
trunk/collaborative-filtering.php (modified) (2 diffs)
-
trunk/languages/CollaborativeFiltering-ja.mo (modified) (previous)
-
trunk/languages/CollaborativeFiltering-ja.po (modified) (3 diffs)
-
trunk/lib/common/030-base-class.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/services/calculate.php (modified) (2 diffs)
-
trunk/settings.php (modified) (1 diff)
-
trunk/unsupported.php (modified) (1 diff)
-
trunk/update.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cfiltering/trunk/apis/access.php
r1506356 r1510051 41 41 { 42 42 global $post; 43 return $this->apply_filters( "access_api_filter", is_singular( $this->valid_post_types() ), $post);43 return $this->apply_filters( 'access_api_filter', in_array( $post->post_type, $this->valid_post_types() ) ); 44 44 } 45 45 -
cfiltering/trunk/collaborative-filtering.php
r1506571 r1510051 5 5 Description: Recommendation plugin using collaborative filtering 6 6 Author: 123teru321 7 Version: 1.3. 77 Version: 1.3.9 8 8 Author URI: http://technote.space/ 9 9 Text Domain: CollaborativeFiltering … … 27 27 28 28 //plugin version 29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.3. 7' );29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.3.9' ); 30 30 31 31 //required php version -
cfiltering/trunk/languages/CollaborativeFiltering-ja.po
r1506356 r1510051 3 3 "Project-Id-Version: collaborative-filtering0.0.0.0.1\n" 4 4 "POT-Creation-Date: 2016-07-19 20:40+0900\n" 5 "PO-Revision-Date: 2016-10-0 1 12:25+0900\n"5 "PO-Revision-Date: 2016-10-07 21:35+0900\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 150 150 msgstr "有効な投稿タイプ。複数ある場合はコンマで区切って入力します" 151 151 152 msgid "valid post statuses, which is separated by commas" 153 msgstr "有効な投稿ステータス。複数ある場合はコンマで区切って入力します" 154 152 155 msgid "Invalidate all user cookie if nonce check is valid." 153 156 msgstr "全てのユーザーのクッキーを無効化(nonceチェックが有効な場合)" … … 189 192 msgstr "nonceチェックをせずにAjaxアクセスする場合にリファラをチェックするかどうか" 190 193 191 msgid "Please update your PHP. <strong>%s</strong> requires PHP version %s or above" 192 msgstr "PHPをアップデートして下さい。 <strong>%s</strong>の動作にはPHP%s以上が必要です。" 194 msgid "Your PHP version is %s." 195 msgstr "あなたのPHPのバージョンは%sです。" 196 197 msgid "Please update your PHP." 198 msgstr "PHPをアップデートして下さい。" 199 200 msgid "<strong>%s</strong> requires PHP version %s or above." 201 msgstr "<strong>%s</strong>の動作にはPHP%s以上が必要です。" 193 202 194 203 msgid "Changed [%s] to [%s]" -
cfiltering/trunk/lib/common/030-base-class.php
r1506356 r1510051 31 31 "calculate_number" => array( "label" => "max number of calculations of per", "type" => "int", "default" => COLLABORATIVE_FILTERING_CALCULATE_NUMBER, "min" => 10 ), 32 32 "post_types" => array( "label" => "valid post types, which is separated by commas", "type" => "string", "default" => COLLABORATIVE_FILTERING_POST_TYPES ), 33 "post_statuses" => array( "label" => "valid post statuses, which is separated by commas", "type" => "string", "default" => COLLABORATIVE_FILTERING_POST_STATUSES ), 33 34 "show_result" => array( "label" => "whether to set button to show result", "type" => "bool", "default" => COLLABORATIVE_FILTERING_SHOW_RESULT ), 34 35 "front_admin_ajax" => array( "label" => "whether to use admin-ajax.php on front page", "type" => "bool", "default" => COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX ), … … 245 246 } 246 247 248 protected function valid_post_statuses() 249 { 250 return array_filter( array_map( 'trim', explode( ',', $this->apply_filters( 'post_statuses', COLLABORATIVE_FILTERING_POST_STATUSES ) ) ) ); 251 } 252 247 253 protected function get_server_key() 248 254 { -
cfiltering/trunk/readme.txt
r1506571 r1510051 4 4 Requires at least: 3.9.13 5 5 Tested up to: 4.6.1 6 Stable tag: 1.3. 76 Stable tag: 1.3.9 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 32 32 33 33 == Changelog == 34 35 = 1.3.9 = 36 * 2016-10-07 37 * Add post filter by post_status 38 * Small bug fix 39 40 = 1.3.8 = 41 * 2016-10-02 Show php version when PHP version < 5.4 34 42 35 43 = 1.3.7 = -
cfiltering/trunk/services/calculate.php
r1506356 r1510051 304 304 $ret = !is_array( $ret ) ? array() : $ret; 305 305 $post_types = $this->valid_post_types(); 306 $ret = array_map( function ( $d ) use ( $post_types ) { 306 $post_statuses = $this->valid_post_statuses(); 307 $ret = array_map( function ( $d ) use ( $post_types, $post_statuses ) { 307 308 $post = get_post( $d['post_id'] ); 308 309 if ( !$post ) { … … 310 311 } 311 312 if ( !empty( $post_types ) && !in_array( $post->post_type, $post_types ) ) { 313 return false; 314 } 315 if ( !empty( $post_statuses ) && !in_array( $post->post_status, $post_statuses ) ) { 312 316 return false; 313 317 } -
cfiltering/trunk/settings.php
r1506356 r1510051 35 35 define( 'COLLABORATIVE_FILTERING_CALCULATE_NUMBER', 10000 ); 36 36 define( 'COLLABORATIVE_FILTERING_POST_TYPES', 'post' ); 37 define( 'COLLABORATIVE_FILTERING_POST_STATUSES', 'publish' ); 37 38 define( 'COLLABORATIVE_FILTERING_SHOW_RESULT', true ); 38 39 define( 'COLLABORATIVE_FILTERING_FRONT_ADMIN_AJAX', false ); -
cfiltering/trunk/unsupported.php
r1506356 r1510051 7 7 function cf_old_php_message() 8 8 { 9 return sprintf( __( 'Please update your PHP. <strong>%s</strong> requires PHP version %s or above', COLLABORATIVE_FILTERING_TEXT_DOMAIN ), COLLABORATIVE_FILTERING_PLUGIN_NAME, COLLABORATIVE_FILTERING_REQUIRED_PHP_VERSION ); 9 $ret = sprintf( __( 'Your PHP version is %s.', COLLABORATIVE_FILTERING_TEXT_DOMAIN ), phpversion() ) . '<br>'; 10 $ret .= __( 'Please update your PHP.', COLLABORATIVE_FILTERING_TEXT_DOMAIN ) . '<br>'; 11 $ret .= sprintf( __( '<strong>%s</strong> requires PHP version %s or above.', COLLABORATIVE_FILTERING_TEXT_DOMAIN ), COLLABORATIVE_FILTERING_PLUGIN_NAME, COLLABORATIVE_FILTERING_REQUIRED_PHP_VERSION ); 12 return $ret; 10 13 } 11 14 -
cfiltering/trunk/update.json
r1506571 r1510051 3 3 "slug": "cfiltering", 4 4 "download_url": "https://github.com/123teru321/CFiltering/archive/master.zip", 5 "version": "1.3. 7",5 "version": "1.3.9", 6 6 "tested": "4.6.1", 7 7 "homepage": "https://technote.space/",
Note: See TracChangeset
for help on using the changeset viewer.