Plugin Directory

Changeset 1503847


Ignore:
Timestamp:
09/27/2016 04:41:58 PM (10 years ago)
Author:
123teru321
Message:

1.3.2

Location:
cfiltering
Files:
110 added
4 edited

Legend:

Unmodified
Added
Removed
  • cfiltering/trunk/collaborative-filtering.php

    r1503739 r1503847  
    55  Description: Recommendation plugin using collaborative filtering
    66  Author: 123teru321
    7   Version: 1.3.1
     7  Version: 1.3.2
    88  Author URI: http://technote.space/
    99  Text Domain: CollaborativeFiltering
     
    2727
    2828//plugin version
    29 define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.3.1' );
     29define( 'COLLABORATIVE_FILTERING_PLUGIN_VERSION', '1.3.2' );
    3030
    3131//plugin file name
  • cfiltering/trunk/readme.txt

    r1503739 r1503847  
    44Requires at least: 3.9.13
    55Tested up to: 4.6.1
    6 Stable tag: 1.3.1
     6Stable tag: 1.3.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3232
    3333== Changelog ==
     34
     35= 1.3.2 =
     36* 2016-09-28
     37* Add filter of posts column priority
     38* Small bug fix
    3439
    3540= 1.3.1 =
  • cfiltering/trunk/services/show-related-post.php

    r1463732 r1503847  
    5050            $cf_minify->register_css( $this->view( 'modal-style', false, array( 'loading_file' => $loading_file, "back_file" => $back_file ), true ) );
    5151
    52             add_filter( 'manage_post_posts_columns', function ( $columns ) {
     52            add_filter( "manage_{$post_type}_posts_columns", function ( $columns ) {
    5353                $columns['cf_show_related_post'] = __( 'recommendation', COLLABORATIVE_FILTERING_TEXT_DOMAIN );
    5454                return $columns;
    55             } );
    56             add_action( 'manage_post_posts_custom_column', function ( $column_name, $post_id ) {
     55            }, $this->apply_filters( 'manage_posts_columns_priority', 10 ) );
     56            add_action( "manage_{$post_type}_posts_custom_column", function ( $column_name, $post_id ) {
    5757                if ( 'cf_show_related_post' !== $column_name ) {
    5858                    return;
    5959                }
    6060                ?>
    61                 <input type="button" value="<?php echo esc_attr( __( 'show', COLLABORATIVE_FILTERING_TEXT_DOMAIN ) ); ?>"
     61                <input type="button"
     62                       value="<?php echo esc_attr( __( 'show', COLLABORATIVE_FILTERING_TEXT_DOMAIN ) ); ?>"
    6263                       data-id="<?php echo $post_id; ?>" class="cf_show_related_post button-primary">
    6364                <?php
    64             }, 10, 2 );
     65            }, $this->apply_filters( 'manage_posts_custom_column_priority', 10 ), 2 );
    6566        } );
    6667    }
  • cfiltering/trunk/update.json

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