[wp-trac] [WordPress Trac] #39693: Fix missing assignment of widgets on theme switch

WordPress Trac noreply at wordpress.org
Wed Mar 1 22:26:34 UTC 2017


#39693: Fix missing assignment of widgets on theme switch
-------------------------+-----------------------
 Reporter:  melchoyce    |       Owner:
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  4.8
Component:  Widgets      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+-----------------------

Comment (by Ipstenu):

 Oh I see why you asked me about DH.

 > A host could run a script that iterates over each WP site, grabs out the
 sidebars_widgets option, and then collect stats on:

 Sure we could. But that runs into some SERIOUS privacy concerns, and my
 knee-jerk reaction is "I am absolutely not giving you customer data like
 that."

 To explain why the search from the theme slurper is kind of junk, it's
 basically that people format code in different ways.

 Example:

 {{{
 themes/aaron/functions.php:46:          register_nav_menus( array(
 themes/abacus/functions.php:77:         register_nav_menu( 'top', __( 'Top
 Menu', 'abacus' ) );
 }}}

 And if I hop into the aaron theme:

 {{{
                 register_nav_menus( array(
                         'header' => __( 'Primary Menu', 'aaron' ),
                         'social' => __( 'Social Menu', 'aaron' ),
                 ) );
 }}}

 Scanning for both of those can be a bit tricky. Getting all that data and
 outputting it into something useful and readable is doubly so.

 Two options for you to download and search for it yourself though:

 https://github.com/aaronjorbin/WordPress-Theme-Directory-Slurper
 https://github.com/Ipstenu/WordPress-Theme-Directory-Slurper

 Mine's a fork of the current plugin slurper.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39693#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list