Peter Wilson
55fd899391
Themes: Remove front page restriction from video header functions.
...
Adds a callback for determining when video headers should be displayed in themes supporting custom headers. By default, video headers are only displayed on the front page of a site.
Theme authors may set a custom callback by passing `'video-active-callback' => 'mytheme_video_active_callback'` as an argument. The default callback is `is_front_page()`.
This introduces the new function `is_header_video_active()` - returns `true` on pages that should display video headers. The return value can be filtered using the new filter of the same name.
Props flixos90, bradyvercher, peterwilsoncc, joemcgill.
Fixes #38738 .
git-svn-id: https://develop.svn.wordpress.org/trunk@39240 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-15 07:15:20 +00:00
..
2016-10-09 01:29:04 +00:00
2016-11-15 03:36:13 +00:00
2016-11-08 23:49:11 +00:00
2015-10-17 19:24:20 +00:00
2016-05-25 18:29:01 +00:00
2016-09-26 17:01:48 +00:00
2016-05-19 02:38:33 +00:00
2016-10-25 20:47:06 +00:00
2016-11-13 02:42:04 +00:00
2016-11-08 22:31:51 +00:00
2016-10-20 18:29:28 +00:00
2016-11-08 23:49:11 +00:00
2015-10-15 01:28:05 +00:00
2016-10-25 21:53:22 +00:00
2015-07-14 03:07:13 +00:00
2016-10-26 05:16:09 +00:00
2016-10-25 21:25:25 +00:00
2016-11-09 00:01:42 +00:00
2016-10-09 01:11:14 +00:00
2016-11-09 00:01:42 +00:00
2016-10-26 07:27:51 +00:00
2016-11-09 00:01:42 +00:00
2016-09-30 03:15:36 +00:00
2016-11-03 20:07:08 +00:00
2016-10-09 01:11:14 +00:00
2016-07-08 14:36:37 +00:00
2016-08-30 03:06:06 +00:00
2016-09-11 18:45:59 +00:00
2016-08-27 08:35:16 +00:00
2016-11-08 23:49:11 +00:00
2016-10-09 01:11:14 +00:00
2016-10-25 17:07:20 +00:00
2016-02-29 22:37:42 +00:00
2016-11-02 19:22:17 +00:00
2016-11-02 19:22:17 +00:00
2016-11-14 16:35:35 +00:00
2016-08-27 08:35:16 +00:00
2016-08-20 17:34:13 +00:00
2016-11-09 00:01:42 +00:00
2016-11-15 07:15:20 +00:00
2016-11-10 01:53:08 +00:00
2016-11-10 01:53:08 +00:00
2016-10-09 01:29:04 +00:00
2016-10-26 01:23:24 +00:00
2016-08-28 17:14:52 +00:00
2015-10-17 18:02:16 +00:00
2016-08-30 14:32:04 +00:00
2016-10-09 01:29:04 +00:00
2016-08-27 08:35:16 +00:00
2016-05-19 02:22:59 +00:00
2016-10-11 03:42:28 +00:00
2016-10-20 05:12:26 +00:00
2015-05-06 02:59:50 +00:00
2016-10-09 01:29:04 +00:00
2016-09-08 23:48:05 +00:00
2016-09-12 05:08:17 +00:00
2013-10-07 14:17:13 +00:00
2016-10-09 01:11:14 +00:00
2016-10-09 01:11:14 +00:00
2016-10-18 20:04:36 +00:00
2016-10-13 22:24:27 +00:00
2016-11-08 23:00:38 +00:00
2015-12-23 19:38:29 +00:00
2016-10-26 15:35:58 +00:00
2016-11-02 04:26:18 +00:00
2016-10-21 11:02:37 +00:00
2016-10-09 01:11:14 +00:00
2015-09-15 08:04:33 +00:00
2016-01-15 10:15:21 +00:00
2016-11-09 00:01:42 +00:00
2016-09-26 17:01:48 +00:00
2016-10-20 02:54:12 +00:00
2016-09-26 17:01:48 +00:00
2016-10-23 14:24:26 +00:00
2016-09-08 03:54:13 +00:00
2016-10-26 08:06:43 +00:00
2016-08-27 08:35:16 +00:00
2016-11-08 23:49:11 +00:00
2016-02-26 00:25:10 +00:00
2016-02-26 02:10:32 +00:00
2016-10-10 06:37:02 +00:00
2014-08-01 20:35:25 +00:00
2016-06-06 21:50:29 +00:00
2016-01-05 20:56:10 +00:00