Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release_on_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
run: |
gh release view "${{ github.ref_name }}" || \
gh release create "${{ github.ref_name }}" \
--title "OneUpdate ${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--generate-notes \
--draft
# Upload the artifact
Expand Down
5 changes: 3 additions & 2 deletions assets/src/admin/plugin-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { decodeEntities } from '@wordpress/html-entities';
import { arrowLeft, plus, loop } from '@wordpress/icons';
import PluginsSharing from '../../components/PluginsSharing';
import S3ZipUploader from '../../components/S3ZipUploader';
import { PurifyElement } from '../../js/utils';

// Declare the OneUpdatePlugins variable
const OneUpdatePlugins = window.OneUpdatePlugins || {};
Expand Down Expand Up @@ -289,11 +290,11 @@ const PluginManager = () => {
name: decodeEntities( sampleSitePlugin?.Name || pluginInfo.name || slug ),
description: decodeEntities(
sampleSitePlugin?.Description ||
pluginInfo.sections?.description?.replace( /<[^>]*>/g, '' ).substring( 0, 200 ) + '...' ||
PurifyElement( pluginInfo.sections?.description )?.substring( 0, 200 ) + '...' ||
pluginInfo.short_description ||
'No description available.',
),
author: decodeEntities( sampleSitePlugin?.Author || pluginInfo.author?.replace( /<[^>]*>/g, '' ) || 'Unknown' ),
author: decodeEntities( sampleSitePlugin?.Author || PurifyElement( pluginInfo.author ) || 'Unknown' ),
version: sharedPluginData.version || sampleSitePlugin?.Version || pluginInfo.version || '0.0.0',
plugin_uri: sampleSitePlugin?.PluginURI || pluginInfo.homepage || '',
is_public: sampleSitePlugin?.is_public !== undefined ? sampleSitePlugin.is_public : Boolean( pluginInfo.download_link ),
Expand Down
2 changes: 1 addition & 1 deletion assets/src/admin/plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SiteTypeSelector = ( { value, setSiteType } ) => (
options={ [
{ label: __( 'Select…', 'oneupdate' ), value: '' },
{ label: __( 'Brand Site', 'oneupdate' ), value: 'brand-site' },
{ label: __( 'Governing site', 'oneupdate' ), value: 'governing-site' },
{ label: __( 'Governing Site', 'oneupdate' ), value: 'governing-site' },
] }
/>
);
Expand Down
Loading