Plugin Directory

Changeset 3433692


Ignore:
Timestamp:
01/06/2026 02:16:29 PM (5 days ago)
Author:
itthinx
Message:

version 3.0.2

Location:
decent-comments/trunk
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • decent-comments/trunk/blocks/class-decent-comments-blocks.php

    r3424828 r3433692  
    114114            __DIR__ . '/decent-comments/build/block.json',
    115115            array(
     116                'api_version' => '3',
    116117                'style_handles' => array( 'decent-comments' ),
    117118                'editor_script' => 'decent-comments-block-editor',
  • decent-comments/trunk/blocks/decent-comments/build/index.asset.php

    r3424828 r3433692  
    1 <?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '733fbd31e7abb4aab232');
     1<?php return array('dependencies' => array('react-jsx-runtime', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => 'd524a6e4a42d8bc0f05f');
  • decent-comments/trunk/blocks/decent-comments/build/index.js

    r3424828 r3433692  
    1 (()=>{"use strict";var e={723(e){e.exports=window.wp.i18n},727(e,t,o){o.d(t,{PU:()=>l,p4:()=>r});const n=window.wp.apiFetch;var s=o.n(n),a=o(723),c=o(790);async function r(e,t){const o=function(e){const t={number:e.number||5,offset:e.offset||0,order:e.order||"asc",orderby:e.orderby||"comment_author_email",...e.post_id&&{post_id:e.post_id},...e.post__in&&{post__in:e.post__in},...e.post__not_in&&{post__not_in:e.post__not_in},...e.post_type&&{post_type:e.post_type},...e.taxonomy&&{taxonomy:e.taxonomy},...e.terms&&{terms:e.terms},...e.term_ids&&{term_ids:e.term_ids},...e.exclude_post_author&&{exclude_post_author:e.exclude_post_author},...e.pingback&&{pingback:e.pingback},...e.trackback&&{trackback:e.trackback},...e.avatar_size&&{avatar_size:e.avatar_size}};return new URLSearchParams(t)}(e);return await s()({path:`decent-comments/v1/comments?${o.toString()}`,method:"GET",headers:{"X-WP-Nonce":t}})}const l=({comments:e,attributes:t})=>(0,c.jsxs)("div",{className:"decent-comments",children:[t.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:t.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===e.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,a.__)("No comments","decent-comments")}):e.filter(e=>!t.exclude_post_author||e.author_email!==e.post_author).map(e=>(0,c.jsx)(m,{comment:e,attributes:t},e.id))})]}),m=({comment:e,attributes:t})=>{const o=t.show_author?t.link_authors&&e.author_url?(0,c.jsx)("a",{href:_(e.author_url),className:"comment-author-link",children:e.author}):e.author:null,n=t.show_date?`${e.date} ${(0,a.__)("at","decent-comments")} ${e.time}`:null;let s="",r="";e.author_url&&(s='<a href="'+e.author_url+'" rel="external">',r="</a>");const l=t.show_avatar&&e.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:s+e.avatar+r}}):null,m=t.show_comment?function(e,t){let o=t.show_excerpt?e:"";if(t.strip_tags&&(o=o.replace(/(<([^>]+)>)/gi,"")),t.max_excerpt_words>0){const e=o.split(" ");o=e.slice(0,t.max_excerpt_words).join(" ")+(e.length>t.max_excerpt_words?t.ellipsis:"")}return t.max_excerpt_characters>0&&(o=o.substring(0,t.max_excerpt_characters)+(o.length>t.max_excerpt_characters?t.ellipsis:"")),o}(e.content,t):"",i=t.show_link&&e.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,a.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:_(e.comment_link),className:"comment-post-title",children:e.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[l,o&&(0,c.jsxs)("div",{className:"comment-author",children:[o," "]}),n&&(0,c.jsxs)("div",{className:"comment-date",children:[n," "]}),i," ",m&&(0,c.jsx)("div",{className:"comment-excerpt",children:m})]})},e.id)};function _(e){try{const t=new URL(e);return["http:","https:"].includes(t.protocol)?encodeURI(e):"#"}catch{return"#"}}},790(e){e.exports=window.ReactJSXRuntime}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=window.wp.blocks;var s=o(723);const a=window.wp.blockEditor,c=window.wp.components,r=JSON.parse('{"UU":"decent-comments-block/decent-comments"}'),l=window.wp.element;var m=o(727),_=o(790);(0,n.registerBlockType)(r.UU,{apiVersion:3,title:(0,s.__)("Decent Comments","decent-comments"),icon:"admin-comments",category:"widgets",attributes:{title:{type:"string",default:""},number:{type:"number",default:5},offset:{type:"number",default:0},post_id:{type:"string",default:""},post__in:{type:"string",default:""},post__not_in:{type:"string",default:""},post_tag:{type:"string",default:""},exclude_post_author:{type:"boolean",default:!1},show_author:{type:"boolean",default:!0},show_date:{type:"boolean",default:!0},link_authors:{type:"boolean",default:!0},show_avatar:{type:"boolean",default:!0},avatar_size:{type:"number",default:48},show_link:{type:"boolean",default:!0},show_comment:{type:"boolean",default:!0},taxonomy:{type:"string",default:""},terms:{type:"string",default:""},pingback:{type:"boolean",default:!0},trackback:{type:"boolean",default:!0},show_excerpt:{type:"boolean",default:!0},max_excerpt_words:{type:"number",default:20},max_excerpt_characters:{type:"number",default:0},ellipsis:{type:"string",default:""},strip_tags:{type:"boolean",default:!0},order:{type:"string",default:"desc"},orderby:{type:"string",default:"comment_date_gmt"},class:{type:"string",default:""},post_type:{type:"string",default:"post"}},edit:({attributes:e,setAttributes:t})=>{(0,a.useBlockProps)();const[o,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{(async()=>{try{const t={...e};"[current]"!==e.post_id&&"{current}"!==e.post_id||(t.post_id=""),"[current]"!==e.terms&&"{current}"!==e.terms||(t.term_ids="");const o=window.decentCommentsEdit?.nonce||"",s=await(0,m.p4)(t,o);n(s.comments||[]),i(null)}catch(e){i(e),n([])}})()},[e]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.InspectorControls,{children:(0,_.jsxs)(c.PanelBody,{title:(0,s.__)("Comment Settings","decent-comments"),children:[(0,_.jsx)(c.TextControl,{label:(0,s.__)("Title","decent-comments"),value:e.title,onChange:e=>t({title:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of Comments","decent-comments"),value:e.number,onChange:e=>t({number:parseInt(e)||5}),min:"1",type:"number"}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Order by...","decent-comments"),value:e.orderby,options:[{label:(0,s.__)("Author Email","decent-comments"),value:"comment_author_email"},{label:(0,s.__)("Author URL","decent-comments"),value:"comment_author_url"},{label:(0,s.__)("Content","decent-comments"),value:"comment_content"},{label:(0,s.__)("Comment Date","decent-comments"),value:"comment_date_gmt"},{label:(0,s.__)("Karma","decent-comments"),value:"comment_karma"},{label:(0,s.__)("Post","decent-comments"),value:"comment_post_id"}],onChange:e=>t({orderby:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Sort order","decent-comments"),value:e.order,options:[{label:(0,s.__)("Descending","decent-comments"),value:"desc"},{label:(0,s.__)("Ascending","decent-comments"),value:"asc"}],onChange:e=>t({order:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post ID","decent-comments"),value:e.post_id,onChange:e=>t({post_id:e||""}),help:(0,s.__)("Title, empty, post ID or [current]","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post type","decent-comments"),value:e.post_type,onChange:e=>t({post_type:e}),help:(0,s.__)("Available post types: "+decentCommentsEdit.post_types,"decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Exclude comments from post authors","decent-comments"),checked:e.exclude_post_author,onChange:e=>t({exclude_post_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show comment excerpt","decent-comments"),checked:e.show_excerpt,onChange:e=>t({show_excerpt:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of words in excerpts","decent-comments"),value:e.max_excerpt_words,onChange:e=>t({max_excerpt_words:parseInt(e)||20}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of characters in excerpts","decent-comments"),value:e.max_excerpt_characters,onChange:e=>t({max_excerpt_characters:parseInt(e)||0}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Ellipsis"),value:e.ellipsis,onChange:e=>t({ellipsis:e}),help:(0,s.__)("The ellipsis is shown after the excerpt when there is more content.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show author","decent-comments"),checked:e.show_author,onChange:e=>t({show_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show date","decent-comments"),checked:e.show_date,onChange:e=>t({show_date:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Link authors","decent-comments"),checked:e.link_authors,onChange:e=>t({link_authors:e}),help:(0,s.__)("Whether to link comment authors to their website.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show avatar","decent-comments"),checked:e.show_avatar,onChange:e=>t({show_avatar:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Avatar size","decent-comments"),value:e.avatar_size,onChange:e=>t({avatar_size:parseInt(e)||48}),min:"0",type:"number"}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show link to post","decent-comments"),checked:e.show_link,onChange:e=>t({show_link:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show the comment","decent-comments"),checked:e.show_comment,onChange:e=>t({show_comment:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Taxonomy","decent-comments"),value:e.taxonomy,options:[{label:(0,s.__)("All post taxonomies","decent-comments"),value:""},{label:(0,s.__)("category","decent-comments"),value:"category"},{label:(0,s.__)("tag","decent-comments"),value:"post_tag"}],onChange:e=>t({taxonomy:e}),help:(0,s.__)("Select category if you would like to show comments on posts in certain categories. Give the desired categories' slugs in Term. For tags select post_tag and give the tags' slugs in Term.","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Term","decent-comments"),value:e.terms,onChange:e=>t({terms:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Pingbacks","decent-comments"),checked:e.pingback,onChange:e=>t({pingback:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Trackbacks","decent-comments"),checked:e.trackback,onChange:e=>t({trackback:e})})]})}),(0,_.jsx)("div",{...(0,a.useBlockProps)({className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e)}),children:r?(0,_.jsx)("div",{className:"decent-comments-error",children:(0,_.jsxs)("p",{children:[(0,s.__)("Error loading comments in editor","decent-comments"),r.message&&`: ${r.message}`]})}):(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments",children:(0,_.jsx)(m.PU,{comments:o,attributes:e})})})]})},save:({attributes:e})=>(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e),children:(0,_.jsx)("p",{children:(0,s.__)("Decent Comments Placeholder","decent-comments")})})})})();
     1(()=>{"use strict";var e={723(e){e.exports=window.wp.i18n},727(e,t,o){o.d(t,{PU:()=>l,p4:()=>r});const n=window.wp.apiFetch;var s=o.n(n),a=o(723),c=o(790);async function r(e,t){const o=function(e){const t={number:e.number||5,offset:e.offset||0,order:e.order||"asc",orderby:e.orderby||"comment_author_email",...e.post_id&&{post_id:e.post_id},...e.post__in&&{post__in:e.post__in},...e.post__not_in&&{post__not_in:e.post__not_in},...e.post_type&&{post_type:e.post_type},...e.taxonomy&&{taxonomy:e.taxonomy},...e.terms&&{terms:e.terms},...e.term_ids&&{term_ids:e.term_ids},...e.exclude_post_author&&{exclude_post_author:e.exclude_post_author},...e.pingback&&{pingback:e.pingback},...e.trackback&&{trackback:e.trackback},...e.avatar_size&&{avatar_size:e.avatar_size}};return new URLSearchParams(t)}(e);return await s()({path:`decent-comments/v1/comments?${o.toString()}`,method:"GET",headers:{"X-WP-Nonce":t}})}const l=({comments:e,attributes:t})=>(0,c.jsxs)("div",{className:"decent-comments",children:[t.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:t.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===e.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,a.__)("No comments","decent-comments")}):e.filter(e=>!t.exclude_post_author||e.author_email!==e.post_author).map(e=>(0,c.jsx)(m,{comment:e,attributes:t},e.id))})]}),m=({comment:e,attributes:t})=>{const o=t.show_author?t.link_authors&&e.author_url?(0,c.jsx)("a",{href:_(e.author_url),className:"comment-author-link",children:e.author}):e.author:null,n=t.show_date?`${e.date} ${(0,a.__)("at","decent-comments")} ${e.time}`:null;let s="",r="";e.author_url&&(s='<a href="'+e.author_url+'" rel="external">',r="</a>");const l=t.show_avatar&&e.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:s+e.avatar+r}}):null,m=t.show_comment?function(e,t){let o=t.show_excerpt?e:"";if(t.strip_tags&&(o=o.replace(/(<([^>]+)>)/gi,"")),t.max_excerpt_words>0){const e=o.split(" ");o=e.slice(0,t.max_excerpt_words).join(" ")+(e.length>t.max_excerpt_words?t.ellipsis:"")}return t.max_excerpt_characters>0&&(o=o.substring(0,t.max_excerpt_characters)+(o.length>t.max_excerpt_characters?t.ellipsis:"")),o}(e.content,t):"",i=t.show_link&&e.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,a.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:_(e.comment_link),className:"comment-post-title",children:e.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[l,o&&(0,c.jsxs)("div",{className:"comment-author",children:[o," "]}),n&&(0,c.jsxs)("div",{className:"comment-date",children:[n," "]}),i," ",m&&(0,c.jsx)("div",{className:"comment-excerpt",children:m})]})},e.id)};function _(e){try{const t=new URL(e);return["http:","https:"].includes(t.protocol)?encodeURI(e):"#"}catch{return"#"}}},790(e){e.exports=window.ReactJSXRuntime}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const n=window.wp.blocks;var s=o(723);const a=window.wp.blockEditor,c=window.wp.components,r=JSON.parse('{"UU":"decent-comments-block/decent-comments"}'),l=window.wp.element;var m=o(727),_=o(790);(0,n.registerBlockType)(r.UU,{apiVersion:3,title:(0,s.__)("Decent Comments","decent-comments"),icon:"admin-comments",category:"widgets",attributes:{title:{type:"string",default:""},number:{type:"number",default:5},offset:{type:"number",default:0},post_id:{type:"string",default:""},post__in:{type:"string",default:""},post__not_in:{type:"string",default:""},post_tag:{type:"string",default:""},exclude_post_author:{type:"boolean",default:!1},show_author:{type:"boolean",default:!0},show_date:{type:"boolean",default:!0},link_authors:{type:"boolean",default:!0},show_avatar:{type:"boolean",default:!0},avatar_size:{type:"number",default:48},show_link:{type:"boolean",default:!0},show_comment:{type:"boolean",default:!0},taxonomy:{type:"string",default:""},terms:{type:"string",default:""},pingback:{type:"boolean",default:!0},trackback:{type:"boolean",default:!0},show_excerpt:{type:"boolean",default:!0},max_excerpt_words:{type:"number",default:20},max_excerpt_characters:{type:"number",default:0},ellipsis:{type:"string",default:""},strip_tags:{type:"boolean",default:!0},order:{type:"string",default:"desc"},orderby:{type:"string",default:"comment_date_gmt"},class:{type:"string",default:""},post_type:{type:"string",default:"post"}},edit:({attributes:e,setAttributes:t})=>{(0,a.useBlockProps)();const[o,n]=(0,l.useState)([]),[r,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{(async()=>{try{const t={...e};"[current]"!==e.post_id&&"{current}"!==e.post_id||(t.post_id=""),"[current]"!==e.terms&&"{current}"!==e.terms||(t.term_ids="");const o=window.decentCommentsEdit?.nonce||"",s=await(0,m.p4)(t,o);n(s.comments||[]),i(null)}catch(e){i(e),n([])}})()},[e]),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.InspectorControls,{children:(0,_.jsxs)(c.PanelBody,{title:(0,s.__)("Comment Settings","decent-comments"),children:[(0,_.jsx)(c.TextControl,{label:(0,s.__)("Title","decent-comments"),value:e.title,onChange:e=>t({title:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of Comments","decent-comments"),value:e.number,onChange:e=>t({number:parseInt(e)||5}),min:"1",type:"number"}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Order by...","decent-comments"),value:e.orderby,options:[{label:(0,s.__)("Author Email","decent-comments"),value:"comment_author_email"},{label:(0,s.__)("Author URL","decent-comments"),value:"comment_author_url"},{label:(0,s.__)("Content","decent-comments"),value:"comment_content"},{label:(0,s.__)("Comment Date","decent-comments"),value:"comment_date_gmt"},{label:(0,s.__)("Karma","decent-comments"),value:"comment_karma"},{label:(0,s.__)("Post","decent-comments"),value:"comment_post_id"}],onChange:e=>t({orderby:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Sort order","decent-comments"),value:e.order,options:[{label:(0,s.__)("Descending","decent-comments"),value:"desc"},{label:(0,s.__)("Ascending","decent-comments"),value:"asc"}],onChange:e=>t({order:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post ID","decent-comments"),value:e.post_id,onChange:e=>t({post_id:e||""}),help:(0,s.__)("Title, empty, post ID or [current]","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Post type","decent-comments"),value:e.post_type,onChange:e=>t({post_type:e}),help:(0,s.__)("Available post types: "+decentCommentsEdit.post_types,"decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Exclude comments from post authors","decent-comments"),checked:e.exclude_post_author,onChange:e=>t({exclude_post_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show comment excerpt","decent-comments"),checked:e.show_excerpt,onChange:e=>t({show_excerpt:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of words in excerpts","decent-comments"),value:e.max_excerpt_words,onChange:e=>t({max_excerpt_words:parseInt(e)||20}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Number of characters in excerpts","decent-comments"),value:e.max_excerpt_characters,onChange:e=>t({max_excerpt_characters:parseInt(e)||0}),min:"0",type:"number"}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Ellipsis"),value:e.ellipsis,onChange:e=>t({ellipsis:e}),help:(0,s.__)("The ellipsis is shown after the excerpt when there is more content.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show author","decent-comments"),checked:e.show_author,onChange:e=>t({show_author:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show date","decent-comments"),checked:e.show_date,onChange:e=>t({show_date:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Link authors","decent-comments"),checked:e.link_authors,onChange:e=>t({link_authors:e}),help:(0,s.__)("Whether to link comment authors to their website.","decent-comments")}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show avatar","decent-comments"),checked:e.show_avatar,onChange:e=>t({show_avatar:e})}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Avatar size","decent-comments"),value:e.avatar_size,onChange:e=>t({avatar_size:parseInt(e)||48}),min:"0",type:"number"}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show link to post","decent-comments"),checked:e.show_link,onChange:e=>t({show_link:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Show the comment","decent-comments"),checked:e.show_comment,onChange:e=>t({show_comment:e})}),(0,_.jsx)(c.SelectControl,{label:(0,s.__)("Taxonomy","decent-comments"),value:e.taxonomy,options:[{label:(0,s.__)("All post taxonomies","decent-comments"),value:""},{label:(0,s.__)("category","decent-comments"),value:"category"},{label:(0,s.__)("tag","decent-comments"),value:"post_tag"}],onChange:e=>t({taxonomy:e}),help:(0,s.__)("Select category if you would like to show comments on posts in certain categories. Give the desired categories' slugs in Term. For tags select post_tag and give the tags' slugs in Term.","decent-comments")}),(0,_.jsx)(c.TextControl,{label:(0,s.__)("Term","decent-comments"),value:e.terms,onChange:e=>t({terms:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Pingbacks","decent-comments"),checked:e.pingback,onChange:e=>t({pingback:e})}),(0,_.jsx)(c.ToggleControl,{label:(0,s.__)("Trackbacks","decent-comments"),checked:e.trackback,onChange:e=>t({trackback:e})})]})}),(0,_.jsx)("div",{...(0,a.useBlockProps)({className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e)}),children:r?(0,_.jsx)("div",{className:"decent-comments-error",children:(0,_.jsxs)("p",{children:[(0,s.__)("Error loading comments in editor","decent-comments"),r.message&&`: ${r.message}`]})}):(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments",children:(0,_.jsx)(m.PU,{comments:o,attributes:e})})})]})},save:({attributes:e})=>(0,_.jsx)("div",{className:"wp-block-itthinx-decent-comments","data-attributes":JSON.stringify(e),children:(0,_.jsxs)("p",{children:[(0,s.__)("Comments","decent-comments")," …"]})})})})();
  • decent-comments/trunk/blocks/decent-comments/build/view.asset.php

    r3424828 r3433692  
    1 <?php return array('dependencies' => array('react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-i18n'), 'version' => 'f3eb13201388d21477ec');
     1<?php return array('dependencies' => array('react-dom', 'react-jsx-runtime', 'wp-api-fetch', 'wp-i18n'), 'version' => 'b482cbb057d63bb32bbd');
  • decent-comments/trunk/blocks/decent-comments/build/view.js

    r3424828 r3433692  
    1 (()=>{"use strict";var t={338(t,e,n){var r=n(795);e.H=r.createRoot,r.hydrateRoot},723(t){t.exports=window.wp.i18n},727(t,e,n){n.d(e,{PU:()=>i,p4:()=>m,vB:()=>a});const r=window.wp.apiFetch;var o=n.n(r),s=n(723),c=n(790);function a(t){return JSON.parse(t||"{}")}async function m(t,e){const n=function(t){const e={number:t.number||5,offset:t.offset||0,order:t.order||"asc",orderby:t.orderby||"comment_author_email",...t.post_id&&{post_id:t.post_id},...t.post__in&&{post__in:t.post__in},...t.post__not_in&&{post__not_in:t.post__not_in},...t.post_type&&{post_type:t.post_type},...t.taxonomy&&{taxonomy:t.taxonomy},...t.terms&&{terms:t.terms},...t.term_ids&&{term_ids:t.term_ids},...t.exclude_post_author&&{exclude_post_author:t.exclude_post_author},...t.pingback&&{pingback:t.pingback},...t.trackback&&{trackback:t.trackback},...t.avatar_size&&{avatar_size:t.avatar_size}};return new URLSearchParams(e)}(t);return await o()({path:`decent-comments/v1/comments?${n.toString()}`,method:"GET",headers:{"X-WP-Nonce":e}})}const i=({comments:t,attributes:e})=>(0,c.jsxs)("div",{className:"decent-comments",children:[e.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:e.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===t.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,s.__)("No comments","decent-comments")}):t.filter(t=>!e.exclude_post_author||t.author_email!==t.post_author).map(t=>(0,c.jsx)(d,{comment:t,attributes:e},t.id))})]}),d=({comment:t,attributes:e})=>{const n=e.show_author?e.link_authors&&t.author_url?(0,c.jsx)("a",{href:l(t.author_url),className:"comment-author-link",children:t.author}):t.author:null,r=e.show_date?`${t.date} ${(0,s.__)("at","decent-comments")} ${t.time}`:null;let o="",a="";t.author_url&&(o='<a href="'+t.author_url+'" rel="external">',a="</a>");const m=e.show_avatar&&t.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:o+t.avatar+a}}):null,i=e.show_comment?function(t,e){let n=e.show_excerpt?t:"";if(e.strip_tags&&(n=n.replace(/(<([^>]+)>)/gi,"")),e.max_excerpt_words>0){const t=n.split(" ");n=t.slice(0,e.max_excerpt_words).join(" ")+(t.length>e.max_excerpt_words?e.ellipsis:"")}return e.max_excerpt_characters>0&&(n=n.substring(0,e.max_excerpt_characters)+(n.length>e.max_excerpt_characters?e.ellipsis:"")),n}(t.content,e):"",d=e.show_link&&t.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,s.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:l(t.comment_link),className:"comment-post-title",children:t.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[m,n&&(0,c.jsxs)("div",{className:"comment-author",children:[n," "]}),r&&(0,c.jsxs)("div",{className:"comment-date",children:[r," "]}),d," ",i&&(0,c.jsx)("div",{className:"comment-excerpt",children:i})]})},t.id)};function l(t){try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?encodeURI(t):"#"}catch{return"#"}}},790(t){t.exports=window.ReactJSXRuntime},795(t){t.exports=window.ReactDOM}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n(338),o=n(723),s=n(727),c=n(790);let a=null,m=null;window.decentCommentsView&&(window.decentCommentsView.current_post_id&&(a=window.decentCommentsView.current_post_id),window.decentCommentsView.current_term_id&&(m=window.decentCommentsView.current_term_id)),document.addEventListener("DOMContentLoaded",async()=>{const t=document.querySelectorAll(".wp-block-itthinx-decent-comments");for(const e of t)try{const t=(0,s.vB)(e.dataset.attributes);"[current]"!==t.post_id&&"{current}"!==t.post_id||a&&(t.post_id=a),"[current]"!==t.terms&&"{current}"!==t.terms||m&&(t.term_ids=m);const n=window.decentCommentsView?.nonce||"",o=await(0,s.p4)(t,n);(0,r.H)(e).render((0,c.jsx)(s.PU,{comments:o.comments||[],attributes:t}))}catch(t){(0,r.H)(e).render((0,c.jsx)("p",{className:"text-red-500",children:(0,o.__)("Error loading comments","decent-comments")})),console.error("Decent Comments Error:",t)}})})();
     1(()=>{"use strict";var t={338(t,e,n){var o=n(795);e.H=o.createRoot,o.hydrateRoot},723(t){t.exports=window.wp.i18n},727(t,e,n){n.d(e,{PU:()=>i,p4:()=>m,vB:()=>a});const o=window.wp.apiFetch;var r=n.n(o),s=n(723),c=n(790);function a(t){return JSON.parse(t||"{}")}async function m(t,e){const n=function(t){const e={number:t.number||5,offset:t.offset||0,order:t.order||"asc",orderby:t.orderby||"comment_author_email",...t.post_id&&{post_id:t.post_id},...t.post__in&&{post__in:t.post__in},...t.post__not_in&&{post__not_in:t.post__not_in},...t.post_type&&{post_type:t.post_type},...t.taxonomy&&{taxonomy:t.taxonomy},...t.terms&&{terms:t.terms},...t.term_ids&&{term_ids:t.term_ids},...t.exclude_post_author&&{exclude_post_author:t.exclude_post_author},...t.pingback&&{pingback:t.pingback},...t.trackback&&{trackback:t.trackback},...t.avatar_size&&{avatar_size:t.avatar_size}};return new URLSearchParams(e)}(t);return await r()({path:`decent-comments/v1/comments?${n.toString()}`,method:"GET",headers:{"X-WP-Nonce":e}})}const i=({comments:t,attributes:e})=>(0,c.jsxs)("div",{className:"decent-comments",children:[e.title?.length>0&&(0,c.jsx)("div",{className:"decent-comments-heading gamma widget-title",children:e.title}),(0,c.jsx)("ul",{className:"decent-comments-list",children:0===t.length?(0,c.jsx)("li",{className:"comment no-comment",children:(0,s.__)("No comments","decent-comments")}):t.filter(t=>!e.exclude_post_author||t.author_email!==t.post_author).map(t=>(0,c.jsx)(d,{comment:t,attributes:e},t.id))})]}),d=({comment:t,attributes:e})=>{const n=e.show_author?e.link_authors&&t.author_url?(0,c.jsx)("a",{href:l(t.author_url),className:"comment-author-link",children:t.author}):t.author:null,o=e.show_date?`${t.date} ${(0,s.__)("at","decent-comments")} ${t.time}`:null;let r="",a="";t.author_url&&(r='<a href="'+t.author_url+'" rel="external">',a="</a>");const m=e.show_avatar&&t.avatar?(0,c.jsx)("div",{className:"comment-avatar",dangerouslySetInnerHTML:{__html:r+t.avatar+a}}):null,i=e.show_comment?function(t,e){let n=e.show_excerpt?t:"";if(e.strip_tags&&(n=n.replace(/(<([^>]+)>)/gi,"")),e.max_excerpt_words>0){const t=n.split(" ");n=t.slice(0,e.max_excerpt_words).join(" ")+(t.length>e.max_excerpt_words?e.ellipsis:"")}return e.max_excerpt_characters>0&&(n=n.substring(0,e.max_excerpt_characters)+(n.length>e.max_excerpt_characters?e.ellipsis:"")),n}(t.content,e):"",d=e.show_link&&t.comment_link?(0,c.jsxs)("div",{className:"comment-link",children:[(0,s.__)("on","decent-comments")," ",(0,c.jsx)("a",{href:l(t.comment_link),className:"comment-post-title",children:t.post_title||""})]}):null;return(0,c.jsx)("li",{className:"comment-entry",children:(0,c.jsxs)("div",{className:"comment-content",children:[m,n&&(0,c.jsxs)("div",{className:"comment-author",children:[n," "]}),o&&(0,c.jsxs)("div",{className:"comment-date",children:[o," "]}),d," ",i&&(0,c.jsx)("div",{className:"comment-excerpt",children:i})]})},t.id)};function l(t){try{const e=new URL(t);return["http:","https:"].includes(e.protocol)?encodeURI(t):"#"}catch{return"#"}}},790(t){t.exports=window.ReactJSXRuntime},795(t){t.exports=window.ReactDOM}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o=n(338),r=n(723),s=n(727),c=n(790);let a=null,m=null;window.decentCommentsView&&(window.decentCommentsView.current_post_id&&(a=window.decentCommentsView.current_post_id),window.decentCommentsView.current_term_id&&(m=window.decentCommentsView.current_term_id)),document.addEventListener("DOMContentLoaded",async()=>{const t=document.querySelectorAll(".wp-block-itthinx-decent-comments");for(const e of t){e._decentCommentsRoot||(e._decentCommentsRoot=(0,o.H)(e));const t=e._decentCommentsRoot;try{const n=(0,s.vB)(e.dataset.attributes);"[current]"!==n.post_id&&"{current}"!==n.post_id||a&&(n.post_id=a),"[current]"!==n.terms&&"{current}"!==n.terms||m&&(n.term_ids=m);const o=window.decentCommentsView?.nonce||"",r=await(0,s.p4)(n,o);t.render((0,c.jsx)(s.PU,{comments:r.comments||[],attributes:n}))}catch(e){t.render((0,c.jsx)("p",{className:"text-red-500",children:(0,r.__)("Error loading comments","decent-comments")})),console.error("Decent Comments Error:",e)}}})})();
  • decent-comments/trunk/blocks/decent-comments/src/index.js

    r3424828 r3433692  
    259259        return (
    260260            <div className="wp-block-itthinx-decent-comments" data-attributes={JSON.stringify(attributes)}>
    261                 <p>{__('Decent Comments Placeholder', 'decent-comments')}</p>
     261                <p>{ __( 'Comments', 'decent-comments' ) } &hellip;</p>
    262262            </div>
    263263        );
  • decent-comments/trunk/blocks/decent-comments/src/view.js

    r3424828 r3433692  
    3737document.addEventListener('DOMContentLoaded', async () => {
    3838    const blocks = document.querySelectorAll('.wp-block-itthinx-decent-comments');
    39     for (const block of blocks) {
     39
     40    for (const block of blocks) {
     41        if (!block._decentCommentsRoot) {
     42            block._decentCommentsRoot = createRoot(block);
     43        }
     44        const root = block._decentCommentsRoot;
     45
    4046        try {
    4147            const attributes = parseAttributes(block.dataset.attributes);
     
    5359            const nonce = window.decentCommentsView?.nonce || '';
    5460            const response = await fetchComments(attributes, nonce);
    55             const root = createRoot(block);
    5661            root.render(
    5762                <RenderComments comments={response.comments || []} attributes={attributes} />
    5863            );
    5964        } catch (error) {
    60             const root = createRoot(block);
    61                 root.render(
    62                     <p className="text-red-500">
    63                         {__('Error loading comments', 'decent-comments')}
    64                     </p>
    65                 );
     65            root.render(
     66                <p className="text-red-500">
     67                    {__('Error loading comments', 'decent-comments')}
     68                </p>
     69            );
    6670            console.error( 'Decent Comments Error:', error );
    6771        }
     72
    6873    }
    6974});
  • decent-comments/trunk/changelog.txt

    r3426106 r3433692  
    11== Decent Comments by itthinx - changelog.txt ==
     2
     3= 3.0.2 =
     4* WordPress 6.9 compatible.
     5* Removed author email from REST response.
     6* Providing author display name instead of email for post authors in REST response.
     7* Fixed warning in Decent Comments Block widget when rendering on the frontend.
     8* Added support for comment_ID as orderby option in REST requests.
     9* Added support for excerpt, max_excerpt_words, max_excerpt_characters, show_author, show_date, show_comment options in REST request.
     10* Added instances of missing code documentation.
     11* Fixed some code formatting issues.
     12* Changed block placeholder to generic verbiage.
     13* Updated the translation template.
     14* Updated the included translations.
    215
    316= 3.0.1 =
  • decent-comments/trunk/class-decent-comments-rest.php

    r3424828 r3433692  
    2020 */
    2121
     22/**
     23 * REST API handling.
     24 */
    2225class Decent_Comments_Rest {
    2326
     27    /**
     28     * Initialization.
     29     */
    2430    public static function boot() {
    2531        add_action( 'rest_api_init', array( __CLASS__, 'rest_api_init' ) );
    2632    }
    2733
     34    /**
     35     * Register REST API endpoints.
     36     */
    2837    public static function rest_api_init() {
    2938        register_rest_route(
     
    5968                    'validate_callback' => 'rest_validate_request_arg'
    6069                ),
    61                 /*'excerpt_length' => array(
     70                'excerpt' => array(
     71                    'default'           => false,
     72                    'required'          => false,
     73                    'type'              => 'boolean',
     74                    'description'       => __( 'Generate an excerpt', 'decent-comments' ),
     75                    'sanitize_callback' => array( __CLASS__, 'to_boolean' ),
     76                    'validate_callback' => 'rest_validate_request_arg'
     77                ),
     78                'max_excerpt_words' => array(
    6279                    'default'           => 20,
     80                    'minimum'           => 1,
    6381                    'required'          => false,
    6482                    'type'              => 'integer',
    6583                    'sanitize_callback' => 'absint',
    66                     'description'       => 'Number of words for comment excerpts',
    67                     'validate_callback' => 'rest_validate_request_arg'
    68                 ),*/
     84                    'description'       => __( 'Number of words shown as an excerpt', 'decent-comments' ),
     85                    'validate_callback' => 'rest_validate_request_arg'
     86                ),
     87                'max_excerpt_characters' => array(
     88                    'default'           => 0,
     89                    'minimum'           => 0,
     90                    'required'          => false,
     91                    'type'              => 'integer',
     92                    'sanitize_callback' => 'absint',
     93                    'description'       => __( 'Number of characters shown as an excerpt', 'decent-comments' ),
     94                    'validate_callback' => 'rest_validate_request_arg'
     95                ),
    6996                'orderby' => array(
    7097                    'default'           => 'comment_author_email',
     
    79106                        'comment_content',
    80107                        'comment_karma',
    81                         'comment_post_id'
     108                        'comment_post_id',
     109                        'comment_ID'
    82110                    ),
    83111                    'validate_callback' => 'rest_validate_request_arg'
     
    129157                    'type'              => 'boolean',
    130158                    'description'       => __( 'Whether to include Trackbacks', 'decent-comments' ),
     159                    'sanitize_callback' => array( __CLASS__, 'to_boolean' ),
     160                    'validate_callback' => 'rest_validate_request_arg'
     161                ),
     162                'show_author' => array(
     163                    'default'           => true,
     164                    'required'          => false,
     165                    'type'              => 'boolean',
     166                    'description'       => __( 'Show comment author', 'decent-comments' ),
     167                    'sanitize_callback' => array( __CLASS__, 'to_boolean' ),
     168                    'validate_callback' => 'rest_validate_request_arg'
     169                ),
     170                'show_date' => array(
     171                    'default'           => true,
     172                    'required'          => false,
     173                    'type'              => 'boolean',
     174                    'description'       => __( 'Show date', 'decent-comments' ),
     175                    'sanitize_callback' => array( __CLASS__, 'to_boolean' ),
     176                    'validate_callback' => 'rest_validate_request_arg'
     177                ),
     178                'show_comment' => array(
     179                    'default'           => true,
     180                    'required'          => false,
     181                    'type'              => 'boolean',
     182                    'description'       => __( 'Show comment', 'decent-comments' ),
    131183                    'sanitize_callback' => array( __CLASS__, 'to_boolean' ),
    132184                    'validate_callback' => 'rest_validate_request_arg'
     
    140192     *
    141193     * @param WP_REST_Request $request The REST request object
     194     *
    142195     * @return WP_REST_Response|WP_Error
    143196     */
    144197    public static function decent_comments_rest_endpoint( WP_REST_Request $request ) {
    145198        $args = array(
    146             'number'              => $request->get_param( 'number' ),
    147             'avatar_size'         => $request->get_param( 'avatar_size' ),
    148             'post_id'             => $request->get_param( 'post_id' ),
    149             'post_type'           => $request->get_param( 'post_type' ),
    150             //'excerpt_length' => $request->get_param( 'excerpt_length' ),
    151             'orderby'             => $request->get_param( 'orderby' ),
    152             'order'               => $request->get_param( 'order' ) === 'asc' ? 'asc' : 'desc',
    153             'show_date'           => true, // Enable date display by default
    154             'show_author'         => true, // Enable author display
    155             'show_comment'        => true, // Enable comment content/excerpt
    156             'taxonomy'            => $request->get_param( 'taxonomy' ),
    157             'terms'               => $request->get_param( 'terms' ),
    158             'term_ids'            => $request->get_param( 'term_ids'),
    159             'pingback'            => $request->get_param( 'pingback' ),
    160             'trackback'           => $request->get_param( 'trackback' ),
    161             'exclude_post_author' => $request->get_param( 'exclude_post_author' )
     199            'number'                 => $request->get_param( 'number' ),
     200            'avatar_size'            => $request->get_param( 'avatar_size' ),
     201            'post_id'                => $request->get_param( 'post_id' ),
     202            'post_type'              => $request->get_param( 'post_type' ),
     203            'excerpt'                => $request->get_param( 'excerpt' ),
     204            'max_excerpt_words'      => $request->get_param( 'max_excerpt_words' ),
     205            'max_excerpt_characters' => $request->get_param( 'max_excerpt_characters' ),
     206            'orderby'                => $request->get_param( 'orderby' ),
     207            'order'                  => $request->get_param( 'order' ) === 'asc' ? 'asc' : 'desc',
     208            'show_date'              => $request->get_param( 'show_date' ),
     209            'show_author'            => $request->get_param( 'show_author' ),
     210            'show_comment'           => $request->get_param( 'show_comment' ),
     211            'taxonomy'               => $request->get_param( 'taxonomy' ),
     212            'terms'                  => $request->get_param( 'terms' ),
     213            'term_ids'               => $request->get_param( 'term_ids'),
     214            'pingback'               => $request->get_param( 'pingback' ),
     215            'trackback'              => $request->get_param( 'trackback' ),
     216            'exclude_post_author'    => $request->get_param( 'exclude_post_author' )
    162217        );
    163218
     
    177232
    178233        $comment_args = array(
    179             'number'    => $args['number'],
    180             'post_id'   => $args['post_id'],
    181             'post_type' => $args['post_type'],
    182             'taxonomy'  => $args['taxonomy'],
    183             'terms'     => $args['terms'],
    184             'term_ids'  => $term_ids,
    185             'pingback'  => $args['pingback'],
    186             'trackback' => $args['trackback'],
    187             'status'    => 'approve',
    188             'order'     => $args['order'],
    189             'orderby'   => $args['orderby'],
     234            'number'                 => $args['number'],
     235            'post_id'                => $args['post_id'],
     236            'post_type'              => $args['post_type'],
     237            'taxonomy'               => $args['taxonomy'],
     238            'terms'                  => $args['terms'],
     239            'term_ids'               => $term_ids,
     240            'pingback'               => $args['pingback'],
     241            'trackback'              => $args['trackback'],
     242            'status'                 => 'approve',
     243            'order'                  => $args['order'],
     244            'orderby'                => $args['orderby'],
     245            'excerpt'                => $args['excerpt'],
     246            'max_excerpt_words'      => $args['max_excerpt_words'],
     247            'max_excerpt_characters' => $args['max_excerpt_characters']
    190248        );
    191249
     
    194252        if ( !empty( $comments ) ) {
    195253            foreach ( $comments as $comment ) {
     254
    196255                $comment_data = array(
    197256                    'id'              => $comment->comment_ID,
    198                     'author'          => $comment->comment_author,
    199                     'author_email'    => $comment->comment_author_email,
    200                     'author_url'      => $comment->comment_author_url,
    201                     'date'            => mysql2date( get_option( 'date_format' ), $comment->comment_date ),
    202                     'time'            => mysql2date( get_option( 'time_format' ), $comment->comment_date, true ),
    203                     'content'         => $comment->comment_content,
    204                     'avatar'          => get_avatar( $comment->comment_author_email, $args['avatar_size'] ),
    205257                    'comment_post_id' => $comment->comment_post_ID,
    206258                    'post_title'      => get_the_title( $comment->comment_post_ID ),
    207259                    'comment_link'    => get_comment_link( $comment->comment_ID ),
    208                     'post_author'     => self::get_the_post_author_by_post_id( $comment->comment_post_ID ),
     260                    'post_author'     => self::get_post_author( $comment->comment_post_ID )
    209261                );
     262
     263                if ( $args['show_date'] ) {
     264                    $comment_data['date'] = mysql2date( get_option( 'date_format' ), $comment->comment_date );
     265                    $comment_data['time'] = mysql2date( get_option( 'time_format' ), $comment->comment_date, true );
     266                }
     267
     268                if ( $args['show_author'] ) {
     269                    $comment_data['author'] = $comment->comment_author;
     270                    $comment_data['comment_author_url'] = $comment->comment_author_url;
     271                    $comment_data['avatar'] = get_avatar( $comment->comment_author_email, $args['avatar_size'] );
     272                }
     273
     274                if ( $args['show_comment'] ) {
     275                    $comment_data['content'] = Decent_Comments_Renderer::get_comment(
     276                        $comment->comment_ID,
     277                        array(
     278                            'excerpt' => $args['excerpt'],
     279                            'max_excerpt_words' => $args['max_excerpt_words'],
     280                            'max_excerpt_characters' => $args['max_excerpt_characters']
     281                        )
     282                    );
     283                }
     284
    210285                $comments_data[] = $comment_data;
    211286            }
     
    224299    }
    225300
    226     private static function get_the_post_author_by_post_id( $comment_post_id ) {
    227         $post_author_email = null;
    228         $post = get_post( $comment_post_id );
    229         if ( $post ) {
    230             $post_author_id = $post->post_author;
    231             $post_author_user = get_user( $post_author_id );
    232             if ( $post_author_user ) {
    233                 $post_author_email = $post_author_user->user_email;
     301    /**
     302     * Provide the post author for display.
     303     *
     304     * @since 3.0.2
     305     *
     306     * @param int $post_id
     307     *
     308     * @return string
     309     */
     310    private static function get_post_author( $post_id ) {
     311        $author = '';
     312        $post = get_post( $post_id );
     313        if ( $post && !empty( $post->post_author ) ) {
     314            $user = get_user( $post->post_author );
     315            if ( $user ) {
     316                if ( !empty( $user->display_name ) ) {
     317                    $author = $user->display_name;
     318                } else {
     319                    $author = $user->user_login;
     320                }
    234321            }
    235322        }
    236 
    237         return $post_author_email;
    238     }
    239 
     323        return $author;
     324    }
     325
     326    /**
     327     * Value conversion to boolean.
     328     *
     329     * @param mixed $value
     330     * @param boolean $default
     331     *
     332     * @return boolean|string
     333     */
    240334    public static function to_boolean( $value, $default = false ) {
    241335        if ( !is_bool( $default ) ) {
     
    274368        return $value;
    275369    }
    276 } Decent_Comments_Rest::boot();
     370}
     371
     372Decent_Comments_Rest::boot();
  • decent-comments/trunk/decent-comments.php

    r3426106 r3433692  
    44 * Plugin URI: https://www.itthinx.com/plugins/decent-comments
    55 * Description: Provides configurable means to display comments that include author's avatars, author link, link to post and most importantly an excerpt of each comment. Thanks for supporting our work with a purchase in our <a href="https://www.itthinx.com/shop/">Shop</a>!
    6  * Version: 3.0.1
     6 * Version: 3.0.2
    77 * Requires at least: 6.5
    88 * Requires PHP: 7.4
     
    6666 * @var string
    6767 */
    68 define( 'DECENT_COMMENTS_PLUGIN_VERSION', '3.0.1' );
     68define( 'DECENT_COMMENTS_PLUGIN_VERSION', '3.0.2' );
    6969
    7070/**
  • decent-comments/trunk/languages/decent-comments-ca_ES.po

    r3426106 r3433692  
    88"Project-Id-Version: \n"
    99"Report-Msgid-Bugs-To: \n"
    10 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    11 "PO-Revision-Date: 2025-12-23 11:38+0100\n"
     10"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     11"PO-Revision-Date: 2026-01-06 14:53+0100\n"
    1212"Last-Translator: Chema Bescos <[email protected]>\n"
    1313"Language-Team: \n"
     
    8686msgstr "Punts suspensius"
    8787
    88 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     88#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8989msgid "Exclude comments from post authors"
    9090msgstr "Exclou els comentaris dels autors de les publicació"
    9191
    92 #: class-decent-comments-rest.php:58
     92#: class-decent-comments-rest.php:74
     93msgid "Generate an excerpt"
     94msgstr "Genera un extracte"
     95
     96#: class-decent-comments-rest.php:67
    9397msgid "ID of the post to get comments for (0 for all posts)"
    9498msgstr ""
     
    175179msgstr "Nombre de caràcters als extractes"
    176180
     181#: class-decent-comments-rest.php:93
     182msgid "Number of characters shown as an excerpt"
     183msgstr "Nombre de caràcters mostrats com a extracte"
     184
    177185#: class-decent-comments-widget.php:455
    178186msgid "Number of comments"
    179187msgstr "Nombre de comentaris"
    180188
    181 #: class-decent-comments-rest.php:41
     189#: class-decent-comments-rest.php:50
    182190msgid "Number of comments to return"
    183191msgstr "Nombre de comentaris"
     
    187195msgstr "Nombre de paraules als extractes"
    188196
     197#: class-decent-comments-rest.php:84
     198msgid "Number of words shown as an excerpt"
     199msgstr "Nombre de paraules mostrades com a extracte"
     200
    189201#: class-decent-comments.php:58
    190202msgid "Options"
     
    211223msgstr "Tipus d’entrada"
    212224
    213 #: class-decent-comments-rest.php:99
     225#: class-decent-comments-rest.php:127
    214226msgid "Post category or tag"
    215227msgstr "Categoria o etiqueta de publicació"
     
    244256msgstr "Mostra l'avatar"
    245257
     258#: class-decent-comments-rest.php:182
     259msgid "Show comment"
     260msgstr "Mostra comentari"
     261
     262#: class-decent-comments-rest.php:166
     263msgid "Show comment author"
     264msgstr "Mostra l'autor del comentari"
     265
    246266#: class-decent-comments-widget.php:539
    247267msgid "Show comment excerpt"
    248268msgstr "Mostra l'extracte del comentari"
    249269
    250 #: class-decent-comments-widget.php:574
     270#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    251271msgid "Show date"
    252272msgstr "Mostra la data"
     
    268288msgstr "Mostra la data i l'hora en què s'ha publicat el comentari."
    269289
    270 #: class-decent-comments-rest.php:50
     290#: class-decent-comments-rest.php:59
    271291msgid "Size of author avatars in pixels"
    272292msgstr "La mida de l'avatar en píxels"
    273293
    274 #: class-decent-comments-rest.php:74
     294#: class-decent-comments-rest.php:101
    275295msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    276296msgstr ""
     
    286306msgstr "Ordre de classificació."
    287307
    288 #: class-decent-comments-rest.php:90
     308#: class-decent-comments-rest.php:118
    289309msgid "Sort order: asc or desc"
    290310msgstr "Ordre de classificació: asc o desc"
     
    298318msgstr "Taxonomia"
    299319
    300 #: class-decent-comments-rest.php:107
     320#: class-decent-comments-rest.php:135
    301321msgid "Term ids or slugs"
    302322msgstr "Identificadors de termes o slugs"
     
    351371msgstr "Trackbacks"
    352372
    353 #: class-decent-comments-rest.php:122
     373#: class-decent-comments-rest.php:150
    354374msgid "Whether to include Pingbacks"
    355375msgstr "Inclou pingbacks"
    356376
    357 #: class-decent-comments-rest.php:130
     377#: class-decent-comments-rest.php:158
    358378msgid "Whether to include Trackbacks"
    359379msgstr "Inclou trackbacks"
  • decent-comments/trunk/languages/decent-comments-de_DE.po

    r3426106 r3433692  
    88"Project-Id-Version: decent-comments 1.1.3\n"
    99"Report-Msgid-Bugs-To: \n"
    10 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    11 "PO-Revision-Date: 2025-12-23 11:41+0100\n"
     10"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     11"PO-Revision-Date: 2026-01-06 14:55+0100\n"
    1212"Last-Translator: kento <http://www.itthinx.com/plugins/decent-comments/>\n"
    1313"Language-Team: German <http://www.itthinx.com/plugins/decent-comments/>\n"
     
    8585msgstr "Ellipse"
    8686
    87 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     87#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8888msgid "Exclude comments from post authors"
    8989msgstr "Kommentare von Eintragsautoren ausschließen"
    9090
    91 #: class-decent-comments-rest.php:58
     91#: class-decent-comments-rest.php:74
     92msgid "Generate an excerpt"
     93msgstr "Auszug generieren"
     94
     95#: class-decent-comments-rest.php:67
    9296msgid "ID of the post to get comments for (0 for all posts)"
    9397msgstr "ID des Artikels mit Kommentaren (0 für alle Artikel)"
     
    174178msgstr "Anzahl der Zeichen in Auszügen"
    175179
     180#: class-decent-comments-rest.php:93
     181msgid "Number of characters shown as an excerpt"
     182msgstr "Anzahl der Zeichen in Auszügen"
     183
    176184#: class-decent-comments-widget.php:455
    177185msgid "Number of comments"
    178186msgstr "Anzahl der Kommentare"
    179187
    180 #: class-decent-comments-rest.php:41
     188#: class-decent-comments-rest.php:50
    181189msgid "Number of comments to return"
    182190msgstr "Anzahl der Kommentare"
     
    186194msgstr "Anzahl der Worte in Auszügen"
    187195
     196#: class-decent-comments-rest.php:84
     197msgid "Number of words shown as an excerpt"
     198msgstr "Anzahl der Worte in Auszügen"
     199
    188200#: class-decent-comments.php:58
    189201msgid "Options"
     
    210222msgstr "Eintragstyp"
    211223
    212 #: class-decent-comments-rest.php:99
     224#: class-decent-comments-rest.php:127
    213225msgid "Post category or tag"
    214226msgstr "Artikelkategorie oder Etikett"
     
    243255msgstr "Den Avatar anzeigen"
    244256
     257#: class-decent-comments-rest.php:182
     258msgid "Show comment"
     259msgstr "Den Kommentar anzeigen"
     260
     261#: class-decent-comments-rest.php:166
     262msgid "Show comment author"
     263msgstr "Den Autor der Kommentars anzeigen"
     264
    245265#: class-decent-comments-widget.php:539
    246266msgid "Show comment excerpt"
    247267msgstr "Den Auszug anzeigen"
    248268
    249 #: class-decent-comments-widget.php:574
     269#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    250270msgid "Show date"
    251271msgstr "Datum anzeigen"
     
    267287msgstr "Das Datum und die Uhrzeit des Kommentars anzeigen."
    268288
    269 #: class-decent-comments-rest.php:50
     289#: class-decent-comments-rest.php:59
    270290msgid "Size of author avatars in pixels"
    271291msgstr "Die Größe des Avatars in Pixeln"
    272292
    273 #: class-decent-comments-rest.php:74
     293#: class-decent-comments-rest.php:101
    274294msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    275295msgstr ""
     
    285305msgstr "Reihenfolge."
    286306
    287 #: class-decent-comments-rest.php:90
     307#: class-decent-comments-rest.php:118
    288308msgid "Sort order: asc or desc"
    289309msgstr "Reihenfolge: asc oder desc"
     
    297317msgstr "Taxonomie"
    298318
    299 #: class-decent-comments-rest.php:107
     319#: class-decent-comments-rest.php:135
    300320msgid "Term ids or slugs"
    301321msgstr "Begriffs-IDs oder Slugs"
     
    350370msgstr "Trackbacks"
    351371
    352 #: class-decent-comments-rest.php:122
     372#: class-decent-comments-rest.php:150
    353373msgid "Whether to include Pingbacks"
    354374msgstr "Pingbacks einbeziehen"
    355375
    356 #: class-decent-comments-rest.php:130
     376#: class-decent-comments-rest.php:158
    357377msgid "Whether to include Trackbacks"
    358378msgstr "Trackbacks einbeziehen"
  • decent-comments/trunk/languages/decent-comments-de_DE_formal.po

    r3426106 r3433692  
    88"Project-Id-Version: decent-comments 1.1.3\n"
    99"Report-Msgid-Bugs-To: \n"
    10 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    11 "PO-Revision-Date: 2025-12-23 11:41+0100\n"
     10"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     11"PO-Revision-Date: 2026-01-06 14:55+0100\n"
    1212"Last-Translator: kento <http://www.itthinx.com/plugins/decent-comments/>\n"
    1313"Language-Team: German <http://www.itthinx.com/plugins/decent-comments/>\n"
     
    8585msgstr "Ellipse"
    8686
    87 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     87#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8888msgid "Exclude comments from post authors"
    8989msgstr "Kommentare von Eintragsautoren ausschließen"
    9090
    91 #: class-decent-comments-rest.php:58
     91#: class-decent-comments-rest.php:74
     92msgid "Generate an excerpt"
     93msgstr "Auszug generieren"
     94
     95#: class-decent-comments-rest.php:67
    9296msgid "ID of the post to get comments for (0 for all posts)"
    9397msgstr "ID des Artikels mit Kommentaren (0 für alle Artikel)"
     
    174178msgstr "Anzahl der Zeichen in Auszügen"
    175179
     180#: class-decent-comments-rest.php:93
     181msgid "Number of characters shown as an excerpt"
     182msgstr "Anzahl der Zeichen in Auszügen"
     183
    176184#: class-decent-comments-widget.php:455
    177185msgid "Number of comments"
    178186msgstr "Anzahl der Kommentare"
    179187
    180 #: class-decent-comments-rest.php:41
     188#: class-decent-comments-rest.php:50
    181189msgid "Number of comments to return"
    182190msgstr "Anzahl der Kommentare"
     
    186194msgstr "Anzahl der Worte in Auszügen"
    187195
     196#: class-decent-comments-rest.php:84
     197msgid "Number of words shown as an excerpt"
     198msgstr "Anzahl der Worte in Auszügen"
     199
    188200#: class-decent-comments.php:58
    189201msgid "Options"
     
    210222msgstr "Eintragstyp"
    211223
    212 #: class-decent-comments-rest.php:99
     224#: class-decent-comments-rest.php:127
    213225msgid "Post category or tag"
    214226msgstr "Artikelkategorie oder Etikett"
     
    243255msgstr "Den Avatar anzeigen"
    244256
     257#: class-decent-comments-rest.php:182
     258msgid "Show comment"
     259msgstr "Den Kommentar anzeigen"
     260
     261#: class-decent-comments-rest.php:166
     262msgid "Show comment author"
     263msgstr "Den Autor der Kommentars anzeigen"
     264
    245265#: class-decent-comments-widget.php:539
    246266msgid "Show comment excerpt"
    247267msgstr "Den Auszug anzeigen"
    248268
    249 #: class-decent-comments-widget.php:574
     269#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    250270msgid "Show date"
    251271msgstr "Datum anzeigen"
     
    267287msgstr "Das Datum und die Uhrzeit des Kommentars anzeigen."
    268288
    269 #: class-decent-comments-rest.php:50
     289#: class-decent-comments-rest.php:59
    270290msgid "Size of author avatars in pixels"
    271291msgstr "Die Größe des Avatars in Pixeln"
    272292
    273 #: class-decent-comments-rest.php:74
     293#: class-decent-comments-rest.php:101
    274294msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    275295msgstr ""
     
    285305msgstr "Reihenfolge."
    286306
    287 #: class-decent-comments-rest.php:90
     307#: class-decent-comments-rest.php:118
    288308msgid "Sort order: asc or desc"
    289309msgstr "Reihenfolge: asc oder desc"
     
    297317msgstr "Taxonomie"
    298318
    299 #: class-decent-comments-rest.php:107
     319#: class-decent-comments-rest.php:135
    300320msgid "Term ids or slugs"
    301321msgstr "Begriffs-IDs oder Slugs"
     
    350370msgstr "Trackbacks"
    351371
    352 #: class-decent-comments-rest.php:122
     372#: class-decent-comments-rest.php:150
    353373msgid "Whether to include Pingbacks"
    354374msgstr "Pingbacks einbeziehen"
    355375
    356 #: class-decent-comments-rest.php:130
     376#: class-decent-comments-rest.php:158
    357377msgid "Whether to include Trackbacks"
    358378msgstr "Trackbacks einbeziehen"
  • decent-comments/trunk/languages/decent-comments-es_ES.po

    r3426106 r3433692  
    88"Project-Id-Version: decent-comments 1.3.11\n"
    99"Report-Msgid-Bugs-To: \n"
    10 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    11 "PO-Revision-Date: 2025-12-22 21:17+0100\n"
     10"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     11"PO-Revision-Date: 2026-01-06 14:52+0100\n"
    1212"Last-Translator: kento <http://www.itthinx.com/plugins/decent-comments/>\n"
    1313"Language-Team: Spanish <http://www.itthinx.com/plugins/decent-comments/>\n"
     
    8585msgstr "Elipsis"
    8686
    87 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     87#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8888msgid "Exclude comments from post authors"
    8989msgstr "Excluir los comentarios de los autores de los artículos"
    9090
    91 #: class-decent-comments-rest.php:58
     91#: class-decent-comments-rest.php:74
     92msgid "Generate an excerpt"
     93msgstr "Generar un extracto"
     94
     95#: class-decent-comments-rest.php:67
    9296msgid "ID of the post to get comments for (0 for all posts)"
    9397msgstr "ID del artículo para el que obtener comentarios (0 para todos)"
     
    168172msgstr "Número de caracteres en el resumen"
    169173
     174#: class-decent-comments-rest.php:93
     175msgid "Number of characters shown as an excerpt"
     176msgstr "Número de caracteres en el extracto"
     177
    170178#: class-decent-comments-widget.php:455
    171179msgid "Number of comments"
    172180msgstr "Número de comentarios"
    173181
    174 #: class-decent-comments-rest.php:41
     182#: class-decent-comments-rest.php:50
    175183msgid "Number of comments to return"
    176184msgstr "Número de comentarios a retornar"
     
    180188msgstr "Número de palabras del resumen"
    181189
     190#: class-decent-comments-rest.php:84
     191msgid "Number of words shown as an excerpt"
     192msgstr "Número de palabras del extracto"
     193
    182194#: class-decent-comments.php:58
    183195msgid "Options"
     
    204216msgstr "Tipo de post"
    205217
    206 #: class-decent-comments-rest.php:99
     218#: class-decent-comments-rest.php:127
    207219msgid "Post category or tag"
    208220msgstr "Categoría o etiqueta de artículo"
     
    237249msgstr "Mostrar avatar"
    238250
     251#: class-decent-comments-rest.php:182
     252msgid "Show comment"
     253msgstr "Mostrar el comentario"
     254
     255#: class-decent-comments-rest.php:166
     256msgid "Show comment author"
     257msgstr "Mostrar autor del comentario"
     258
    239259#: class-decent-comments-widget.php:539
    240260msgid "Show comment excerpt"
    241261msgstr "Mostrar resumen del comentario"
    242262
    243 #: class-decent-comments-widget.php:574
     263#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    244264msgid "Show date"
    245265msgstr "Mostrar fecha"
     
    261281msgstr "Mostrar la fecha y hora cuando el comentario fue publicado."
    262282
    263 #: class-decent-comments-rest.php:50
     283#: class-decent-comments-rest.php:59
    264284msgid "Size of author avatars in pixels"
    265285msgstr "Tamaño del avatar en píxeles"
    266286
    267 #: class-decent-comments-rest.php:74
     287#: class-decent-comments-rest.php:101
    268288msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    269289msgstr ""
     
    279299msgstr "Sentido de ordenación."
    280300
    281 #: class-decent-comments-rest.php:90
     301#: class-decent-comments-rest.php:118
    282302msgid "Sort order: asc or desc"
    283303msgstr "Sentido de ordenación"
     
    291311msgstr "Taxonomía"
    292312
    293 #: class-decent-comments-rest.php:107
     313#: class-decent-comments-rest.php:135
    294314msgid "Term ids or slugs"
    295315msgstr "Ids de términos o slugs"
     
    341361msgstr "Trackbacks"
    342362
    343 #: class-decent-comments-rest.php:122
     363#: class-decent-comments-rest.php:150
    344364msgid "Whether to include Pingbacks"
    345365msgstr "Incluir pingbacks"
    346366
    347 #: class-decent-comments-rest.php:130
     367#: class-decent-comments-rest.php:158
    348368msgid "Whether to include Trackbacks"
    349369msgstr "Incluir trackbacks"
  • decent-comments/trunk/languages/decent-comments-fr_FR.po

    r3426106 r3433692  
    55"Project-Id-Version: Decent Comments 1.1.0\n"
    66"Report-Msgid-Bugs-To: \n"
    7 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    8 "PO-Revision-Date: 2025-12-23 11:18+0100\n"
     7"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     8"PO-Revision-Date: 2026-01-06 14:58+0100\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    1717#: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44
    1818msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store"
    19 msgstr ""
     19msgstr "$store doit être une instance de WP_Style_Engine_CSS_Rules_Store"
    2020
    2121#: class-decent-comments-renderer.php:496
     
    8282msgstr "Ellipse"
    8383
    84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     84#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8585msgid "Exclude comments from post authors"
    8686msgstr "Exclure les commentaires des auteurs"
    8787
    88 #: class-decent-comments-rest.php:58
     88#: class-decent-comments-rest.php:74
     89msgid "Generate an excerpt"
     90msgstr "Générer un extrait"
     91
     92#: class-decent-comments-rest.php:67
    8993msgid "ID of the post to get comments for (0 for all posts)"
    9094msgstr ""
     95"ID de l'article pour lequel obtenir les commentaires (0 pour tous les "
     96"articles)"
    9197
    9298#: class-decent-comments-widget.php:630
     
    170176msgstr "Nombre de caractères dans les extraits"
    171177
     178#: class-decent-comments-rest.php:93
     179msgid "Number of characters shown as an excerpt"
     180msgstr "Nombre de caractères affichés comme extrait"
     181
    172182#: class-decent-comments-widget.php:455
    173183msgid "Number of comments"
    174184msgstr "Nombre de commentaires"
    175185
    176 #: class-decent-comments-rest.php:41
     186#: class-decent-comments-rest.php:50
    177187msgid "Number of comments to return"
    178188msgstr "Nombre de commentaires"
     
    182192msgstr "Nombre de mots dans un excerpt"
    183193
     194#: class-decent-comments-rest.php:84
     195msgid "Number of words shown as an excerpt"
     196msgstr "Nombre de mots affichés comme extrait"
     197
    184198#: class-decent-comments.php:58
    185199msgid "Options"
     
    206220msgstr "Type d'Article"
    207221
    208 #: class-decent-comments-rest.php:99
     222#: class-decent-comments-rest.php:127
    209223msgid "Post category or tag"
    210 msgstr ""
     224msgstr "Catégorie ou étiquette de l'article"
    211225
    212226#: class-decent-comments.php:172
     
    239253msgstr "Afficher l'avatar"
    240254
     255#: class-decent-comments-rest.php:182
     256msgid "Show comment"
     257msgstr "Afficher le commentaire"
     258
     259#: class-decent-comments-rest.php:166
     260msgid "Show comment author"
     261msgstr "Afficher l'auteur du commentaire"
     262
    241263#: class-decent-comments-widget.php:539
    242264msgid "Show comment excerpt"
    243265msgstr "Afficher l'excerpt du commentaire"
    244266
    245 #: class-decent-comments-widget.php:574
     267#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    246268msgid "Show date"
    247269msgstr "Montrez la date"
     
    263285msgstr "Montrez la date et l'heure à laquelle le commentaire a été publié."
    264286
    265 #: class-decent-comments-rest.php:50
     287#: class-decent-comments-rest.php:59
    266288msgid "Size of author avatars in pixels"
    267289msgstr "La taille de l'avatar en pixels"
    268290
    269 #: class-decent-comments-rest.php:74
     291#: class-decent-comments-rest.php:101
    270292msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    271293msgstr ""
     294"Trier les commentaires par : date, author_email, author_url, content, karma, "
     295"post"
    272296
    273297#: class-decent-comments-widget.php:474
     
    279303msgstr "Ordonnancement."
    280304
    281 #: class-decent-comments-rest.php:90
     305#: class-decent-comments-rest.php:118
    282306msgid "Sort order: asc or desc"
    283307msgstr "Ordonnancement: asc ou desc"
     
    291315msgstr "Taxonomie"
    292316
    293 #: class-decent-comments-rest.php:107
     317#: class-decent-comments-rest.php:135
    294318msgid "Term ids or slugs"
    295 msgstr ""
     319msgstr "IDs ou slugs des termes"
    296320
    297321#: class-decent-comments-widget.php:630
     
    307331msgid "Thanks for supporting our work with a purchase in our %sShop%s!"
    308332msgstr ""
     333"Merci de soutenir notre travail en effectuant un achat dans notre "
     334"%sBoutique%s!"
    309335
    310336#: class-decent-comments-widget.php:559
     
    341367msgstr "Trackbacks"
    342368
    343 #: class-decent-comments-rest.php:122
     369#: class-decent-comments-rest.php:150
    344370msgid "Whether to include Pingbacks"
    345371msgstr "Inclure les pingbacks"
    346372
    347 #: class-decent-comments-rest.php:130
     373#: class-decent-comments-rest.php:158
    348374msgid "Whether to include Trackbacks"
    349375msgstr "Inclure les trackbacks"
  • decent-comments/trunk/languages/decent-comments-it_IT.po

    r3426106 r3433692  
    55"Project-Id-Version: Decent Comments 1.1.0\n"
    66"Report-Msgid-Bugs-To: \n"
    7 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    8 "PO-Revision-Date: 2025-12-23 11:18+0100\n"
     7"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     8"PO-Revision-Date: 2026-01-06 15:02+0100\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    1717#: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44
    1818msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store"
    19 msgstr ""
     19msgstr "$store deve essere un'istanza di WP_Style_Engine_CSS_Rules_Store"
    2020
    2121#: class-decent-comments-renderer.php:496
     
    8282msgstr "Elisione"
    8383
    84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     84#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8585msgid "Exclude comments from post authors"
    8686msgstr ""
    8787
    88 #: class-decent-comments-rest.php:58
     88#: class-decent-comments-rest.php:74
     89msgid "Generate an excerpt"
     90msgstr "Genera un estratto"
     91
     92#: class-decent-comments-rest.php:67
    8993msgid "ID of the post to get comments for (0 for all posts)"
    90 msgstr ""
     94msgstr "ID del post per cui visualizzare i commenti (0 per tutti i post)"
    9195
    9296#: class-decent-comments-widget.php:630
     
    163167msgstr ""
    164168
     169#: class-decent-comments-rest.php:93
     170msgid "Number of characters shown as an excerpt"
     171msgstr "Numero di caratteri visualizzati nell'estratto"
     172
    165173#: class-decent-comments-widget.php:455
    166174msgid "Number of comments"
    167175msgstr "Numero di commenti"
    168176
    169 #: class-decent-comments-rest.php:41
     177#: class-decent-comments-rest.php:50
    170178msgid "Number of comments to return"
    171179msgstr "Numero di commenti"
     
    175183msgstr "Numero di parole dell'anteprima"
    176184
     185#: class-decent-comments-rest.php:84
     186msgid "Number of words shown as an excerpt"
     187msgstr "Numero di parole visualizzate nell'estratto"
     188
    177189#: class-decent-comments.php:58
    178190msgid "Options"
     
    199211msgstr ""
    200212
    201 #: class-decent-comments-rest.php:99
     213#: class-decent-comments-rest.php:127
    202214msgid "Post category or tag"
    203 msgstr ""
     215msgstr "Categoria o tag del post"
    204216
    205217#: class-decent-comments.php:172
     
    232244msgstr "Mostra avatar"
    233245
     246#: class-decent-comments-rest.php:182
     247msgid "Show comment"
     248msgstr "Mostra commento"
     249
     250#: class-decent-comments-rest.php:166
     251msgid "Show comment author"
     252msgstr "Mostra autore del commento"
     253
    234254#: class-decent-comments-widget.php:539
    235255msgid "Show comment excerpt"
    236256msgstr "Visualizza un'anteprima del commento"
    237257
    238 #: class-decent-comments-widget.php:574
     258#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    239259msgid "Show date"
    240260msgstr ""
     
    256276msgstr ""
    257277
    258 #: class-decent-comments-rest.php:50
     278#: class-decent-comments-rest.php:59
    259279msgid "Size of author avatars in pixels"
    260280msgstr "Dimensioni dell'avatar in pixels"
    261281
    262 #: class-decent-comments-rest.php:74
     282#: class-decent-comments-rest.php:101
    263283msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    264284msgstr ""
     285"Ordina i commenti per: date, author_email, author_url, content, karma, post"
    265286
    266287#: class-decent-comments-widget.php:474
     
    272293msgstr "Ordina."
    273294
    274 #: class-decent-comments-rest.php:90
     295#: class-decent-comments-rest.php:118
    275296msgid "Sort order: asc or desc"
    276297msgstr "Ordina: asc o desc"
     
    284305msgstr "Tassonomia"
    285306
    286 #: class-decent-comments-rest.php:107
     307#: class-decent-comments-rest.php:135
    287308msgid "Term ids or slugs"
    288 msgstr ""
     309msgstr "ID o slug dei termini"
    289310
    290311#: class-decent-comments-widget.php:630
     
    301322msgid "Thanks for supporting our work with a purchase in our %sShop%s!"
    302323msgstr ""
     324"Grazie per aver supportato il nostro lavoro con un acquisto nel nostro "
     325"%sNegozio%s!"
    303326
    304327#: class-decent-comments-widget.php:559
     
    334357msgstr ""
    335358
    336 #: class-decent-comments-rest.php:122
     359#: class-decent-comments-rest.php:150
    337360msgid "Whether to include Pingbacks"
    338361msgstr ""
    339362
    340 #: class-decent-comments-rest.php:130
     363#: class-decent-comments-rest.php:158
    341364msgid "Whether to include Trackbacks"
    342365msgstr ""
  • decent-comments/trunk/languages/decent-comments-lt_LT.po

    r3426106 r3433692  
    55"Project-Id-Version: Decent Comments 1.1.0\n"
    66"Report-Msgid-Bugs-To: \n"
    7 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    8 "PO-Revision-Date: 2025-12-23 11:20+0100\n"
     7"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     8"PO-Revision-Date: 2026-01-06 15:04+0100\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    1717#: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44
    1818msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store"
    19 msgstr ""
     19msgstr "„$store“ turi būti WP_Style_Engine_CSS_Rules_Store egzempliorius"
    2020
    2121#: class-decent-comments-renderer.php:496
     
    8282msgstr "Elipsė"
    8383
    84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     84#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8585msgid "Exclude comments from post authors"
    8686msgstr ""
    8787
    88 #: class-decent-comments-rest.php:58
     88#: class-decent-comments-rest.php:74
     89msgid "Generate an excerpt"
     90msgstr ""
     91
     92#: class-decent-comments-rest.php:67
    8993msgid "ID of the post to get comments for (0 for all posts)"
    90 msgstr ""
     94msgstr "Įrašo ID, kad būtų galima gauti komentarus (0 visiems įrašams)"
    9195
    9296#: class-decent-comments-widget.php:630
     
    165169msgstr ""
    166170
     171#: class-decent-comments-rest.php:93
     172msgid "Number of characters shown as an excerpt"
     173msgstr "Simbolių skaičius, rodomas kaip ištrauka"
     174
    167175#: class-decent-comments-widget.php:455
    168176msgid "Number of comments"
    169177msgstr "Komentarų skaičius"
    170178
    171 #: class-decent-comments-rest.php:41
     179#: class-decent-comments-rest.php:50
    172180msgid "Number of comments to return"
    173181msgstr "Komentarų skaičius"
     
    177185msgstr "Žodžių skaičius ištraukose"
    178186
     187#: class-decent-comments-rest.php:84
     188msgid "Number of words shown as an excerpt"
     189msgstr "Žodžių skaičius, rodomas kaip ištrauka"
     190
    179191#: class-decent-comments.php:58
    180192msgid "Options"
     
    201213msgstr ""
    202214
    203 #: class-decent-comments-rest.php:99
     215#: class-decent-comments-rest.php:127
    204216msgid "Post category or tag"
    205 msgstr ""
     217msgstr "Įrašo kategorija arba žyma"
    206218
    207219#: class-decent-comments.php:172
     
    234246msgstr "Rodyti pseudoportretą"
    235247
     248#: class-decent-comments-rest.php:182
     249msgid "Show comment"
     250msgstr "Rodyti komentarą"
     251
     252#: class-decent-comments-rest.php:166
     253msgid "Show comment author"
     254msgstr "Rodyti komentaro autorių"
     255
    236256#: class-decent-comments-widget.php:539
    237257msgid "Show comment excerpt"
    238258msgstr "Rodyti komentaro ištrauką"
    239259
    240 #: class-decent-comments-widget.php:574
     260#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    241261msgid "Show date"
    242262msgstr ""
     
    258278msgstr ""
    259279
    260 #: class-decent-comments-rest.php:50
     280#: class-decent-comments-rest.php:59
    261281msgid "Size of author avatars in pixels"
    262282msgstr "Pseudoportreto dydis, taškais"
    263283
    264 #: class-decent-comments-rest.php:74
     284#: class-decent-comments-rest.php:101
    265285msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    266286msgstr ""
     287"Rūšiuoti komentarus pagal: date, author_email, author_url, content, karma, "
     288"post"
    267289
    268290#: class-decent-comments-widget.php:474
     
    274296msgstr "Rikiavimo tvarka."
    275297
    276 #: class-decent-comments-rest.php:90
     298#: class-decent-comments-rest.php:118
    277299msgid "Sort order: asc or desc"
    278300msgstr "Rikiavimo tvarka: asc arba post_tag"
     
    286308msgstr "Taksonomija"
    287309
    288 #: class-decent-comments-rest.php:107
     310#: class-decent-comments-rest.php:135
    289311msgid "Term ids or slugs"
    290 msgstr ""
     312msgstr "Terminų ID arba šliuzus"
    291313
    292314#: class-decent-comments-widget.php:630
     
    302324#, php-format
    303325msgid "Thanks for supporting our work with a purchase in our %sShop%s!"
    304 msgstr ""
     326msgstr "Dėkojame, kad remiate mūsų darbą pirkdami mūsų %sShop%s!"
    305327
    306328#: class-decent-comments-widget.php:559
     
    336358msgstr ""
    337359
    338 #: class-decent-comments-rest.php:122
     360#: class-decent-comments-rest.php:150
    339361msgid "Whether to include Pingbacks"
    340362msgstr ""
    341363
    342 #: class-decent-comments-rest.php:130
     364#: class-decent-comments-rest.php:158
    343365msgid "Whether to include Trackbacks"
    344366msgstr ""
  • decent-comments/trunk/languages/decent-comments-pt_PT.po

    r3426106 r3433692  
    55"Project-Id-Version: Decent Comments 1.1.0\n"
    66"Report-Msgid-Bugs-To: \n"
    7 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    8 "PO-Revision-Date: 2025-12-23 11:20+0100\n"
     7"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     8"PO-Revision-Date: 2026-01-06 15:06+0100\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    1717#: blocks/decent-comments/node_modules/@wordpress/style-engine/class-wp-style-engine-processor.php:44
    1818msgid "$store must be an instance of WP_Style_Engine_CSS_Rules_Store"
    19 msgstr ""
     19msgstr "$store deve ser uma instância de WP_Style_Engine_CSS_Rules_Store"
    2020
    2121#: class-decent-comments-renderer.php:496
     
    8282msgstr "Elipse"
    8383
    84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     84#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8585msgid "Exclude comments from post authors"
    8686msgstr ""
    8787
    88 #: class-decent-comments-rest.php:58
     88#: class-decent-comments-rest.php:74
     89msgid "Generate an excerpt"
     90msgstr "Gerar um excerto"
     91
     92#: class-decent-comments-rest.php:67
    8993msgid "ID of the post to get comments for (0 for all posts)"
    9094msgstr ""
     95"ID da publicação para a qual pretende obter comentários (0 para todas as "
     96"publicações)"
    9197
    9298#: class-decent-comments-widget.php:630
     
    164170msgstr ""
    165171
     172#: class-decent-comments-rest.php:93
     173msgid "Number of characters shown as an excerpt"
     174msgstr "Número de caracteres apresentados como excerto"
     175
    166176#: class-decent-comments-widget.php:455
    167177msgid "Number of comments"
    168178msgstr "Número de cometários"
    169179
    170 #: class-decent-comments-rest.php:41
     180#: class-decent-comments-rest.php:50
    171181msgid "Number of comments to return"
    172182msgstr "Número de cometários"
     
    176186msgstr "Número de palavras nos resumos"
    177187
     188#: class-decent-comments-rest.php:84
     189msgid "Number of words shown as an excerpt"
     190msgstr "Número de palavras apresentadas como excerto"
     191
    178192#: class-decent-comments.php:58
    179193msgid "Options"
     
    200214msgstr ""
    201215
    202 #: class-decent-comments-rest.php:99
     216#: class-decent-comments-rest.php:127
    203217msgid "Post category or tag"
    204 msgstr ""
     218msgstr "Categoria ou etiqueta da publicação"
    205219
    206220#: class-decent-comments.php:172
     
    233247msgstr "Exibir avatar"
    234248
     249#: class-decent-comments-rest.php:182
     250msgid "Show comment"
     251msgstr "Exibir comentário"
     252
     253#: class-decent-comments-rest.php:166
     254msgid "Show comment author"
     255msgstr "Ver autor do comentário"
     256
    235257#: class-decent-comments-widget.php:539
    236258msgid "Show comment excerpt"
    237259msgstr "Mostrar resumo do comentário"
    238260
    239 #: class-decent-comments-widget.php:574
     261#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    240262msgid "Show date"
    241263msgstr ""
     
    257279msgstr ""
    258280
    259 #: class-decent-comments-rest.php:50
     281#: class-decent-comments-rest.php:59
    260282msgid "Size of author avatars in pixels"
    261283msgstr "Dimesão do avatar em pixeis"
    262284
    263 #: class-decent-comments-rest.php:74
     285#: class-decent-comments-rest.php:101
    264286msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    265287msgstr ""
     288"Ordenar comentários por: date, author_email, author_url, content, karma, post"
    266289
    267290#: class-decent-comments-widget.php:474
     
    273296msgstr "Ordenar."
    274297
    275 #: class-decent-comments-rest.php:90
     298#: class-decent-comments-rest.php:118
    276299msgid "Sort order: asc or desc"
    277300msgstr "Ordenar: asc ou desc"
     
    285308msgstr "Taxonomia"
    286309
    287 #: class-decent-comments-rest.php:107
     310#: class-decent-comments-rest.php:135
    288311msgid "Term ids or slugs"
    289 msgstr ""
     312msgstr "IDs ou slugs dos termos"
    290313
    291314#: class-decent-comments-widget.php:630
     
    301324#, php-format
    302325msgid "Thanks for supporting our work with a purchase in our %sShop%s!"
    303 msgstr ""
     326msgstr "Obrigado por apoiar o nosso trabalho com uma compra na nossa %sShop%s!"
    304327
    305328#: class-decent-comments-widget.php:559
     
    335358msgstr ""
    336359
    337 #: class-decent-comments-rest.php:122
     360#: class-decent-comments-rest.php:150
    338361msgid "Whether to include Pingbacks"
    339362msgstr ""
    340363
    341 #: class-decent-comments-rest.php:130
     364#: class-decent-comments-rest.php:158
    342365msgid "Whether to include Trackbacks"
    343366msgstr ""
  • decent-comments/trunk/languages/decent-comments-ru_RU.po

    r3426106 r3433692  
    88"Project-Id-Version: \n"
    99"Report-Msgid-Bugs-To: \n"
    10 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    11 "PO-Revision-Date: 2025-12-23 11:24+0100\n"
     10"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     11"PO-Revision-Date: 2026-01-06 15:07+0100\n"
    1212"Last-Translator: Igor <[email protected]>\n"
    1313"Language-Team: \n"
     
    8989msgstr "Многоточие"
    9090
    91 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     91#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    9292msgid "Exclude comments from post authors"
    9393msgstr "Исключить комментарии от авторов сообщения"
    9494
    95 #: class-decent-comments-rest.php:58
     95#: class-decent-comments-rest.php:74
     96msgid "Generate an excerpt"
     97msgstr "Сгенерировать отрывок"
     98
     99#: class-decent-comments-rest.php:67
    96100msgid "ID of the post to get comments for (0 for all posts)"
    97101msgstr ""
     
    178182msgstr "Количество символов в анонсе"
    179183
     184#: class-decent-comments-rest.php:93
     185msgid "Number of characters shown as an excerpt"
     186msgstr "Количество символов, отображаемых в отрывке"
     187
    180188#: class-decent-comments-widget.php:455
    181189msgid "Number of comments"
    182190msgstr "Число комментариев"
    183191
    184 #: class-decent-comments-rest.php:41
     192#: class-decent-comments-rest.php:50
    185193msgid "Number of comments to return"
    186194msgstr "Число комментариев"
     
    190198msgstr "Количество слов в анонсах"
    191199
     200#: class-decent-comments-rest.php:84
     201msgid "Number of words shown as an excerpt"
     202msgstr "Количество слов, отображаемых в отрывке"
     203
    192204#: class-decent-comments.php:58
    193205msgid "Options"
     
    214226msgstr "Тип сообщения"
    215227
    216 #: class-decent-comments-rest.php:99
     228#: class-decent-comments-rest.php:127
    217229msgid "Post category or tag"
    218230msgstr "Категория или тег публикации"
     
    247259msgstr "Показать аватар"
    248260
     261#: class-decent-comments-rest.php:182
     262msgid "Show comment"
     263msgstr "Показать комментарий"
     264
     265#: class-decent-comments-rest.php:166
     266msgid "Show comment author"
     267msgstr "Показать автора комментария"
     268
    249269#: class-decent-comments-widget.php:539
    250270msgid "Show comment excerpt"
    251271msgstr "Показывать анонс комментария"
    252272
    253 #: class-decent-comments-widget.php:574
     273#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    254274msgid "Show date"
    255275msgstr "Показать дату"
     
    271291msgstr "Показывать дату и время публикации комментария."
    272292
    273 #: class-decent-comments-rest.php:50
     293#: class-decent-comments-rest.php:59
    274294msgid "Size of author avatars in pixels"
    275295msgstr "Размер аватара в пикселях"
    276296
    277 #: class-decent-comments-rest.php:74
     297#: class-decent-comments-rest.php:101
    278298msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    279299msgstr ""
     
    289309msgstr "Порядок сортировки."
    290310
    291 #: class-decent-comments-rest.php:90
     311#: class-decent-comments-rest.php:118
    292312msgid "Sort order: asc or desc"
    293313msgstr "Порядок сортировки: asc или desc"
     
    301321msgstr "Таксономия"
    302322
    303 #: class-decent-comments-rest.php:107
     323#: class-decent-comments-rest.php:135
    304324msgid "Term ids or slugs"
    305325msgstr "Идентификаторы или псевдонимы терминов"
     
    354374msgstr "Обратные ссылки"
    355375
    356 #: class-decent-comments-rest.php:122
     376#: class-decent-comments-rest.php:150
    357377msgid "Whether to include Pingbacks"
    358378msgstr "Включите pingbacks"
    359379
    360 #: class-decent-comments-rest.php:130
     380#: class-decent-comments-rest.php:158
    361381msgid "Whether to include Trackbacks"
    362382msgstr "Включите трекбэки"
  • decent-comments/trunk/languages/decent-comments-zh_CN.po

    r3426106 r3433692  
    55"Project-Id-Version: Decent Comments 1.1.0\n"
    66"Report-Msgid-Bugs-To: \n"
    7 "POT-Creation-Date: 2025-12-22 21:09+0100\n"
    8 "PO-Revision-Date: 2025-12-23 11:34+0100\n"
     7"POT-Creation-Date: 2026-01-06 14:45+0100\n"
     8"PO-Revision-Date: 2026-01-06 15:11+0100\n"
    99"Last-Translator: \n"
    1010"Language-Team: \n"
     
    8282msgstr "更多内容提示"
    8383
    84 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     84#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8585msgid "Exclude comments from post authors"
    8686msgstr "排除帖子作者的评论"
    8787
    88 #: class-decent-comments-rest.php:58
     88#: class-decent-comments-rest.php:74
     89msgid "Generate an excerpt"
     90msgstr "生成摘录"
     91
     92#: class-decent-comments-rest.php:67
    8993msgid "ID of the post to get comments for (0 for all posts)"
    9094msgstr "要获取评论的帖子的ID(0表示所有帖子)"
     
    126130"tags' slugs in <strong>Terms</strong>."
    127131msgstr ""
    128 "若想显示某种分类里的留言请选择 <strong>category</strong> 。请在"
    129 "<strong>Terms</strong>里选择分类短语。标签请选择<strong>post_tag</strong> 然"
    130 "后在 <strong>Termes</strong>选择标签短语。"
     132"若想显示某种分类里的留言请选择 <strong>category</strong> 。请在<strong>词汇</"
     133"strong>里选择分类短语。标签请选择<strong>post_tag</strong> 然后在 <strong>词"
     134"</strong>选择标签短语。"
    131135
    132136#: class-decent-comments-renderer.php:106
     
    159163msgstr "摘录中的字符数"
    160164
     165#: class-decent-comments-rest.php:93
     166msgid "Number of characters shown as an excerpt"
     167msgstr "显示为摘录的字符数"
     168
    161169#: class-decent-comments-widget.php:455
    162170msgid "Number of comments"
    163171msgstr "留言总数"
    164172
    165 #: class-decent-comments-rest.php:41
     173#: class-decent-comments-rest.php:50
    166174msgid "Number of comments to return"
    167175msgstr "要返回的评论数量"
     
    171179msgstr "预览字数量"
    172180
     181#: class-decent-comments-rest.php:84
     182msgid "Number of words shown as an excerpt"
     183msgstr "显示为摘录的单词数"
     184
    173185#: class-decent-comments.php:58
    174186msgid "Options"
     
    195207msgstr "帖子类型"
    196208
    197 #: class-decent-comments-rest.php:99
     209#: class-decent-comments-rest.php:127
    198210msgid "Post category or tag"
    199211msgstr "发布类别或标签"
     
    228240msgstr "显示头像"
    229241
     242#: class-decent-comments-rest.php:182
     243msgid "Show comment"
     244msgstr "显示评论"
     245
     246#: class-decent-comments-rest.php:166
     247msgid "Show comment author"
     248msgstr "显示评论作者"
     249
    230250#: class-decent-comments-widget.php:539
    231251msgid "Show comment excerpt"
    232252msgstr "显示留言预览"
    233253
    234 #: class-decent-comments-widget.php:574
     254#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    235255msgid "Show date"
    236256msgstr "显示日期"
     
    252272msgstr "显示评论发布的日期和时间。"
    253273
    254 #: class-decent-comments-rest.php:50
     274#: class-decent-comments-rest.php:59
    255275msgid "Size of author avatars in pixels"
    256276msgstr "作者头像的尺寸(以像素为单位)"
    257277
    258 #: class-decent-comments-rest.php:74
     278#: class-decent-comments-rest.php:101
    259279msgid "Sort comments by: date, author_email, author_url, content, karma, post"
    260280msgstr "评论排序方式:日期、作者邮箱、作者网址、内容、积分、帖子"
     
    268288msgstr "排序."
    269289
    270 #: class-decent-comments-rest.php:90
     290#: class-decent-comments-rest.php:118
    271291msgid "Sort order: asc or desc"
    272292msgstr "排序顺序:asc 或 desc"
     
    280300msgstr "分类"
    281301
    282 #: class-decent-comments-rest.php:107
     302#: class-decent-comments-rest.php:135
    283303msgid "Term ids or slugs"
    284304msgstr "术语ID或别名"
     
    329349msgstr "引用链接"
    330350
    331 #: class-decent-comments-rest.php:122
     351#: class-decent-comments-rest.php:150
    332352msgid "Whether to include Pingbacks"
    333353msgstr "是否包含引用通知"
    334354
    335 #: class-decent-comments-rest.php:130
     355#: class-decent-comments-rest.php:158
    336356msgid "Whether to include Trackbacks"
    337357msgstr "是否包含引用链接"
  • decent-comments/trunk/languages/decent-comments.pot

    r3426106 r3433692  
    88msgstr  "Project-Id-Version: PACKAGE VERSION\n"
    99        "Report-Msgid-Bugs-To: \n"
    10         "POT-Creation-Date: 2025-12-22 21:09+0100\n"
     10        "POT-Creation-Date: 2026-01-06 14:45+0100\n"
    1111        "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1212        "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    8484msgstr  ""
    8585
    86 #: class-decent-comments-widget.php:532 class-decent-comments-rest.php:114
     86#: class-decent-comments-widget.php:532 class-decent-comments-rest.php:142
    8787msgid   "Exclude comments from post authors"
    8888msgstr  ""
    8989
    90 #: class-decent-comments-rest.php:58
     90#: class-decent-comments-rest.php:74
     91msgid   "Generate an excerpt"
     92msgstr  ""
     93
     94#: class-decent-comments-rest.php:67
    9195msgid   "ID of the post to get comments for (0 for all posts)"
    9296msgstr  ""
     
    148152msgstr  ""
    149153
     154#: class-decent-comments-rest.php:93
     155msgid   "Number of characters shown as an excerpt"
     156msgstr  ""
     157
    150158#: class-decent-comments-widget.php:455
    151159msgid   "Number of comments"
    152160msgstr  ""
    153161
    154 #: class-decent-comments-rest.php:41
     162#: class-decent-comments-rest.php:50
    155163msgid   "Number of comments to return"
    156164msgstr  ""
     
    160168msgstr  ""
    161169
     170#: class-decent-comments-rest.php:84
     171msgid   "Number of words shown as an excerpt"
     172msgstr  ""
     173
    162174#: class-decent-comments.php:58
    163175msgid   "Options"
     
    184196msgstr  ""
    185197
    186 #: class-decent-comments-rest.php:99
     198#: class-decent-comments-rest.php:127
    187199msgid   "Post category or tag"
    188200msgstr  ""
     
    217229msgstr  ""
    218230
     231#: class-decent-comments-rest.php:182
     232msgid   "Show comment"
     233msgstr  ""
     234
     235#: class-decent-comments-rest.php:166
     236msgid   "Show comment author"
     237msgstr  ""
     238
    219239#: class-decent-comments-widget.php:539
    220240msgid   "Show comment excerpt"
    221241msgstr  ""
    222242
    223 #: class-decent-comments-widget.php:574
     243#: class-decent-comments-widget.php:574 class-decent-comments-rest.php:174
    224244msgid   "Show date"
    225245msgstr  ""
     
    241261msgstr  ""
    242262
    243 #: class-decent-comments-rest.php:50
     263#: class-decent-comments-rest.php:59
    244264msgid   "Size of author avatars in pixels"
    245265msgstr  ""
    246266
    247 #: class-decent-comments-rest.php:74
     267#: class-decent-comments-rest.php:101
    248268msgid   "Sort comments by: date, author_email, author_url, content, karma, "
    249269        "post"
     
    258278msgstr  ""
    259279
    260 #: class-decent-comments-rest.php:90
     280#: class-decent-comments-rest.php:118
    261281msgid   "Sort order: asc or desc"
    262282msgstr  ""
     
    270290msgstr  ""
    271291
    272 #: class-decent-comments-rest.php:107
     292#: class-decent-comments-rest.php:135
    273293msgid   "Term ids or slugs"
    274294msgstr  ""
     
    319339msgstr  ""
    320340
    321 #: class-decent-comments-rest.php:122
     341#: class-decent-comments-rest.php:150
    322342msgid   "Whether to include Pingbacks"
    323343msgstr  ""
    324344
    325 #: class-decent-comments-rest.php:130
     345#: class-decent-comments-rest.php:158
    326346msgid   "Whether to include Trackbacks"
    327347msgstr  ""
  • decent-comments/trunk/readme.txt

    r3426106 r3433692  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 3.0.1
     8Stable tag: 3.0.2
    99License: GPLv3
    1010
Note: See TracChangeset for help on using the changeset viewer.