WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #26636


Ignore:
Timestamp:
12/16/2013 08:38:23 AM (6 years ago)
Author:
SergeyBiryukov
Comment:

Related: #13239, #14310, #21062.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26636

    • Property Cc JPollock412@… added
    • Property Keywords has-patch added
    • Property Component changed from General to Template
  • Ticket #26636 – Description

    initial v2  
    33Here is an example use for the filter I am proposing to add:
    44
     5{{{
     6function slug_mobile_sidebar( $name ) {
     7        if ( wp_is_mobile() ) {
     8                $name = 'mobile';
     9        }
    510
    6 function slug_mobile_sidebar( $name ) {
    7 if ( wp_is_mobile() ) {
    8 $name = mobile;
     11        return $name;
    912}
    10 }
    11 add_filter( 'the_sidebar', 'slug_mobile_sidebar');
     13add_filter( 'the_sidebar', 'slug_mobile_sidebar' );
     14}}}
    1215
    1316