Changeset 38465
- Timestamp:
- 08/31/2016 06:24:57 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r38455 r38465 3114 3114 * 3115 3115 * @since 4.2.0 3116 *3117 * @global WP_Press_This $wp_press_this3118 3116 */ 3119 3117 function wp_ajax_press_this_save_post() { 3120 if ( empty( $GLOBALS['wp_press_this'] ) ) { 3121 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3122 } 3123 3124 $GLOBALS['wp_press_this']->save_post(); 3118 $wp_press_this = new WP_Press_This(); 3119 $wp_press_this->save_post(); 3125 3120 } 3126 3121 … … 3129 3124 * 3130 3125 * @since 4.2.0 3131 *3132 * @global WP_Press_This $wp_press_this3133 3126 */ 3134 3127 function wp_ajax_press_this_add_category() { 3135 if ( empty( $GLOBALS['wp_press_this'] ) ) { 3136 $GLOBALS['wp_press_this'] = new WP_Press_This(); 3137 } 3138 3139 $GLOBALS['wp_press_this']->add_category(); 3128 $wp_press_this = new WP_Press_This(); 3129 $wp_press_this->add_category(); 3140 3130 } 3141 3131
Note: See TracChangeset
for help on using the changeset viewer.