Skip to content

Commit

Permalink
Merge pull request #70 from johngodley/fix/slashing
Browse files Browse the repository at this point in the history
Add slashes to replacement value before updating a post or comment
  • Loading branch information
johngodley authored Nov 29, 2020
2 parents 1875f95 + 15b64ff commit 154108b
Show file tree
Hide file tree
Showing 22 changed files with 1,996 additions and 1,973 deletions.
4 changes: 2 additions & 2 deletions client/component/presets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ function Presets( props ) {

const presetActions = [];

if ( ! currentPreset ) {
if ( ! currentPreset || currentPreset === '0' ) {
presetActions.push(
<a href="#" onClick={ askPresetName }>
{ __( 'Save search as new preset' ) }
</a>
);
}

if ( currentPreset ) {
if ( currentPreset && currentPreset !== '0' ) {
presetActions.push(
<a href="#" onClick={ updatePreset }>
{ __( 'Update current preset' ) }
Expand Down
2 changes: 1 addition & 1 deletion locale/json/search-regex-it_IT.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/json/search-regex-ja.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/json/search-regex-nl_BE.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion locale/json/search-regex-nl_NL.json

Large diffs are not rendered by default.

Binary file modified locale/search-regex-it_IT.mo
Binary file not shown.
Loading

0 comments on commit 154108b

Please sign in to comment.