Skip to content

Commit

Permalink
Merge pull request #13 from WPDevelopers/latest
Browse files Browse the repository at this point in the history
v2.0.10
  • Loading branch information
priyomukul authored Jul 16, 2024
2 parents 8839c8b + 4e0518d commit 60dd3e4
Show file tree
Hide file tree
Showing 17 changed files with 10,293 additions and 99 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
],
"@babel/preset-react"
]
}
}
2 changes: 1 addition & 1 deletion assets/js/simple-301-redirects.core.min.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'react-dom', 'wp-i18n', 'wp-polyfill'), 'version' => 'd587d386c8c9a1032e7d0ce98fb63c9d');
<?php return array('dependencies' => array('react', 'react-dom', 'wp-i18n'), 'version' => '373b223831b627d8700c');
2 changes: 1 addition & 1 deletion assets/js/simple-301-redirects.core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/Admin/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function () {
wp_enqueue_script(
'simple-301-redirects-admin-core',
SIMPLE301REDIRECTS_ASSETS_URI . 'js/simple-301-redirects.core.min.js',
$dependencies['dependencies'],
array_merge( $dependencies['dependencies'], ['regenerator-runtime'] ),
$dependencies['version'],
true
);
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
"prop-types": "^15.7.2"
},
"devDependencies": {
"@wordpress/dependency-extraction-webpack-plugin": "^4.0.0",
"@babel/preset-env": "^7.24.7",
"@babel/preset-react": "^7.24.7",
"@wordpress/i18n": "^4.16.0",
"@wordpress/scripts": "^24.0.0"
"@wordpress/scripts": "^27.0.0"
}
}
66 changes: 48 additions & 18 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,37 @@
=== Simple 301 Redirects by BetterLinks ===
=== Simple 301 Redirects By BetterLinks - Easy WordPress Redirect Manager for Redirects, 404 Error Log & More ===
Contributors: wpdevteam, asif2bd, re_enter_rupok, scottnelle
Tags: 301 redirects, 301, shortlinks, link shortener, links, permalink, redirects, seo redirects, url redirect, 301 redirect, url, pretty links, short links, link tracking, affiliate links, urls
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 5.4
Stable tag: 2.0.9
Tags: 301 redirect, 404 error log, redirect url, link shortener, url redirects, 301, shortlinks, links, permalink, redirects, seo redirects, url redirect, url, pretty links, short links, link tracking, affiliate links, urls
Requires at least: 5.3
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 2.0.10
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Simple 301 Redirects provides an easy method of redirecting requests to another page on your site or elsewhere on the web.

== Description ==

= Improve Your User Experience With Simple 301 Redirects Solution for WordPress =
= Improve Your Website User Experience With Simple 301 Redirects Solution for WordPress =

Got "404 not found" errors? Launching a marketing campaign with a new URL? Or relaunching your website with a new URL? Let's redirect your old URLs to new ones automatically by creating 301 redirects to existing pages.
Launching a marketing campaign with a new URL? Got “404 not found” errors? Or relaunching your website with a new URL? Let's redirect your old URLs to new ones automatically by creating 301 redirects to existing pages.

Simple 301 Redirects provides an easy method of redirecting requests to another page on your site or elsewhere on the web. It's especially handy when you migrate a site to WordPress and can't preserve your URL structure.

By setting up 301 redirects from your old pages to your new pages, any incoming links will be seamlessly passed along, and their page rank (or what-have-you) will be passed along with them.

https://www.youtube.com/watch?v=F0Zyo2yDoZY

## ⭐ FEATURES OF SIMPLE 301 REDIRECTS:

◾With this plugin, you can check and redirect your old URLs to the new ones with few easy steps
**◾** Designed for any websites with very easy and user friendly interface which you can set up in few seconds
◾With this plugin, you can check and redirect your old URLs to the new ones with a few easy steps
**◾** Designed for any website with very easy and user friendly interface which you can set up in few seconds

◾Works great eCommerce, blog, magazine, small business and any others websites
◾Works great eCommerce, blog, magazine, small business and any other websites

## 🔰 MANAGE YOUR LINKS WITH SIMPLE 301 REDIRECTS:

**◾Import Redirect Rules:** You can import redirects links in bulk from your device and upload using this plugin to manage links
**◾Import Redirect Rules:** You can import redirect links in bulk from your device and upload them using this plugin to manage links

**◾ Export Redirect Rules:** You can also export your 301 Redirect Links in .csv format to use in future

Expand All @@ -38,6 +40,8 @@ By setting up 301 redirects from your old pages to your new pages, any incoming
- Request: /old-folder/\*
- Destination: /new-folder/\*

◾**Advanced Analytics:** Easily track and analyze click-through rates of your link redirects with BetterLinks (advanced link management solution by WPDeveloper)

◾ **Friendly Support:** Get super friendly community support as we have an extraordinary support team ready to help you. Ask your questions in the support forum &amp; someone from our team will help you

## 🏆 Featured by Renowned WordPress Publications
Expand All @@ -54,35 +58,57 @@ Simple 301 Redirects has been loved by lots of users, website owners, bloggers a

**THIS PLUGIN IS MAINTAINED BY THE TEAM** [WPDeveloper](https://wpdeveloper.net/).



[ALL FEATURES](https://wpdeveloper.com/plugins/simple-301-redirects/) | [DOCUMENTATION](https://wpdeveloper.com/docs-category/simple-301-redirects/)



## Need More Advanced Solution for Link Management?

Try [BetterLinks](https://wordpress.org/plugins/betterlinks/) - the advanced link management plugin that simplifies your marketing campaigns by offering a range of powerful features. You can easily shorten links, conduct split tests with dynamic redirects, and check for broken links.
The solution also allows you to monitor campaigns using a UTM builder, manage user roles, and analyze click-through rates. Additionally, you can create links without needing admin access and track analytics effortlessly, ensuring your marketing efforts are successful without any hassle.

https://www.youtube.com/watch?v=ZJqBrFhQC1A

## 🎁 [FREEBIE] Handful Plugins To Improve Your WordPress Site

If you like Simple 301 Redirects, then consider checking out our other WordPress Plugins &amp; take your website to next level:

🔝[**Essential Addons For Elementor**](https://wordpress.org/plugins/essential-addons-for-elementor-lite/)– Most popular Elementor addons with 1 million active users in the WordPress repository.

👉 [**Essential Blocks For Gutenberg**](https://wordpress.org/plugins/essential-blocks/) - The ultimate blocks library to enhance your Gutenberg web-building experience.

🔔[**NotificationX**](https://wordpress.org/plugins/notificationx/)– Best Social Proof &amp; FOMO Marketing Solution to increase conversion rates.

📝[**BetterDocs**](https://wordpress.org/plugins/betterdocs)– Best Documentation &amp; Knowledge Base Plugin for WordPress, which also reduces your manual support request.

🛑[**Disable Comments**](https://wordpress.org/plugins/disable-comments/) - Instantly allow or disallow comments from any post type in WordPress and gain complete control over your full website.

♾️[**EmbedPress**](https://wordpress.org/plugins/embedpress/) - EmbedPress lets you embed videos, images, posts, audio, maps and all other types of content into your WordPress site with one-click to showcase it beautifully for the visitors.

☁️[**Templately**](https://wordpress.org/plugins/templately/) - Free templates library for Elementor &amp; Gutenberg along with the cloud collaboration for WordPress.

⏰ [**WP Scheduled Posts**](https://wordpress.org/plugins/wp-scheduled-posts/): Advanced editorial calendar & complete solution for WordPress Post Scheduling, social sharing, missed scheduled alerts and more.
⏰ [**SchedulePress**](https://wordpress.org/plugins/wp-scheduled-posts/): Advanced editorial calendar & complete solution for WordPress Post Scheduling, social sharing, missed scheduled alerts and more.

🛑 [**Disable Comments**](https://wordpress.org/plugins/disable-comments/) – Instantly allow or disallow comments from any post type in WordPress and gain complete control over your full website.

[**ReviewX**](https://wordpress.org/plugins/reviewx/) - WooCommerce Product review plugin that allows users to submit product reviews with multiple criteria, photos, video and more.
[**Flexia**](https://wordpress.org/themes/flexia/): Most lightweight, customizable & multi purpose theme for WordPress.

⚡ [**Flexia**](http://wordpress.org/plugins/flexia): Most lightweight, customizable & multi purpose theme for WordPress.

### 👨‍💻 DOCUMENTATION AND SUPPORT
- For documentation and tutorials go to our [Documentation](https://wpdeveloper.com/docs-category/simple-301-redirects/)
- For video tutorials go to our [YouTube Playlist](https://www.youtube.com/playlist?list=PLWHp1xKHCfxAfzDOIz0TpDedvy9Z97umL)
- If you have any more questions, visit our support on the [Plugin’s Forum](https://wordpress.org/support/plugin/simple-301-redirects/)
- For more information about features, FAQs and documentation, check out our [website](https://wpdeveloper.com/plugins/simple-301-redirects/).

### 💙 LOVED SIMPLE 301 REDIRECTS?

- Join our [Facebook Group](https://www.facebook.com/groups/wpdeveloper.net/)

- Learn from our tutorial on the YouTube Channel

- If you love Simple 301 Redirects, [rate us on WordPress](https://wordpress.org/support/plugin/simple-301-redirects/reviews/?filter=5)

Visit [WPDeveloper](https://wpdeveloper.net/) to learn more about how to do better in WordPress with [Help Tutorial, Tips & Tricks](https://wpdeveloper.net/blog).
Visit [WPDeveloper](https://wpdeveloper.net/) to learn more about how to do better in WordPress with [Help Tutorial, Tips & Tricks](https://wpdeveloper.com/blog/).


== Installation ==
Expand All @@ -100,6 +126,10 @@ Visit [WPDeveloper](https://wpdeveloper.net/) to learn more about how to do bett

== Changelog ==

= 2.0.10 - 16/07/2024 =
* Added: WordPress 6.6 Compatibility
* Few minor bug fix and improvements

= 2.0.9 - 27/09/2023 =
* Fixed: Import Related Issue.
* Few minor bug fix and improvements
Expand Down
20 changes: 12 additions & 8 deletions src/components/BetterLinks/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React, { useState } from 'react';
import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
import axios from 'axios';
import InstallPlugin from './../../components/InstallPlugin';
const propTypes = {};
const defaultProps = {};

import { plugin_root_url, s3r_nonce, is_betterlinks_activated, hide_btl_notice } from './../../utils/helper';
export default function BetterLinks(props) {
const [isHideNotice, setHideNotice] = useState(hide_btl_notice);
Expand All @@ -19,7 +17,7 @@ export default function BetterLinks(props) {
},
(error) => {
console.log(error);
}
},
);
};
return (
Expand All @@ -32,8 +30,16 @@ export default function BetterLinks(props) {
<div className="simple301redirects__betterlinks__content">
<h3>{__('BetterLinks – Shorten, Track and Manage any URL', 'simple-301-redirects')}</h3>
<h4>
{__('Install BetterLinks to get the best out of Simple 301 Redirects and get access to more advanced features. Check out the features below', 'simple-301-redirects')}
<img width="18" style={{ transform: 'translateY(6px) scale(1.5)', marginLeft: 8 }} src={plugin_root_url + 'assets/images/pointing-down.svg'} alt="logo" />
{__(
'Install BetterLinks to get the best out of Simple 301 Redirects and get access to more advanced features. Check out the features below',
'simple-301-redirects',
)}
<img
width="18"
style={{ transform: 'translateY(6px) scale(1.5)', marginLeft: 8 }}
src={plugin_root_url + 'assets/images/pointing-down.svg'}
alt="logo"
/>
</h4>
<ul>
<li>{__('Easy-to-use & Simple Link Shortener', 'simple-301-redirects')}</li>
Expand All @@ -53,5 +59,3 @@ export default function BetterLinks(props) {
</React.Fragment>
);
}
BetterLinks.propTypes = propTypes;
BetterLinks.defaultProps = defaultProps;
8 changes: 0 additions & 8 deletions src/components/Documentation/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import React, { useState } from 'react';
import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
import { plugin_root_url } from './../../utils/helper';

const propTypes = {};

const defaultProps = {};

export default function Documentation(props) {
const [isOpen, setOpen] = useState(false);
return (
Expand Down Expand Up @@ -97,6 +92,3 @@ export default function Documentation(props) {
</React.Fragment>
);
}

Documentation.propTypes = propTypes;
Documentation.defaultProps = defaultProps;
6 changes: 1 addition & 5 deletions src/components/InstallPlugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ const propTypes = {
label: PropTypes.string,
};

const defaultProps = {
label: '',
};

export default function InstallPlugin({ label }) {
export default function InstallPlugin({ label = '' }) {
const [installButtonMessage, setInstallButtonMessage] = useState(label);
const installHandler = async () => {
setInstallButtonMessage('Installing...');
Expand All @@ -36,4 +33,3 @@ export default function InstallPlugin({ label }) {
}

InstallPlugin.propTypes = propTypes;
InstallPlugin.defaultProps = defaultProps;
8 changes: 1 addition & 7 deletions src/components/Link/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ const propTypes = {
isNewLink: PropTypes.bool,
clickHandler: PropTypes.func,
};
const defaultProps = {
request: '',
destination: '',
isNewLink: false,
};
export default function Link({ request, destination, isNewLink, clickHandler }) {
export default function Link({ request = '', destination = '', isNewLink = false, clickHandler }) {
const [localRequest, setLocalRequest] = useState('');
const [localDestination, setDestination] = useState('');
useEffect(() => {
Expand Down Expand Up @@ -121,4 +116,3 @@ export default function Link({ request, destination, isNewLink, clickHandler })
);
}
Link.propTypes = propTypes;
Link.defaultProps = defaultProps;
11 changes: 1 addition & 10 deletions src/components/Tools/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import React, { useState, useEffect } from 'react';
import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
import axios from 'axios';
import { s3r_nonce } from './../../utils/helper';

const propTypes = {};

const defaultProps = {};

export default function Tools(props) {
const [isOpen, setOpen] = useState(false);
const [importResponse, setImportResponse] = useState(false);
useEffect(() => {
const urlParams = new URLSearchParams(window.location.search);
Expand Down Expand Up @@ -72,7 +66,4 @@ export default function Tools(props) {
</div>
</React.Fragment>
);
}

Tools.propTypes = propTypes;
Tools.defaultProps = defaultProps;
}
10 changes: 1 addition & 9 deletions src/components/TopBar/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import React from 'react';
import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
import { plugin_root_url } from './../../utils/helper';

const propTypes = {};

const defaultProps = {};

export default function TopBar(props) {
return (
<React.Fragment>
Expand All @@ -18,7 +13,4 @@ export default function TopBar(props) {
</div>
</React.Fragment>
);
}

TopBar.propTypes = propTypes;
TopBar.defaultProps = defaultProps;
}
9 changes: 1 addition & 8 deletions src/components/WildCards/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import React, { useState, useEffect } from 'react';
import { __ } from '@wordpress/i18n';
import axios from 'axios';
import PropTypes from 'prop-types';
import { s3r_nonce } from './../../utils/helper';
const propTypes = {};

const defaultProps = {};

export default function WildCards(props) {
const [savedText, setSavedText] = useState('');
Expand Down Expand Up @@ -60,7 +56,4 @@ export default function WildCards(props) {
)}
</React.Fragment>
);
}

WildCards.propTypes = propTypes;
WildCards.defaultProps = defaultProps;
}
9 changes: 1 addition & 8 deletions src/containers/Simple301Redirects.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import TopBar from './../components/TopBar';
import ManageLinks from './group/ManageLinks';
import BetterLinks from './../components/BetterLinks';
import Documentation from './../components/Documentation';
import Tools from './../components/Tools';
const propTypes = {};

const defaultProps = {};

export default function Simple301Redirects(props) {
return (
Expand All @@ -25,7 +21,4 @@ export default function Simple301Redirects(props) {
</div>
</React.Fragment>
);
}

Simple301Redirects.propTypes = propTypes;
Simple301Redirects.defaultProps = defaultProps;
}
10 changes: 1 addition & 9 deletions src/containers/group/ManageLinks.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import React, { useEffect, useState } from 'react';
import axios from 'axios';
import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
import { site_url, s3r_nonce, is_betterlinks_activated } from './../../utils/helper';
import WildCards from './../../components/WildCards';
import Link from './../../components/Link';

const propTypes = {};

const defaultProps = {};

export default function ManageLinks(props) {
const [links, setLinks] = useState({});
useEffect(() => {
Expand Down Expand Up @@ -125,7 +120,4 @@ export default function ManageLinks(props) {
</div>
</React.Fragment>
);
}

ManageLinks.propTypes = propTypes;
ManageLinks.defaultProps = defaultProps;
}
Loading

0 comments on commit 60dd3e4

Please sign in to comment.