Plugin Directory

Changeset 2884821


Ignore:
Timestamp:
03/22/2023 10:06:53 AM (3 years ago)
Author:
likecoin
Message:
  • Version 3.0.5
Location:
likecoin
Files:
161 added
4 edited

Legend:

Unmodified
Added
Removed
  • likecoin/trunk/admin/matters.php

    r2881948 r2884821  
    453453    $matters_draft_id = isset( $matters_info['draft_id'] ) ? $matters_info['draft_id'] : null;
    454454    $title            = apply_filters( 'the_title_rss', $post->post_title );
    455     $tags             = likecoin_get_post_tags( $post );
     455    $tags             = likecoin_get_post_tags( $post, 5 );
    456456
    457457    $api = LikeCoin_Matters_API::get_instance();
     
    508508    $matters_draft_id = isset( $matters_info['draft_id'] ) ? $matters_info['draft_id'] : null;
    509509    $title            = apply_filters( 'the_title_rss', $post->post_title );
    510     $tags             = likecoin_get_post_tags( $post );
     510    $tags             = likecoin_get_post_tags( $post, 5 );
    511511    $api              = LikeCoin_Matters_API::get_instance();
    512512    if ( ! $matters_draft_id ) {
  • likecoin/trunk/admin/post.php

    r2881948 r2884821  
    168168 *
    169169 * @param WP_Post| $post Post object.
    170  */
    171 function likecoin_get_post_tags( $post ) {
     170 * @param integer| $limit Number of tags.
     171 */
     172function likecoin_get_post_tags( $post, $limit = 0 ) {
    172173    $post_id   = $post->ID;
    173174    $func      = function( $terms ) {
     
    179180        $post_tags = array();
    180181    }
    181     return array_map( $func, $post_tags );
     182    $result = array_map( $func, $post_tags );
     183    if ( $limit ) {
     184        $result = array_slice( $result, 0, $limit );
     185    }
     186    return $result;
    182187}
    183188
  • likecoin/trunk/likecoin.php

    r2881948 r2884821  
    1414 * Plugin URI:   https://github.com/likecoin/likecoin-wordpress
    1515 * Description:  Publishes your posts to the blockchain. Sell your posts, share your work, build community, preserve content.
    16  * Version:      3.0.4
     16 * Version:      3.0.5
    1717 * Author:       LikeCoin
    1818 * Author URI:   https://like.co/
     
    4242define( 'LC_PLUGIN_SLUG', 'likecoin' );
    4343define( 'LC_PLUGIN_NAME', 'Web3Press By LikeCoin' );
    44 define( 'LC_PLUGIN_VERSION', '3.0.4' );
     44define( 'LC_PLUGIN_VERSION', '3.0.5' );
    4545
    4646require_once dirname( __FILE__ ) . '/includes/constant/options.php';
  • likecoin/trunk/readme.txt

    r2881948 r2884821  
    77Tested up to: 6.1
    88Requires PHP: 5.4
    9 Stable tag: 3.0.4
     9Stable tag: 3.0.5
    1010License: GPLv3
    1111License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    150150
    151151== Changelog ==
     152
     153= 3.0.5 =
     154
     155- Fix too many tags error when submitting post to matters.
    152156
    153157= 3.0.4 =
Note: See TracChangeset for help on using the changeset viewer.