Skip to content

Commit

Permalink
Remove rel="noopener" from all links
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Jun 6, 2024
1 parent 4e60364 commit 941dec3
Show file tree
Hide file tree
Showing 12 changed files with 115 additions and 183 deletions.
4 changes: 2 additions & 2 deletions includes/Admin/PluginRowMeta.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function get_plugin_row_meta( $meta, string $plugin_file ) {
return $meta;
}
$additional_meta = [
'<a href="https://wordpress.org/support/plugin/web-stories/" target="_blank" rel="noreferrer noopener">' . esc_html__( 'Contact support', 'web-stories' ) . '</a>',
'<a href="https://wordpress.org/support/plugin/web-stories/reviews/#new-post" target="_blank" rel="noreferrer noopener">' . esc_html__( 'Leave review', 'web-stories' ) . '</a>',
'<a href="https://wordpress.org/support/plugin/web-stories/" target="_blank" rel="noreferrer">' . esc_html__( 'Contact support', 'web-stories' ) . '</a>',
'<a href="https://wordpress.org/support/plugin/web-stories/reviews/#new-post" target="_blank" rel="noreferrer">' . esc_html__( 'Leave review', 'web-stories' ) . '</a>',
];

return [ ...$meta, ...$additional_meta ];
Expand Down
73 changes: 0 additions & 73 deletions includes/Block/Web_Stories_Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,80 +260,7 @@ protected function register_block_type(): void {
register_block_type_from_metadata(
$base_path,
[
'attributes' => [
'blockType' => [
'type' => 'string',
],
'url' => [
'type' => 'string',
],
'title' => [
'type' => 'string',
'default' => __( 'Web Story', 'web-stories' ),
],
'poster' => [
'type' => 'string',
],
'width' => [
'type' => 'number',
'default' => 360,
],
'height' => [
'type' => 'number',
'default' => 600,
],
'align' => [
'type' => 'string',
'default' => 'none',
],
'stories' => [
'type' => 'array',
'default' => [],
],
'viewType' => [
'type' => 'string',
'default' => '',
],
'numOfStories' => [
'type' => 'number',
'default' => 5,
],
'numOfColumns' => [
'type' => 'number',
'default' => 2,
],
'circleSize' => [
'type' => 'number',
'default' => 96,
],
'imageAlignment' => [
'type' => 'number',
'default' => 96,
],
'orderby' => [
'type' => 'string',
'default' => '',
],
'order' => [
'type' => 'string',
'default' => '',
],
'archiveLinkLabel' => [
'type' => 'string',
'default' => __( 'View all stories', 'web-stories' ),
],
'authors' => [
'type' => 'array',
'default' => [],
],
'fieldState' => [
'type' => 'object',
'default' => [],
],
],
'render_callback' => [ $this, 'render_block' ],
'editor_script' => self::SCRIPT_HANDLE,
'editor_style' => self::SCRIPT_HANDLE,
]
);
}
Expand Down
Loading

0 comments on commit 941dec3

Please sign in to comment.