Changeset 3319569
- Timestamp:
- 06/29/2025 08:27:36 PM (9 months ago)
- Location:
- link-juice-keeper
- Files:
-
- 29 added
- 18 edited
-
tags/2.1.3 (added)
-
tags/2.1.3/LICENSE.txt (added)
-
tags/2.1.3/admin (added)
-
tags/2.1.3/admin/class-link-juice-keeper-admin.php (added)
-
tags/2.1.3/admin/class-link-juice-keeper-logs.php (added)
-
tags/2.1.3/admin/css (added)
-
tags/2.1.3/admin/css/link-juice-keeper-admin.css (added)
-
tags/2.1.3/admin/index.php (added)
-
tags/2.1.3/admin/js (added)
-
tags/2.1.3/admin/js/link-juice-keeper-admin.js (added)
-
tags/2.1.3/admin/partials (added)
-
tags/2.1.3/admin/partials/link-juice-keeper-admin-display-logs.php (added)
-
tags/2.1.3/admin/partials/link-juice-keeper-admin-display.php (added)
-
tags/2.1.3/includes (added)
-
tags/2.1.3/includes/class-link-juice-keeper-activator.php (added)
-
tags/2.1.3/includes/class-link-juice-keeper-deactivator.php (added)
-
tags/2.1.3/includes/class-link-juice-keeper-i18n.php (added)
-
tags/2.1.3/includes/class-link-juice-keeper-loader.php (added)
-
tags/2.1.3/includes/class-link-juice-keeper.php (added)
-
tags/2.1.3/includes/index.php (added)
-
tags/2.1.3/index.php (added)
-
tags/2.1.3/languages (added)
-
tags/2.1.3/languages/link-juice-keeper.pot (added)
-
tags/2.1.3/link-juice-keeper.php (added)
-
tags/2.1.3/public (added)
-
tags/2.1.3/public/class-link-juice-keeper-public.php (added)
-
tags/2.1.3/public/index.php (added)
-
tags/2.1.3/readme.txt (added)
-
tags/2.1.3/uninstall.php (added)
-
trunk/admin/class-link-juice-keeper-admin.php (modified) (4 diffs)
-
trunk/admin/class-link-juice-keeper-logs.php (modified) (5 diffs)
-
trunk/admin/css/link-juice-keeper-admin.css (modified) (1 diff)
-
trunk/admin/index.php (modified) (1 diff)
-
trunk/admin/js/link-juice-keeper-admin.js (modified) (1 diff)
-
trunk/admin/partials/link-juice-keeper-admin-display-logs.php (modified) (1 diff)
-
trunk/admin/partials/link-juice-keeper-admin-display.php (modified) (1 diff)
-
trunk/includes/class-link-juice-keeper-activator.php (modified) (1 diff)
-
trunk/includes/class-link-juice-keeper-deactivator.php (modified) (1 diff)
-
trunk/includes/class-link-juice-keeper-i18n.php (modified) (1 diff)
-
trunk/includes/class-link-juice-keeper-loader.php (modified) (1 diff)
-
trunk/includes/class-link-juice-keeper.php (modified) (5 diffs)
-
trunk/includes/index.php (modified) (1 diff)
-
trunk/index.php (modified) (1 diff)
-
trunk/link-juice-keeper.php (modified) (2 diffs)
-
trunk/public/class-link-juice-keeper-public.php (modified) (1 diff)
-
trunk/public/index.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
link-juice-keeper/trunk/admin/class-link-juice-keeper-admin.php
r3020198 r3319569 9 9 * @subpackage Link_Juice_Keeper/admin 10 10 */ 11 12 if ( ! defined( 'ABSPATH' ) ) { 13 exit; // Exit if accessed directly. 14 } 11 15 12 16 /** … … 133 137 * 134 138 * @param mixed $option Option name. 135 * @param mixed $def aultDefault value if not exist.139 * @param mixed $def_value Default value if not exist. 136 140 * 137 141 * @since 2.0.0 … … 140 144 * @return string|array 141 145 */ 142 public function link_juice_keeper_get_option( $option = false, $def ault= false ) {146 public function link_juice_keeper_get_option( $option = false, $def_value = false ) { 143 147 144 148 if ( ! $option ) { 145 return $def ault;149 return $def_value; 146 150 } 147 151 … … 151 155 // Return false, if not exist. 152 156 if ( empty( $settings[ $option ] ) ) { 153 return $def ault;157 return $def_value; 154 158 } 155 159 -
link-juice-keeper/trunk/admin/class-link-juice-keeper-logs.php
r3020198 r3319569 10 10 * @author George Pattihis <gpattihis@gmail.com> 11 11 */ 12 13 if ( ! defined( 'ABSPATH' ) ) { 14 exit; // Exit if accessed directly. 15 } 12 16 13 17 // Load base class if it doesn't exist. … … 849 853 * 850 854 * @param string $key Key to get from request. 851 * @param mixed $def aultDefault value.855 * @param mixed $def_value Default value. 852 856 * 853 857 * @since 2.0.0 … … 856 860 * @return array|string 857 861 */ 858 public function link_juice_keeper_from_request( $key = '', $def ault= '' ) {862 public function link_juice_keeper_from_request( $key = '', $def_value = '' ) { 859 863 860 864 // Return default value if key is not given. 861 865 if ( empty( $key ) || ! is_string( $key ) ) { 862 return $def ault;866 return $def_value; 863 867 } 864 868 … … 866 870 // Return default value if key not set. 867 871 if (!isset($_REQUEST[$key])) { 868 return $def ault;872 return $def_value; 869 873 } 870 874 … … 877 881 //phpcs:enable 878 882 879 return $def ault;883 return $def_value; 880 884 } 881 885 -
link-juice-keeper/trunk/admin/css/link-juice-keeper-admin.css
r3020198 r3319569 1 1 .ljk_main_header { 2 background: white;3 border-radius: 8px;4 padding: 10px;5 max-width: 580px;6 margin: 16px 0;2 background: white; 3 border-radius: 8px; 4 padding: 10px; 5 max-width: 580px; 6 margin: 16px 0; 7 7 } 8 8 9 9 .ljk_main_wrap { 10 display: flex;11 flex-direction: row;12 justify-content: space-between;13 max-width: 1000px;10 display: flex; 11 flex-direction: row; 12 justify-content: space-between; 13 max-width: 1000px; 14 14 } 15 15 16 16 .ljk_main_left { 17 background: #ffffff;18 border-radius: 8px;19 padding: 0 16px;20 width: 600px;17 background: #ffffff; 18 border-radius: 8px; 19 padding: 0 16px; 20 width: 600px; 21 21 } 22 22 23 23 .ljk_main_right { 24 background: #ffffff;25 border-radius: 8px;26 padding: 16px;27 width: 380px;28 margin-left: 20px;24 background: #ffffff; 25 border-radius: 8px; 26 padding: 16px; 27 width: 380px; 28 margin-left: 20px; 29 29 } 30 30 31 31 .ljk_main_right h4 { 32 text-decoration: underline;32 text-decoration: underline; 33 33 } 34 34 35 35 @media only screen and (max-width: 992px) { 36 .ljk_main_header {37 max-width: unset;38 margin-right: 20px;39 }36 .ljk_main_header { 37 max-width: unset; 38 margin-right: 20px; 39 } 40 40 41 .ljk_main_wrap {42 flex-direction: column;43 }41 .ljk_main_wrap { 42 flex-direction: column; 43 } 44 44 45 .ljk_main_left,46 .ljk_main_right {47 margin: 0 20px 30px 0;48 width: unset;49 }45 .ljk_main_left, 46 .ljk_main_right { 47 margin: 0 20px 30px 0; 48 width: unset; 49 } 50 50 } -
link-juice-keeper/trunk/admin/index.php
r3008511 r3319569 1 <?php //phpcs:ignore 2 // Silence is golden 1 <?php 2 /** 3 * Silence is golden. 4 */ -
link-juice-keeper/trunk/admin/js/link-juice-keeper-admin.js
r3008511 r3319569 1 1 (function ($) { 2 2 'use strict'; 3 window.addEventListener("load", function (event) { 3 window.addEventListener( 4 "load", 5 function (event) { 4 6 5 if ($('.ljk_main_wrap').length) { 6 toggleOptions(); 7 $('#ljk_redirect_to').change(function () { 7 if ($( '.ljk_main_wrap' ).length) { 8 8 toggleOptions(); 9 }); 9 $( '#ljk_redirect_to' ).change( 10 function () { 11 toggleOptions(); 12 } 13 ); 14 } 15 10 16 } 11 12 13 }); 17 ); 14 18 15 19 function toggleOptions() { 16 $( '#custom_page').hide();17 $( '#custom_post').hide();18 $( '#custom_url').hide();19 var set = $( '#ljk_redirect_to').val();20 $( '#custom_page' ).hide(); 21 $( '#custom_post' ).hide(); 22 $( '#custom_url' ).hide(); 23 var set = $( '#ljk_redirect_to' ).val(); 20 24 switch (set) { 21 25 case 'page': 22 $( '#custom_page').show();26 $( '#custom_page' ).show(); 23 27 break; 24 28 case 'post': 25 $( '#custom_post').show();29 $( '#custom_post' ).show(); 26 30 break; 27 31 case 'link': 28 $( '#custom_url').show();32 $( '#custom_url' ).show(); 29 33 break; 30 34 } 31 35 } 32 36 33 })( jQuery);37 })( jQuery ); -
link-juice-keeper/trunk/admin/partials/link-juice-keeper-admin-display-logs.php
r3020198 r3319569 11 11 * @subpackage Link_Juice_Keeper/admin/partials 12 12 */ 13 14 if ( ! defined( 'ABSPATH' ) ) { 15 exit; // Exit if accessed directly. 16 } 13 17 14 18 global $wpdb; -
link-juice-keeper/trunk/admin/partials/link-juice-keeper-admin-display.php
r3020198 r3319569 11 11 * @subpackage Link_Juice_Keeper/admin/partials 12 12 */ 13 14 if ( ! defined( 'ABSPATH' ) ) { 15 exit; // Exit if accessed directly. 16 } 13 17 14 18 $plugin_admin = new Link_Juice_Keeper_Admin( 'link-juice-keeper', LINK_JUICE_KEEPER_VERSION ); -
link-juice-keeper/trunk/includes/class-link-juice-keeper-activator.php
r3008511 r3319569 9 9 * @subpackage Link_Juice_Keeper/includes 10 10 */ 11 12 if ( ! defined( 'ABSPATH' ) ) { 13 exit; // Exit if accessed directly. 14 } 11 15 12 16 /** -
link-juice-keeper/trunk/includes/class-link-juice-keeper-deactivator.php
r3008511 r3319569 9 9 * @subpackage Link_Juice_Keeper/includes 10 10 */ 11 12 if ( ! defined( 'ABSPATH' ) ) { 13 exit; // Exit if accessed directly. 14 } 11 15 12 16 /** -
link-juice-keeper/trunk/includes/class-link-juice-keeper-i18n.php
r3008511 r3319569 12 12 * @subpackage Link_Juice_Keeper/includes 13 13 */ 14 15 if ( ! defined( 'ABSPATH' ) ) { 16 exit; // Exit if accessed directly. 17 } 14 18 15 19 /** -
link-juice-keeper/trunk/includes/class-link-juice-keeper-loader.php
r3008511 r3319569 9 9 * @subpackage Link_Juice_Keeper/includes 10 10 */ 11 12 if ( ! defined( 'ABSPATH' ) ) { 13 exit; // Exit if accessed directly. 14 } 11 15 12 16 /** -
link-juice-keeper/trunk/includes/class-link-juice-keeper.php
r3199998 r3319569 12 12 * @subpackage Link_Juice_Keeper/includes 13 13 */ 14 15 if ( ! defined( 'ABSPATH' ) ) { 16 exit; // Exit if accessed directly. 17 } 14 18 15 19 /** … … 70 74 $this->version = LINK_JUICE_KEEPER_VERSION; 71 75 } else { 72 $this->version = '2.1. 2';76 $this->version = '2.1.3'; 73 77 } 74 78 $this->plugin_name = 'link-juice-keeper'; … … 102 106 * core plugin. 103 107 */ 104 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-link-juice-keeper-loader.php';108 require_once plugin_dir_path( __DIR__ ) . 'includes/class-link-juice-keeper-loader.php'; 105 109 106 110 /** … … 108 112 * of the plugin. 109 113 */ 110 require_once plugin_dir_path( dirname( __FILE__ )) . 'includes/class-link-juice-keeper-i18n.php';114 require_once plugin_dir_path( __DIR__ ) . 'includes/class-link-juice-keeper-i18n.php'; 111 115 112 116 /** 113 117 * The class responsible for defining all actions that occur in the admin area. 114 118 */ 115 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-link-juice-keeper-admin.php';119 require_once plugin_dir_path( __DIR__ ) . 'admin/class-link-juice-keeper-admin.php'; 116 120 117 121 /** 118 122 * The class responsible for displaying logs in a WP_List_Table format 119 123 */ 120 require_once plugin_dir_path( dirname( __FILE__ )) . 'admin/class-link-juice-keeper-logs.php';124 require_once plugin_dir_path( __DIR__ ) . 'admin/class-link-juice-keeper-logs.php'; 121 125 122 126 /** … … 124 128 * side of the site. 125 129 */ 126 require_once plugin_dir_path( dirname( __FILE__ )) . 'public/class-link-juice-keeper-public.php';130 require_once plugin_dir_path( __DIR__ ) . 'public/class-link-juice-keeper-public.php'; 127 131 128 132 $this->loader = new Link_Juice_Keeper_Loader(); -
link-juice-keeper/trunk/includes/index.php
r2530197 r3319569 1 <?php // Silence is golden 1 <?php 2 /** 3 * Silence is golden. 4 */ -
link-juice-keeper/trunk/index.php
r3008511 r3319569 1 <?php //phpcs:ignore 2 // Silence is golden 1 <?php 2 /** 3 * Silence is golden. 4 */ -
link-juice-keeper/trunk/link-juice-keeper.php
r3199998 r3319569 14 14 * Plugin URI: https://wordpress.org/plugins/link-juice-keeper/ 15 15 * Description: Improve your SEO and keep your link juice by automatically redirecting all 404 errors to any page/post/url. User friendly options and log feature. 16 * Version: 2.1. 216 * Version: 2.1.3 17 17 * Requires at least: 5.3.0 18 * Tested up to: 6. 7.118 * Tested up to: 6.8 19 19 * Requires PHP: 7.2 20 20 * Author: George Pattichis … … 68 68 * Current plugin version. 69 69 */ 70 define( 'LINK_JUICE_KEEPER_VERSION', '2.1. 2' );70 define( 'LINK_JUICE_KEEPER_VERSION', '2.1.3' ); 71 71 72 72 /** -
link-juice-keeper/trunk/public/class-link-juice-keeper-public.php
r3008724 r3319569 9 9 * @subpackage Link_Juice_Keeper/public 10 10 */ 11 12 if ( ! defined( 'ABSPATH' ) ) { 13 exit; // Exit if accessed directly. 14 } 11 15 12 16 /** -
link-juice-keeper/trunk/public/index.php
r3008511 r3319569 1 <?php //phpcs:ignore 2 // Silence is golden 1 <?php 2 /** 3 * Silence is golden. 4 */ -
link-juice-keeper/trunk/readme.txt
r3199998 r3319569 1 1 === Link Juice Keeper === 2 2 Contributors: pattihis 3 Tags: 404, not found, link, links, error, redirect, seo3 Tags: 404, redirect, seo, link, error 4 4 Donate link: https://profiles.wordpress.org/pattihis/ 5 5 Requires at least: 5.3.0 6 Tested up to: 6. 7.16 Tested up to: 6.8 7 7 Requires PHP: 7.2 8 Stable tag: 2.1. 28 Stable tag: 2.1.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 72 72 73 73 = 2.1.2 = 74 * Ensure compatibility with WP 6.8 75 * Reduced tags to the 5 most useful and relevant ones 76 * Ensured full WordPress coding standards compliance (PHPCS) 77 78 = 2.1.2 = 74 79 * Compatibility with WordPress 6.7 75 80
Note: See TracChangeset
for help on using the changeset viewer.