The “The link you followed has expired” message is in the function wp_nonce_ays on line 2607 of wp-includes/functions.php. Apparently, the message was changed from “Are you sure you want to do this?” in 4.9.5. The wp_nonce_ays function is called by check_admin_referer if the nonce check fails. This is the only place in the WordPress code where this message is used. Therefore, if you ever see this message, you know that a nonce check is failing somewhere in your code.
When saving custom metadata, use the post_updated hook , rather than the save_post hook. For some reason, the save_post hook is invoked when a create post page is shown (i.e. before anything is saved). At this point the nonce has not been created, so the nonce check fails.
Related Posts:
- Do I need a nonce field for every meta box I add to my custom post type admin?
- Undefined index: at_nonce in custom post metabox
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- Confusion regarding Nonce & using it in Custom Columns for Saving Checkbox Value to Post Meta
- Custom post type: check permissions and validate nonce
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- Forms and WordPress Nonce
- check_admin_referer not working in custom meta box for custom post type
- Get terms by taxonomy AND post_type
- New post status for custom post type
- Permalink Structure for Multiple Post Type Archives by Taxonomy
- Allow user to Edit Posts but not Add New?
- WordPress 4.4+ : How to revision CPT + metadata
- How can I filter posts by post_parent in the admin?
- Add Custom Post Type to Current Query
- Add Post type menu to another menu
- Getting Bootstrap accordion working in WordPress loop with custom post type (collapsing issue)
- “pagination” (but not really) and queries using custom posts types
- How to create user personal pages with information from their meta profile fields?
- Including two taxonomies in a permalink structure
- WP Rewrite Rules – Custom post type & taxonomy
- Sorting a list of posts displayed under a list of associated terms (which should be sorted without initial articles)
- where can I see my custom post type archive template?
- action init hook and get_post_types
- Website bookmarks as a custom post type
- grant a privilege for roles (for example editors) and higher
- Multiple information using custom post type
- Customize Search Results for Custom Post Type
- RSS feed for dynamic set of custom taxonomies terms
- Related links – from other sites
- Display custom post type category taxonomy
- Are there sub-systems in WordPress that would employ data structures beyond CPT that a `get_posts` won’t be able to catch?
- Edit / delete custom post types through web page (not admin)
- Custom columns for multiple custom post types
- post_row_actions not working for hierarchical post type
- List Post Title by Last Word Then Second Last
- Am I using the flush_rewrite_rules function in the right place?
- Query custom post type with tags
- How should I structure my post types?
- Post Quote with image on header for news site
- 301 redirect for converted post type
- Custom post types team data
- WordPress permalink / slug with numbers in the middle of the post name shows the broken page
- Display post as term id
- WordPress custom post type permalink rewrite shows page not found
- Custom Post Type and Category Base Rewrite Issue
- Order a custom post type admin screen by a second custom post type title
- Custom post type conditional in loop
- Showing specific post in order of array wp_query
- Why cant I add a custom post type to a custom taxonomy?
- Understanding Post Formats/Custom Post types Etc
- How to display custom post type tags?
- Featured image size in column
- Page Template Dropdown For Custom Post Types
- Displaying Custom Posts
- Get_the_terms restrict output
- Can I query posts by taxonomy conditionally based on post type?
- How to get dropdown instance value in WordPress custom Widget
- Include custom post type custom taxonomies in Categories widget
- Break up posts per page in two sections
- Trying to add a class to post links
- WordPress custom post categories and subcategories on category.php
- post_content is stripping HTML when adding a new post? [closed]
- Can’t replace the default sidebar with a custom sidebar on Custom Post Type in Genesis
- Dynamic category name in query post
- Two queries – one with checkbox ticked, one without – comparing meta_query
- Ignores post_type when no results
- custom post archive URL is wrong
- Can I decide what categories show on my posts page?
- How do I call the custom Post Type name and permanent link to my php file?
- Mandatory field in Custom post
- Link custom post type to users membership
- In child theme, add CPT to custom taxonomy registered in parent theme
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Custom taxonomies not displaying in some custom posts
- Load info from customposttype into template page
- Multiple Loops In Tabs Only Displaying First Loop
- WP_Query to display number of custom post type filtered (order by) taxonomy
- How to assign post to category
- WordPress deletes custom posts instead of trash them
- Sort loop by custom field from different post type
- Creating custom post type relationships
- How to create groups like that in buddypress?
- Custom meta box data not saving
- Include template if a post is a single product
- Allow viewing the edit screen for a post type, but not make/save/publish/update changes
- Render custom taxonomy query as single template
- Custom meta-box for all custom post types
- Retrieve a specific category of posts when using a custom post type
- General question about Parent and Child Post type relationships
- WordPress Load more posts by ajax not working
- What’s the best way to show custom post types? With page template it’s not perfect!
- Multiple while loops not functioning [closed]
- Listing all custom post types using a specific term on the said term’s template page, in groups
- How to write an if statement which reads: ‘if is this custom post type or a child of it do the following’?
- taxonomies or categories w/custom post
- Require Custom Taxonomy for Custom Type
- Post count for particular term
- How to add custom permalink struct with DYNAMIC author to a Custom Post Type