René's URL Explorer Experiment


Title: Login and Registration: Add expiration support for dismissing notices. by costdev · Pull Request #95 · costdev/wordpress-develop · GitHub

Open Graph Title: Login and Registration: Add expiration support for dismissing notices. by costdev · Pull Request #95 · costdev/wordpress-develop

X Title: Login and Registration: Add expiration support for dismissing notices. by costdev · Pull Request #95 · costdev/wordpress-develop

Description: This adds support for an array dismissible value in wp_get_admin_notice(). The array: array( // (string) Required. Cannot be empty. 'slug' => 'mynotice', // (int) Optional. Seconds to dismiss for. Must be >= 0. Default 0 (permanently dismissed). 'expiration' => 60, ) Examples Make a notice permanently dismissible wp_get_admin_notice( __( 'A notice that will be dismissed permanently.' ), array( 'type' => 'info', 'dismissible' => array( 'slug' => 'mynotice' ), ) ); Make a notice dismissible for 30 days wp_get_admin_notice( __( 'A notice that will be dismissed for 30 days.' ), array( 'type' => 'info', 'dismissible' => array( 'slug' => 'mynotice', 'expiration' => 30 * DAY_IN_SECONDS, ), ) ); Make all notices permanently dismissible add_filter( 'wp_admin_notice_args', 'dismiss_each_admin_notice_permanently', 10, 2 ); function dismiss_each_admin_notice_permanently( $args, $message ) { $args['dismissible'] = array( 'slug' => md5( $message ), // So its transient is unique to that message. ); return $args; } Make all notices dismissible for 30 days add_filter( 'wp_admin_notice_args', 'dismiss_each_admin_notice_for_30_days', 10, 2 ); function dismiss_each_admin_notice_for_30_days( $args, $message ) { $args['dismissible'] = array( 'slug' => md5( $message ), // So its transient is unique to that message. 'expiration' => 30 * DAY_IN_SECONDS, ); return $args; } Trac ticket:

Open Graph Description: This adds support for an array dismissible value in wp_get_admin_notice(). The array: array( // (string) Required. Cannot be empty. 'slug' => 'mynotice', // (in...

X Description: This adds support for an array dismissible value in wp_get_admin_notice(). The array: array( // (string) Required. Cannot be empty. 'slug' => 'mynotice&...

Opengraph URL: https://github.com/costdev/wordpress-develop/pull/95

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:56a42b4c-1f6a-52cd-1a77-db432f33cda5
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE34A:2FBB44:8120D6:B56092:6AFB6C22
html-safe-nonce87f8dc5958d228eca2f167bb95047144c9445f7ae9b00c8ab03e94fd81950c87
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzRBOjJGQkI0NDo4MTIwRDY6QjU2MDkyOjZBRkI2QzIyIiwidmlzaXRvcl9pZCI6IjIyODU2NTEwNTk3ODUwMzQ3ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca4cd87abfd9f93d8847017032f90c30e6f8b4a61b323ea8279de7c019892793f
hovercard-subject-tagpull_request:1574368070
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/costdev/wordpress-develop/pull/95/files
twitter:imagehttps://avatars.githubusercontent.com/u/79332690?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/79332690?s=400&v=4
og:image:altThis adds support for an array dismissible value in wp_get_admin_notice(). The array: array( // (string) Required. Cannot be empty. 'slug' => 'mynotice', // (in...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/costdev/wordpress-develop git https://github.com/costdev/wordpress-develop.git
octolytics-dimension-user_id79332690
octolytics-dimension-user_logincostdev
octolytics-dimension-repository_id372584985
octolytics-dimension-repository_nwocostdev/wordpress-develop
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id75645659
octolytics-dimension-repository_parent_nwoWordPress/wordpress-develop
octolytics-dimension-repository_network_root_id75645659
octolytics-dimension-repository_network_root_nwoWordPress/wordpress-develop
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88808b1fae5ab8a526a73e7ce5542a10eb9d6971
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/costdev/wordpress-develop/pull/95/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcostdev%2Fwordpress-develop%2Fpull%2F95%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcostdev%2Fwordpress-develop%2Fpull%2F95%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=costdev%2Fwordpress-develop
Reloadhttps://github.com/costdev/wordpress-develop/pull/95/files
Reloadhttps://github.com/costdev/wordpress-develop/pull/95/files
Reloadhttps://github.com/costdev/wordpress-develop/pull/95/files
costdevhttps://github.com/costdev
wordpress-develophttps://github.com/costdev/wordpress-develop
Codehttps://github.com/costdev/wordpress-develop
Pull requests16 (16)https://github.com/costdev/wordpress-develop/pulls
Actionshttps://github.com/costdev/wordpress-develop/actions
Projectshttps://github.com/costdev/wordpress-develop/projects
Security and qualityhttps://github.com/costdev/wordpress-develop/security
Insightshttps://github.com/costdev/wordpress-develop/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fcostdev%2Fwordpress-develop%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcostdev%2Fwordpress-develop%2Fissues%2Fnew%2Fchoose
costdevhttps://github.com/costdev
trunkhttps://github.com/costdev/wordpress-develop/tree/trunk
save_dismissal_duration_for_admin_noticeshttps://github.com/costdev/wordpress-develop/tree/save_dismissal_duration_for_admin_notices
Conversation 0 https://github.com/costdev/wordpress-develop/pull/95
Commits 4 https://github.com/costdev/wordpress-develop/pull/95/commits
Checks 0 https://github.com/costdev/wordpress-develop/pull/95/checks
Files changed https://github.com/costdev/wordpress-develop/pull/95/files
Please reload this pagehttps://github.com/costdev/wordpress-develop/pull/95/files
Login and Registration: Add expiration support for dismissing notices. https://github.com/costdev/wordpress-develop/pull/95/files#top
Show all changes 4 commits https://github.com/costdev/wordpress-develop/pull/95/files
8d7d7cc Add tests. Oct 26, 2023 https://github.com/costdev/wordpress-develop/pull/95/commits/8d7d7cc0a811059a4b996716b024c037370ad00b
7d288aa Support a `$dismissible` array. Oct 26, 2023 https://github.com/costdev/wordpress-develop/pull/95/commits/7d288aa176b511e5d29243e386377c4fe0818eb1
e3910c9 Add AJAX handling for dismissing a notice. Oct 26, 2023 https://github.com/costdev/wordpress-develop/pull/95/commits/e3910c9955ec297394b6fd204b3b23be8b7f4e32
b3f6072 Add AJAX request for dismissing a notice. Oct 26, 2023 https://github.com/costdev/wordpress-develop/pull/95/commits/b3f607245695b4abfb0d5ac19831629df9679d67
Clear filters https://github.com/costdev/wordpress-develop/pull/95/files
Please reload this pagehttps://github.com/costdev/wordpress-develop/pull/95/files
Please reload this pagehttps://github.com/costdev/wordpress-develop/pull/95/files
common.js https://github.com/costdev/wordpress-develop/pull/95/files#diff-b9e9194f24d2a3548ae0b16b6bde5e0c7756a2b7668bed4d1040093e00550bf6
admin-ajax.php https://github.com/costdev/wordpress-develop/pull/95/files#diff-39a5970359484b81e4e9d96906a7827875d1e002ef5b0700c1cef5a7df7049b8
ajax-actions.php https://github.com/costdev/wordpress-develop/pull/95/files#diff-0654ebf17929e2c6b7aebbbab05808973b621ea19004971c1217f7d2be9f82e8
functions.php https://github.com/costdev/wordpress-develop/pull/95/files#diff-5526e2d644a04f0c466d6c749542fdb7952021784e7b1583ff45f9d12601ef52
testcase-ajax.php https://github.com/costdev/wordpress-develop/pull/95/files#diff-90145c153b481d4db4b88df50b10d6c82f8aee629710685f1a10637a7e3425b4
wpAjaxDismissNotice.php https://github.com/costdev/wordpress-develop/pull/95/files#diff-6c02cdfb32efe3dd4e543203f8e5648c2a4df3fe59d2415b56b92ab57f43fbfc
wpAdminNotice.php https://github.com/costdev/wordpress-develop/pull/95/files#diff-0656e56bfb5be8cdebf6d42fb680ef00d2384e63bc812a99979b6f97e4dad5ce
wpGetAdminNotice.php https://github.com/costdev/wordpress-develop/pull/95/files#diff-2262448b63bc43049d14f81328deea3ec5ced8ff48dcb95b5b04fefe997300b2
src/js/_enqueues/admin/common.jshttps://github.com/costdev/wordpress-develop/pull/95/files#diff-b9e9194f24d2a3548ae0b16b6bde5e0c7756a2b7668bed4d1040093e00550bf6
View file https://github.com/costdev/wordpress-develop/blob/b3f607245695b4abfb0d5ac19831629df9679d67/src/js/_enqueues/admin/common.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/costdev/wordpress-develop/pull/95/{{ revealButtonHref }}
https://github.com/costdev/wordpress-develop/pull/95/files#diff-b9e9194f24d2a3548ae0b16b6bde5e0c7756a2b7668bed4d1040093e00550bf6
https://github.com/costdev/wordpress-develop/pull/95/files#diff-b9e9194f24d2a3548ae0b16b6bde5e0c7756a2b7668bed4d1040093e00550bf6
https://github.com/costdev/wordpress-develop/pull/95/files#diff-b9e9194f24d2a3548ae0b16b6bde5e0c7756a2b7668bed4d1040093e00550bf6
https://github.com/costdev/wordpress-develop/pull/95/files#diff-b9e9194f24d2a3548ae0b16b6bde5e0c7756a2b7668bed4d1040093e00550bf6
src/wp-admin/admin-ajax.phphttps://github.com/costdev/wordpress-develop/pull/95/files#diff-39a5970359484b81e4e9d96906a7827875d1e002ef5b0700c1cef5a7df7049b8
View file https://github.com/costdev/wordpress-develop/blob/b3f607245695b4abfb0d5ac19831629df9679d67/src/wp-admin/admin-ajax.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/costdev/wordpress-develop/pull/95/{{ revealButtonHref }}
https://github.com/costdev/wordpress-develop/pull/95/files#diff-39a5970359484b81e4e9d96906a7827875d1e002ef5b0700c1cef5a7df7049b8
https://github.com/costdev/wordpress-develop/pull/95/files#diff-39a5970359484b81e4e9d96906a7827875d1e002ef5b0700c1cef5a7df7049b8
src/wp-admin/includes/ajax-actions.phphttps://github.com/costdev/wordpress-develop/pull/95/files#diff-0654ebf17929e2c6b7aebbbab05808973b621ea19004971c1217f7d2be9f82e8
View file https://github.com/costdev/wordpress-develop/blob/b3f607245695b4abfb0d5ac19831629df9679d67/src/wp-admin/includes/ajax-actions.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/costdev/wordpress-develop/pull/95/{{ revealButtonHref }}
https://github.com/costdev/wordpress-develop/pull/95/files#diff-0654ebf17929e2c6b7aebbbab05808973b621ea19004971c1217f7d2be9f82e8
src/wp-includes/functions.phphttps://github.com/costdev/wordpress-develop/pull/95/files#diff-5526e2d644a04f0c466d6c749542fdb7952021784e7b1583ff45f9d12601ef52
View file https://github.com/costdev/wordpress-develop/blob/b3f607245695b4abfb0d5ac19831629df9679d67/src/wp-includes/functions.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/costdev/wordpress-develop/pull/95/{{ revealButtonHref }}
https://github.com/costdev/wordpress-develop/pull/95/files#diff-5526e2d644a04f0c466d6c749542fdb7952021784e7b1583ff45f9d12601ef52
https://github.com/costdev/wordpress-develop/pull/95/files#diff-5526e2d644a04f0c466d6c749542fdb7952021784e7b1583ff45f9d12601ef52
https://github.com/costdev/wordpress-develop/pull/95/files#diff-5526e2d644a04f0c466d6c749542fdb7952021784e7b1583ff45f9d12601ef52
https://github.com/costdev/wordpress-develop/pull/95/files#diff-5526e2d644a04f0c466d6c749542fdb7952021784e7b1583ff45f9d12601ef52
tests/phpunit/includes/testcase-ajax.phphttps://github.com/costdev/wordpress-develop/pull/95/files#diff-90145c153b481d4db4b88df50b10d6c82f8aee629710685f1a10637a7e3425b4
View file https://github.com/costdev/wordpress-develop/blob/b3f607245695b4abfb0d5ac19831629df9679d67/tests/phpunit/includes/testcase-ajax.php
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/costdev/wordpress-develop/pull/95/{{ revealButtonHref }}
https://github.com/costdev/wordpress-develop/pull/95/files#diff-90145c153b481d4db4b88df50b10d6c82f8aee629710685f1a10637a7e3425b4
https://github.com/costdev/wordpress-develop/pull/95/files#diff-90145c153b481d4db4b88df50b10d6c82f8aee629710685f1a10637a7e3425b4
Please reload this pagehttps://github.com/costdev/wordpress-develop/pull/95/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.