WordPress.org

Make WordPress Core

Changeset 20266


Ignore:
Timestamp:
03/23/2012 12:16:46 AM (8 years ago)
Author:
koopersmith
Message:

Theme Customizer: Use a more complex name for the save parameter to prevent the customizer from clashing with plugins. see #19910.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize.php

    r20263 r20266  
    6464            return;
    6565
    66         if ( ! $this->set_stylesheet() || isset( $_REQUEST['save'] ) )
     66        if ( ! $this->set_stylesheet() || isset( $_REQUEST['save_customize_controls'] ) )
    6767            return;
    6868
     
    271271     */
    272272    public function admin_init() {
    273         if ( isset( $_REQUEST['save'] ) )
     273        if ( isset( $_REQUEST['save_customize_controls'] ) )
    274274            $this->save();
    275275
  • trunk/wp-includes/customize-controls.php

    r20263 r20266  
    4545</head>
    4646<body class="wp-full-overlay">
    47     <form id="customize-controls" method="post" class="wrap wp-full-overlay-sidebar" target="_parent" action="<?php echo esc_url( add_query_arg( 'save', '1', admin_url( 'themes.php' ) ) ); ?>">
     47    <form id="customize-controls" method="post" class="wrap wp-full-overlay-sidebar" target="_parent" action="<?php echo esc_url( add_query_arg( 'save_customize_controls', '1', admin_url( 'themes.php' ) ) ); ?>">
    4848        <?php wp_nonce_field( 'customize_controls' ); ?>
    4949        <input type="hidden" name="customize" value="on" />
Note: See TracChangeset for help on using the changeset viewer.