Changeset 2975298
- Timestamp:
- 10/05/2023 03:52:46 PM (2 years ago)
- Location:
- 404page
- Files:
-
- 62 added
- 4 edited
-
tags/11.4.4 (added)
-
tags/11.4.4/404page.php (added)
-
tags/11.4.4/assets (added)
-
tags/11.4.4/assets/css (added)
-
tags/11.4.4/assets/css/404page-ui.css (added)
-
tags/11.4.4/assets/css/lity.min.css (added)
-
tags/11.4.4/assets/img (added)
-
tags/11.4.4/assets/img/index.php (added)
-
tags/11.4.4/assets/img/videos (added)
-
tags/11.4.4/assets/img/videos/404page-advanced-settings-quick-overview.png (added)
-
tags/11.4.4/assets/img/videos/404page-brief-intro.png (added)
-
tags/11.4.4/assets/img/videos/404page_advanced_410_trashed_objects.png (added)
-
tags/11.4.4/assets/img/videos/404page_advanced_compatibility_mode.png (added)
-
tags/11.4.4/assets/img/videos/404page_advanced_force_404.png (added)
-
tags/11.4.4/assets/img/videos/404page_advanced_url_guessing.png (added)
-
tags/11.4.4/assets/img/videos/index.php (added)
-
tags/11.4.4/assets/index.php (added)
-
tags/11.4.4/assets/js (added)
-
tags/11.4.4/assets/js/404page-ui.js (added)
-
tags/11.4.4/assets/js/404page.js (added)
-
tags/11.4.4/assets/js/block.js (added)
-
tags/11.4.4/assets/js/index.php (added)
-
tags/11.4.4/assets/js/lity.min.js (added)
-
tags/11.4.4/block.json (added)
-
tags/11.4.4/block.php (added)
-
tags/11.4.4/functions.php (added)
-
tags/11.4.4/inc (added)
-
tags/11.4.4/inc/admin (added)
-
tags/11.4.4/inc/admin/404page-admin-page.php (added)
-
tags/11.4.4/inc/admin/index.php (added)
-
tags/11.4.4/inc/class-404page-admin.php (added)
-
tags/11.4.4/inc/class-404page-block-editor.php (added)
-
tags/11.4.4/inc/class-404page-classic-editor.php (added)
-
tags/11.4.4/inc/class-404page-deprecated.php (added)
-
tags/11.4.4/inc/class-404page-settings.php (added)
-
tags/11.4.4/inc/class-404page.php (added)
-
tags/11.4.4/inc/index.php (added)
-
tags/11.4.4/inc/ppf (added)
-
tags/11.4.4/inc/ppf/assets (added)
-
tags/11.4.4/inc/ppf/assets/css (added)
-
tags/11.4.4/inc/ppf/assets/css/pp-admin-page.css (added)
-
tags/11.4.4/inc/ppf/assets/img (added)
-
tags/11.4.4/inc/ppf/assets/img/addons.svg (added)
-
tags/11.4.4/inc/ppf/assets/img/advanced.svg (added)
-
tags/11.4.4/inc/ppf/assets/img/general.svg (added)
-
tags/11.4.4/inc/ppf/assets/img/info.svg (added)
-
tags/11.4.4/inc/ppf/assets/img/videos.svg (added)
-
tags/11.4.4/inc/ppf/assets/js (added)
-
tags/11.4.4/inc/ppf/assets/js/jquery.cookie.js (added)
-
tags/11.4.4/inc/ppf/assets/js/pp-admin-page.js (added)
-
tags/11.4.4/inc/ppf/loader.php (added)
-
tags/11.4.4/inc/ppf/ppf-admin.php (added)
-
tags/11.4.4/inc/ppf/ppf-class.php (added)
-
tags/11.4.4/inc/ppf/ppf-plugin-addon.php (added)
-
tags/11.4.4/inc/ppf/ppf-plugin.php (added)
-
tags/11.4.4/inc/ppf/ppf-settings.php (added)
-
tags/11.4.4/inc/ppf/ppf-subclass.php (added)
-
tags/11.4.4/index.php (added)
-
tags/11.4.4/loader.php (added)
-
tags/11.4.4/readme.txt (added)
-
tags/11.4.4/shortcodes.php (added)
-
tags/11.4.4/uninstall.php (added)
-
trunk/404page.php (modified) (1 diff)
-
trunk/inc/class-404page-admin.php (modified) (13 diffs)
-
trunk/loader.php (modified) (1 diff)
-
trunk/readme.txt (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
404page/trunk/404page.php
r2812643 r2975298 8 8 * @wordpress-plugin 9 9 * Plugin Name: Smart Custom 404 error page [404page] 10 * Plugin URI: https://petersplugins.com/404page/11 10 * Description: Custom 404 the easy way! Set any page as custom 404 error page. No coding needed. Works with (almost) every Theme. 12 * Version: 11.4. 311 * Version: 11.4.4 13 12 * Author: Peter Raschendorfer 14 * Author URI: https://p etersplugins.com13 * Author URI: https://profiles.wordpress.org/petersplugins/ 15 14 * Text Domain: 404page 16 15 * License: GPL2+ -
404page/trunk/inc/class-404page-admin.php
r2705236 r2975298 26 26 */ 27 27 public function init() { 28 29 // @since 11.0.030 $this->init_rating_notice( array(31 'title' => esc_html( 'Are you happy with the 404page plugin?', '404page' ),32 'subtitle' => esc_html( 'You\'ve been using this plugin for a while now. Would be great to get some feedback!', '404page' ),33 'button_yes' => esc_html( 'Yes, I\'m happy with it', '404page' ),34 'button_no' => esc_html( 'Not really', '404page' ),35 'button_later' => esc_html( 'Ask me later', '404page' ),36 'button_close' => esc_html( 'Never show again', '404page' ),37 'like' => esc_html( 'I\'m really glad you like it. I do not ask for a donation. All I\'m asking you for is to give it a good rating. Thank you very much.', '404page' ),38 'button_rate' => esc_html( 'Yes, I\'d like to rate it', '404page' ),39 'dislike' => esc_html( 'I\'m really sorry you don\'t like it. Would you please do me a favor and drop me line, why you are not happy with it? Maybe I can do better...', '404page' ),40 'button_contact' => esc_html( 'Yes sure', '404page' )41 ),42 array(43 'rate' => 'https://wordpress.org/support/plugin/' . $this->core()->get_plugin_slug() . '/reviews/',44 'contact' => 'https://petersplugins.com/contact/'45 ));46 28 47 29 $this->add_actions( array( … … 53 35 add_action( 'admin_enqueue_scripts', array( $this, 'admin_js' ) ); 54 36 add_action( 'admin_enqueue_scripts', array( $this, 'admin_css' ) ); 55 56 add_filter( 'plugin_action_links_' . plugin_basename( $this->core()->get_plugin_file() ), array( $this, 'add_settings_links' ) );57 37 58 38 } … … 175 155 function admin_404page() { 176 156 177 echo esc_html__( 'Page to be displayed as 404 page', '404page' ) . ' <a class="dashicons dashicons-editor-help" href="' . esc_url( 'https://petersplugins.com/' . $this->core()->get_plugin_slug() . '/manual/#settings_select_page' ) . '"></a>';157 echo esc_html__( 'Page to be displayed as 404 page', '404page' ) . '"></a>'; 178 158 179 159 if ( $this->settings()->get( 'page_id' ) < 0 ) { … … 266 246 267 247 } 248 249 echo '<h2>PLEASE NOTE</h2><p>Development, maintenance and support of this plugin has been retired. You can use this plugin as long as is works for you. Thanks for your understanding.<br />Regards, Peter</p>'; 268 250 269 251 } … … 279 261 'hide', 280 262 esc_html__( 'Hide the selected page from the Pages list', '404page' ), 281 'settings_hide_page',263 false, 282 264 false, 283 265 '<span class="dashicons dashicons-info"></span> ' . esc_html__( 'For Administrators the page is always visible.', '404page' ) … … 296 278 'fire_error', 297 279 esc_html__( 'Send an 404 error if the page is accessed directly by its URL', '404page' ), 298 'settings_fire_404',280 false, 299 281 false, 300 282 '<span class="dashicons dashicons-info"></span> ' . esc_html__( 'Uncheck this if you want the selected page to be accessible.', '404page' ) … … 313 295 'force_error', 314 296 esc_html__( 'Force 404 error after loading page', '404page' ), 315 'settings_force_404',297 false, 316 298 '09OOCbFLfnI', 317 299 '<span class="dashicons dashicons-warning"></span> ' . esc_html__( 'Generally this is not needed. It is not recommended to activate this option, unless it is necessary. Please note that this may cause problems with your theme.', '404page' ) … … 330 312 'no_url_guessing', 331 313 esc_html__( 'Disable URL autocorrection guessing', '404page' ), 332 'settings_stop_guessing',314 false, 333 315 'H0EdtFcAGl4', 334 316 '<span class="dashicons dashicons-warning"></span> ' . esc_html__( 'This stops WordPress from URL autocorrection guessing. Only activate, if you are sure about the consequences.', '404page' ) … … 348 330 'http410_if_trashed', 349 331 esc_html__( 'Send an HTTP 410 error instead of HTTP 404 in case the requested object is in trash', '404page' ), 350 'settings_maybe_send_http410',332 false, 351 333 'O5xPM0BMZxM', 352 334 '<span class="dashicons dashicons-info"></span> ' . esc_html__( 'Check this if you want to inform search engines that the resource requested is no longer available and will not be available again so it can be removed from the search index immediately.', '404page' ), … … 366 348 'http410_always', 367 349 esc_html__( 'Always send an HTTP 410 error instead of HTTP 404', '404page' ), 368 'settings_always_send_http410',350 false, 369 351 false, 370 352 '<span class="dashicons dashicons-info"></span> ' . esc_html__( 'Check this if you always want to send an HTTP 410 error instead of an HTTP 404 error.', '404page' ) … … 392 374 393 375 echo '<p class="toggle"><span class="slider"><input type="checkbox" id="404page-method" name="404page_settings[method]" value="CMP"' . checked( 'CMP', $this->settings()->get( 'method' ), false ) . $dis . '/>'; 394 echo '<label for="404page-method" class="check"></label></span><span class="caption">' . esc_html__( 'Activate Compatibility Mode', '404page' ) . ' <a class="dashicons dashicons- editor-help" href="' . esc_url( 'https://petersplugins.com/' . $this->core()->get_plugin_slug() . '/manual/#settings_operating_method' ) . '"></a> <a class="dashicons dashicons-video-alt3" href="https://youtu.be/wqSepDyQeqY" data-lity></a><br />';376 echo '<label for="404page-method" class="check"></label></span><span class="caption">' . esc_html__( 'Activate Compatibility Mode', '404page' ) . ' <a class="dashicons dashicons-video-alt3" href="https://youtu.be/wqSepDyQeqY" data-lity></a><br />'; 395 377 echo '<span class="dashicons dashicons-info"></span> '; 396 378 … … 398 380 399 381 esc_html_e( 'This setting is not available because the Theme you are using natively supports the 404page plugin.', '404page' ); 400 echo ' (<a href="' . esc_url( 'https://petersplugins.com/' . $this->core()->get_plugin_slug() . '/manual/#native_mode' ) . '">' . esc_html__( 'Read more', '404page' ) . '</a>)';401 382 402 383 } elseif ( defined( 'CUSTOMIZR_VER' ) ) { 403 384 404 385 esc_html_e( 'This setting is not availbe because the 404page Plugin works in Customizr Compatibility Mode.', '404page' ); 405 echo ' (<a href="' . esc_url( 'https://petersplugins.com/' . $this->core()->get_plugin_slug() . '/manual/#special_modes' ) .'">' . esc_html__( 'Read more', '404page' ) . '</a>)';406 386 407 387 } elseif ( defined( 'ICL_SITEPRESS_VERSION' ) ) { 408 388 409 389 esc_html_e( 'This setting is not availbe because the 404page Plugin works in WPML Mode.', '404page' ); 410 echo ' (<a href="' . esc_url( 'https://petersplugins.com/' . $this->core()->get_plugin_slug() . '/manual/#special_modes' ) . '">' . esc_html__( 'Read more', '404page' ) . '</a>)';411 390 412 391 } else { … … 496 475 function show_admin() { 497 476 498 $this->add_toolbar_icons( array(499 array(500 'link' => 'https://wordpress.org/support/plugin/' . $this->core()->get_plugin_slug() . '/reviews/',501 'title' => __( 'Please rate Plugin', '404page' ),502 'icon' => 'dashicons-star-filled'503 ),504 array(505 'link' => 'https://wordpress.org/plugins/' . $this->core()->get_plugin_slug(),506 'title' => __( 'WordPress.org Plugin Page', '404page' ),507 'icon' => 'dashicons-wordpress'508 ),509 array(510 'link' => 'https://petersplugins.com/' . $this->core()->get_plugin_slug() . '/manual/',511 'title' => __( 'Plugin Doc', '404page' ),512 'icon' => 'dashicons-book-alt'513 ),514 array(515 'link' => 'https://wordpress.org/support/plugin/' . $this->core()->get_plugin_slug(),516 'title' => __( 'Support', '404page' ),517 'icon' => 'dashicons-editor-help'518 )519 520 ) );521 522 477 $this->show( 'manage_options' ); 523 524 }525 526 527 /**528 * add links to plugins table529 * moved to PP_404Page_Admin in v 10530 */531 function add_settings_links( $links ) {532 533 return array_merge( $links, array( '<a href="' . admin_url( 'themes.php?page=404pagesettings' ) . '" title="' . esc_html__( 'Settings', '404page' ) . '">' . esc_html__( 'Settings', '404page' ) . '</a>', '<a href="' . esc_url( 'https://wordpress.org/support/plugin/' . $this->core()->get_plugin_slug() . '/reviews/' ) . '" title="' . esc_html__( 'Please rate plugin', '404page' ) . '">' . esc_html__( 'Please rate plugin', '404page' ) . '</a>' ) );534 478 535 479 } -
404page/trunk/loader.php
r2812643 r2975298 57 57 'name' => 'Smart Custom 404 error page [404page]', 58 58 'shortname' => '404page', 59 'version' => '11.4. 3'59 'version' => '11.4.4' 60 60 ) ); 61 61 -
404page/trunk/readme.txt
r2812643 r2975298 3 3 Tags: page, 404, error, error page, 404 page, page not found, page not found error, 404 error page, missing, broken link, template, 404 link, seo, custom 404, custom 404 page, custom 404 error, custom 404 error page, customize 404, customize 404 page, customize 404 error page, classicpress 4 4 Requires at least: 4.0 5 Tested up to: 6. 16 Stable tag: 11.4. 35 Tested up to: 6.3 6 Stable tag: 11.4.4 7 7 Requires PHP: 5.4 8 8 License: GPLv2 or later … … 13 13 == Description == 14 14 15 <strong>With 100,000+ active installations the [404page](https://petersplugins.com/404page/) plugin is the most used plugin to create a customized 404 error page in WordPress.</strong>16 17 15 Bringing visitors to your website takes time and effort. Every visitor is important. The default 404 error page of most themes do not provide any information on what to find on your site. A first tme visitor, who does not know you, is left in a dead end and leaves your website. Set up a helpful custom 404 error page to keep him on your site. 18 16 19 17 This handy plugin allows you to easily create your own 404 error page without any effort and it works with almost every theme. 20 18 19 == Retired Plugin == 20 21 Development, maintenance and support of this plugin has been retired in october 2023. You can use this plugin as long as is works for you. 22 23 There will be no more updates and I won't answer any support questions. Thanks for your understanding. 24 25 Feel free to fork this plugin. 26 27 == Thanks == 28 29 Many thanks to the more than 100,000 users of this plugin. You have made this plugin a huge success. It was a pleasure and an honor, but I am retiring from plugin development. 30 31 Best regards, 32 Peter 33 21 34 == Usage == 22 35 23 36 Create your custom 404 error page just like any other page using the WordPress Page Editor. Then go to 'Appearance' -> '404 Error Page' and select the created page as your custom 404 error page. That's it! 24 37 25 == Demo ==26 27 [See it in action](https://demo.tastewp.com/404page) (no registration needed)28 kindly powered by [TasteWP](https://tastewp.com/)29 30 38 == Why use this plugin? == 31 39 … … 37 45 38 46 The only requirement for this plugin is that you change the Permalink Structure in ‘Settings’ -> ‘Permalinks’ to anything else but ‘Plain’. This also activates the WordPress 404 error handling. 39 40 == Docs & Support ==41 42 [Plugin Manual](https://petersplugins.com/404page/manual/)43 44 [Support Forum](https://wordpress.org/support/plugin/404page)45 47 46 48 == Videos == … … 76 78 * [pp_404_url] or [pp_404_url full] to show the complete URL ( e.g. https://example.com/does/not/exist?p=1 ) 77 79 78 == Do you like this plugin? ==79 80 I spend some of my precious free time developing and maintaining my free WordPress plugins. You don’t need to make a donation. No money, no beer, no coffee. If you like this plugin then please do me a favor and [give it a good rating](https://wordpress.org/support/plugin/404page/reviews/). Thanks.81 82 80 == Plugin Privacy Information == 83 81 … … 86 84 * This plugin does not send any data to external servers 87 85 88 [Peters' Plugins Privacy Information Page](https://petersplugins.com/plugin-privacy-information/)89 90 86 == ClassicPress == 91 87 92 88 This plugin is compatible with [ClassicPress](https://www.classicpress.net/). 93 94 == More plugins from Peter ==95 96 Take a look at [my other plugins](https://profiles.wordpress.org/petersplugins/#content-plugins)97 98 == Compatibility ==99 100 = The 404page plugin was sucessfully tested by the author with the following themes =101 * [Athena](https://wordpress.org/themes/athena/)102 * [Customizr](https://wordpress.org/themes/customizr/) (Read more about [Customizr Compatibility Mode](http://petersplugins.com/docs/404page/#settings_operating_method))103 * [evolve](https://wordpress.org/themes/evolve/)104 * [GeneratePress](https://wordpress.org/themes/generatepress/)105 * [Graphene](https://wordpress.org/themes/graphene/)106 * [Hemingway](https://wordpress.org/themes/hemingway/)107 * [Hueman](https://wordpress.org/themes/hueman/)108 * [Responsive](https://wordpress.org/themes/responsive/)109 * [Spacious](https://wordpress.org/themes/spacious/)110 * [Sparkling](https://wordpress.org/themes/sparkling/)111 * [Sydney](https://wordpress.org/themes/sydney/)112 * [Twenty Ten](https://wordpress.org/themes/twentyten/)113 * [Twenty Eleven](https://wordpress.org/themes/twentyeleven/)114 * [Twenty Twelve](https://wordpress.org/themes/twentytwelve/)115 * [Twenty Thirteen](https://wordpress.org/themes/twentythirteen/)116 * [Twenty Fourteen](https://wordpress.org/themes/twentyfourteen/)117 * [Twenty Fifteen](https://wordpress.org/themes/twentyfifteen/)118 * [Twenty Sixteen](https://wordpress.org/themes/twentysixteen/)119 * [Twenty Seventeen](https://wordpress.org/themes/twentyseventeen/)120 * [Twenty Nineteen](https://wordpress.org/themes/twentynineteen/)121 * [Twenty Twenty](https://wordpress.org/themes/twentytwenty/)122 * [Vantage](https://wordpress.org/themes/vantage/)123 * [Virtue](https://wordpress.org/themes/virtue/)124 * [Zerif Lite](http://themeisle.com/themes/zerif-lite/)125 126 = The 404page plugin was sucessfully tested by the author with the following starter themes =127 * [Bones](http://themble.com/bones/)128 * [JointsWP](http://jointswp.com/)129 * [undersores](http://underscores.me/)130 131 = The 404page plugin was sucessfully tested by the author with the following plugins =132 * [bbPress](https://wordpress.org/plugins/bbpress/)133 * [BuddyPress](https://wordpress.org/plugins/buddypress/)134 * [DW Question & Answer](https://www.designwall.com/wordpress/plugins/dw-question-answer/)135 * [hashtagger](https://wordpress.org/plugins/hashtagger/)136 * [Page Builder by SiteOrigin](https://wordpress.org/plugins/siteorigin-panels/)137 * [Polylang](https://wordpress.org/plugins/polylang/)138 * [User Submitted Posts](https://wordpress.org/plugins/user-submitted-posts/)139 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)140 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/) (Read more about [WP Super Cache Compatibility](http://petersplugins.com/docs/404page/#wp_super_cache))141 * [WPML WordPress Multilingual Plugin](https://wpml.org/) ([officially approved by WPML team](https://wpml.org/plugin/404page/))142 89 143 90 == For developers == … … 162 109 * "full" (default) to get the complete URL ( e.g. https://example.com/does/not/exist?p=1 ) 163 110 164 [Read more](http://petersplugins.com/docs/404page/#functions)165 166 111 = Native Mode = 167 112 168 If you are a theme developer you can add native support for the 404page plugin to your theme for full control. [Read more](http://petersplugins.com/docs/404page/#theme_native_support).113 If you are a theme developer you can add native support for the 404page plugin to your theme for full control. 169 114 170 115 == Screenshots == … … 177 122 6. The block for the block-based editor 178 123 7. The block options 179 180 == Frequently Asked Questions ==181 182 = Will it work with the theme I'm using? =183 184 This plugin is designed to work with as many themes as possible. It uses the WordPress Template System to detect and handle 404 errors. If your theme makes use of this Template System this plugin will work properly. If it does not the plugin offers a so called Compatibility Mode, which uses its completely own method to detect and handle 404 errors. If this plugin does not work properly, try to activate Compatibility Mode.185 186 = Are 404 errors redirected? =187 188 No, there is no redirection! The chosen page is delivered as a 'real' 404 error page. This results in a HTTP 404 code and not in 301 or 302, which is important for Search Engines to tell them, that the page does not exist and should be deleted from the index.189 190 = Is it possible to add custom CSS to the 404 page? =191 192 The 404page plugin adds a CSS class `error404` to the `<body>` tag which can be used for extra styling.193 194 = Where can I get help? =195 Please use the [Support Forum](https://wordpress.org/support/plugin/404page).196 124 197 125 == Changelog == … … 386 314 * the settings menu was moved from 'Settings' to 'Appearance' 387 315 * translation files removed, using GlotPress exclusively 388 * [Read more](http://petersplugins.com/blog/2016/02/23/the-404page-plugin-now-works-with-wpml-and-other-enhancements/)389 316 390 317 = 1.4 (2015-08-07) = … … 546 473 547 474 = 2.0 = 548 Version 2.0 is more or less a completely new development and a big step forward. [Read more](http://petersplugins.com/blog/2016/02/23/the-404page-plugin-now-works-with-wpml-and-other-enhancements/)475 Version 2.0 is more or less a completely new development and a big step forward. 549 476 550 477 = 1.4 =
Note: See TracChangeset
for help on using the changeset viewer.