PluginProbe
TablePress – Tables in WordPress made easy / 3.2
TablePress – Tables in WordPress made easy v3.2
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
← All changes | blocks/table/src/save.js +4 -2 2.23.2 View file →
@@ -22,9 +22,9 @@
22 22 * @param {string} params.attributes.id Table ID.
23 23 * @param {string} params.attributes.parameters Table render attributes.
24 24 * @return {Element} Element to render.
25 25 */
26 -export default function save( { attributes: { id = '', parameters = '' } } ) {
26 +const save = ( { attributes: { id = '', parameters = '' } } ) => {
27 27 if ( '' === id ) {
28 28 return '';
29 29 }
30 30
@@ -32,5 +32,7 @@
32 32 if ( '' !== parameters ) {
33 33 parameters += ' ';
34 34 }
35 35 return <RawHTML>{ `[${ tp.table.shortcode } id=${ id } ${ parameters }/]` }</RawHTML>;
36 -}
36 +};
37 +
38 +export default save;