Skip to content

Commit

Permalink
Remove "Change Permalink" button when permalink is not editable. (#16395
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jorgefilipecosta committed Jul 25, 2019
1 parent 174c098 commit c3a39f4
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/editor/src/components/post-permalink/index.js
Expand Up @@ -18,7 +18,7 @@ import { safeDecodeURI, safeDecodeURIComponent } from '@wordpress/url';
* Internal dependencies
*/
import PostPermalinkEditor from './editor.js';
import { getWPAdminURL, cleanForSlug } from '../../utils/url';
import { cleanForSlug } from '../../utils/url';

class PostPermalink extends Component {
constructor() {
Expand Down Expand Up @@ -122,18 +122,6 @@ class PostPermalink extends Component {
{ __( 'Edit' ) }
</Button>
}

{ ! isEditable &&
<Button
className="editor-post-permalink__change"
isLarge
href={ getWPAdminURL( 'options-permalink.php' ) }
onClick={ this.addVisibilityCheck }
target="_blank"
>
{ __( 'Change Permalinks' ) }
</Button>
}
</div>
);
}
Expand Down

0 comments on commit c3a39f4

Please sign in to comment.