🔞 ADULT: Changeset/ - High Quality

Changeset 2975298


Ignore:
Timestamp:
10/05/2023 03:52:46 PM (2 years ago)
Author:
petersplugins
Message:

v 11.4.4 FINAL VERSION

Location:
404page
Files:
62 added
4 edited

Legend:

Unmodified
Added
Removed
  • 404page/trunk/404page.php

    r2812643 r2975298  
    88 * @wordpress-plugin
    99 * Plugin Name: Smart Custom 404 error page [404page]
    10  * Plugin URI: https://petersplugins.com/404page/
    1110 * 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.3
     11 * Version: 11.4.4
    1312 * Author: Peter Raschendorfer
    14  * Author URI: https://petersplugins.com
     13 * Author URI: https://profiles.wordpress.org/petersplugins/
    1514 * Text Domain: 404page
    1615 * License: GPL2+
  • 404page/trunk/inc/class-404page-admin.php

    r2705236 r2975298  
    2626     */
    2727    public function init() {
    28      
    29       // @since 11.0.0
    30       $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       ));
    4628
    4729      $this->add_actions( array(
     
    5335      add_action( 'admin_enqueue_scripts', array( $this, 'admin_js' ) );
    5436      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' ) );
    5737   
    5838    }
     
    175155    function admin_404page() {
    176156     
    177       echo esc_html__( 'Page to be displayed as 404 page', '404page' ) . '&nbsp;<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>';
    178158     
    179159      if ( $this->settings()->get( 'page_id' ) < 0 ) {
     
    266246       
    267247      }
     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>';
    268250     
    269251    }
     
    279261        'hide',
    280262        esc_html__( 'Hide the selected page from the Pages list', '404page' ),
    281         'settings_hide_page',
     263        false,
    282264        false,
    283265        '<span class="dashicons dashicons-info"></span>&nbsp;' . esc_html__( 'For Administrators the page is always visible.', '404page' )
     
    296278        'fire_error',
    297279        esc_html__( 'Send an 404 error if the page is accessed directly by its URL', '404page' ),
    298         'settings_fire_404',
     280        false,
    299281        false,
    300282        '<span class="dashicons dashicons-info"></span>&nbsp;' . esc_html__( 'Uncheck this if you want the selected page to be accessible.', '404page' )
     
    313295        'force_error',
    314296        esc_html__( 'Force 404 error after loading page', '404page' ),
    315         'settings_force_404',
     297        false,
    316298        '09OOCbFLfnI',
    317299        '<span class="dashicons dashicons-warning"></span>&nbsp;' . 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' )
     
    330312        'no_url_guessing',
    331313        esc_html__( 'Disable URL autocorrection guessing', '404page' ),
    332         'settings_stop_guessing',
     314        false,
    333315        'H0EdtFcAGl4',
    334316        '<span class="dashicons dashicons-warning"></span>&nbsp;' . esc_html__( 'This stops WordPress from URL autocorrection guessing. Only activate, if you are sure about the consequences.', '404page' )
     
    348330        'http410_if_trashed',
    349331        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,
    351333        'O5xPM0BMZxM',
    352334        '<span class="dashicons dashicons-info"></span>&nbsp;' . 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' ),
     
    366348        'http410_always',
    367349        esc_html__( 'Always send an HTTP 410 error instead of HTTP 404', '404page' ),
    368        'settings_always_send_http410',
     350       false,
    369351        false,
    370352        '<span class="dashicons dashicons-info"></span>&nbsp;' . esc_html__( 'Check this if you always want to send an HTTP 410 error instead of an HTTP 404 error.', '404page' )
     
    392374     
    393375      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' ) . '&nbsp;<a class="dashicons dashicons-editor-help" href="' . esc_url( 'https://petersplugins.com/' . $this->core()->get_plugin_slug() . '/manual/#settings_operating_method' ) . '"></a>&nbsp;<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' ) . '&nbsp;<a class="dashicons dashicons-video-alt3" href="https://youtu.be/wqSepDyQeqY" data-lity></a><br />';
    395377      echo '<span class="dashicons dashicons-info"></span>&nbsp;';
    396378     
     
    398380       
    399381        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>)';
    401382     
    402383      } elseif ( defined( 'CUSTOMIZR_VER' ) ) {
    403384     
    404385        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>)';
    406386     
    407387      } elseif ( defined( 'ICL_SITEPRESS_VERSION' ) ) {
    408388     
    409389        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>)';
    411390       
    412391      } else {
     
    496475    function show_admin() {
    497476     
    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      
    522477      $this->show( 'manage_options' );
    523      
    524     }
    525    
    526    
    527     /**
    528      * add links to plugins table
    529      * moved to PP_404Page_Admin in v 10
    530      */
    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>' ) );
    534478     
    535479    }
  • 404page/trunk/loader.php

    r2812643 r2975298  
    5757    'name'      => 'Smart Custom 404 error page [404page]',
    5858    'shortname' => '404page',
    59     'version'   => '11.4.3'
     59    'version'   => '11.4.4'
    6060  ) );
    6161   
  • 404page/trunk/readme.txt

    r2812643 r2975298  
    33Tags: 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
    44Requires at least: 4.0
    5 Tested up to: 6.1
    6 Stable tag: 11.4.3
     5Tested up to: 6.3
     6Stable tag: 11.4.4
    77Requires PHP: 5.4
    88License: GPLv2 or later
     
    1313== Description ==
    1414
    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 
    1715Bringing 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.
    1816
    1917This handy plugin allows you to easily create your own 404 error page without any effort and it works with almost every theme.
    2018
     19== Retired Plugin ==
     20
     21Development, 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
     23There will be no more updates and I won't answer any support questions. Thanks for your understanding.
     24
     25Feel free to fork this plugin.
     26
     27== Thanks ==
     28
     29Many 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
     31Best regards,
     32Peter
     33
    2134== Usage ==
    2235
    2336Create 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!
    2437
    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 
    3038== Why use this plugin? ==
    3139
     
    3745
    3846The 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)
    4547
    4648== Videos ==
     
    7678* [pp_404_url] or [pp_404_url full] to show the complete URL ( e.g. https://example.com/does/not/exist?p=1 )
    7779
    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 
    8280== Plugin Privacy Information ==
    8381
     
    8684* This plugin does not send any data to external servers
    8785
    88 [Peters' Plugins Privacy Information Page](https://petersplugins.com/plugin-privacy-information/)
    89 
    9086== ClassicPress ==
    9187
    9288This 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/))
    14289
    14390== For developers ==
     
    162109    * "full" (default) to get the complete URL ( e.g. https://example.com/does/not/exist?p=1 )
    163110
    164 [Read more](http://petersplugins.com/docs/404page/#functions)
    165 
    166111= Native Mode =
    167112
    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).
     113If you are a theme developer you can add native support for the 404page plugin to your theme for full control.
    169114
    170115== Screenshots ==
     
    1771226. The block for the block-based editor
    1781237. 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).
    196124
    197125== Changelog ==
     
    386314* the settings menu was moved from 'Settings' to 'Appearance'
    387315* 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/)
    389316
    390317= 1.4 (2015-08-07) =
     
    546473
    547474= 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/)
     475Version 2.0 is more or less a completely new development and a big step forward.
    549476
    550477= 1.4 =
Note: See TracChangeset for help on using the changeset viewer.