Changeset 38307 for trunk/src/wp-includes/option.php
- Timestamp:
- 08/22/2016 06:24:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r37985 r38307 50 50 * @param string $option Option name. 51 51 */ 52 $pre = apply_filters( 'pre_option_' . $option, false, $option );52 $pre = apply_filters( "pre_option_{$option}", false, $option ); 53 53 if ( false !== $pre ) 54 54 return $pre; … … 73 73 * @param string $option Option name. 74 74 */ 75 return apply_filters( 'default_option_' . $option, $default, $option );75 return apply_filters( "default_option_{$option}", $default, $option ); 76 76 } 77 77 … … 134 134 * @param string $option Option name. 135 135 */ 136 return apply_filters( 'option_' . $option, maybe_unserialize( $value ), $option );136 return apply_filters( "option_{$option}", maybe_unserialize( $value ), $option ); 137 137 } 138 138 … … 278 278 * @param string $option Option name. 279 279 */ 280 $value = apply_filters( 'pre_update_option_' . $option, $value, $old_value, $option );280 $value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option ); 281 281 282 282 /** … … 535 535 * @param string $option Name of the deleted option. 536 536 */ 537 do_action( "delete_option_ $option", $option );537 do_action( "delete_option_{$option}", $option ); 538 538 539 539 /** … … 569 569 * @param string $transient Transient name. 570 570 */ 571 do_action( 'delete_transient_' . $transient, $transient );571 do_action( "delete_transient_{$transient}", $transient ); 572 572 573 573 if ( wp_using_ext_object_cache() ) { … … 625 625 * @param string $transient Transient name. 626 626 */ 627 $pre = apply_filters( 'pre_transient_' . $transient, false, $transient );627 $pre = apply_filters( "pre_transient_{$transient}", false, $transient ); 628 628 if ( false !== $pre ) 629 629 return $pre; … … 662 662 * @param string $transient Transient name. 663 663 */ 664 return apply_filters( 'transient_' . $transient, $value, $transient );664 return apply_filters( "transient_{$transient}", $value, $transient ); 665 665 } 666 666 … … 697 697 * @param string $transient Transient name. 698 698 */ 699 $value = apply_filters( 'pre_set_transient_' . $transient, $value, $expiration, $transient );699 $value = apply_filters( "pre_set_transient_{$transient}", $value, $expiration, $transient ); 700 700 701 701 /** … … 710 710 * @param string $transient Transient name. 711 711 */ 712 $expiration = apply_filters( 'expiration_of_transient_' . $transient, $expiration, $value, $transient );712 $expiration = apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient ); 713 713 714 714 if ( wp_using_ext_object_cache() ) { … … 759 759 * @param string $transient The name of the transient. 760 760 */ 761 do_action( 'set_transient_' . $transient, $value, $expiration, $transient );761 do_action( "set_transient_{$transient}", $value, $expiration, $transient ); 762 762 763 763 /** … … 1107 1107 * @param string $option Option name. 1108 1108 */ 1109 $pre = apply_filters( 'pre_site_option_' . $option, false, $option );1109 $pre = apply_filters( "pre_site_option_{$option}", false, $option ); 1110 1110 1111 1111 if ( false !== $pre ) { … … 1131 1131 * @param string $option Option name. 1132 1132 */ 1133 return apply_filters( 'default_site_option_' . $option, $default, $option );1133 return apply_filters( "default_site_option_{$option}", $default, $option ); 1134 1134 } 1135 1135 … … 1175 1175 * @param string $option Option name. 1176 1176 */ 1177 return apply_filters( 'site_option_' . $option, $value, $option );1177 return apply_filters( "site_option_{$option}", $value, $option ); 1178 1178 } 1179 1179 … … 1223 1223 * @param string $option Option name. 1224 1224 */ 1225 $value = apply_filters( 'pre_add_site_option_' . $option, $value, $option );1225 $value = apply_filters( "pre_add_site_option_{$option}", $value, $option ); 1226 1226 1227 1227 $notoptions_key = "$network_id:notoptions"; … … 1272 1272 * @param mixed $value Value of the network option. 1273 1273 */ 1274 do_action( 'add_site_option_' . $option, $option, $value );1274 do_action( "add_site_option_{$option}", $option, $value ); 1275 1275 1276 1276 /** … … 1328 1328 * @param string $option Option name. 1329 1329 */ 1330 do_action( 'pre_delete_site_option_' . $option, $option );1330 do_action( "pre_delete_site_option_{$option}", $option ); 1331 1331 1332 1332 if ( ! is_multisite() ) { … … 1355 1355 * @param string $option Name of the network option. 1356 1356 */ 1357 do_action( 'delete_site_option_' . $option, $option );1357 do_action( "delete_site_option_{$option}", $option ); 1358 1358 1359 1359 /** … … 1418 1418 * @param string $option Option name. 1419 1419 */ 1420 $value = apply_filters( 'pre_update_site_option_' . $option, $value, $old_value, $option );1420 $value = apply_filters( "pre_update_site_option_{$option}", $value, $old_value, $option ); 1421 1421 1422 1422 if ( $value === $old_value ) { … … 1463 1463 * @param mixed $old_value Old value of the network option. 1464 1464 */ 1465 do_action( 'update_site_option_' . $option, $option, $value, $old_value );1465 do_action( "update_site_option_{$option}", $option, $value, $old_value ); 1466 1466 1467 1467 /** … … 1501 1501 * @param string $transient Transient name. 1502 1502 */ 1503 do_action( 'delete_site_transient_' . $transient, $transient );1503 do_action( "delete_site_transient_{$transient}", $transient ); 1504 1504 1505 1505 if ( wp_using_ext_object_cache() ) { … … 1558 1558 * @param string $transient Transient name. 1559 1559 */ 1560 $pre = apply_filters( 'pre_site_transient_' . $transient, false, $transient );1560 $pre = apply_filters( "pre_site_transient_{$transient}", false, $transient ); 1561 1561 1562 1562 if ( false !== $pre ) … … 1594 1594 * @param string $transient Transient name. 1595 1595 */ 1596 return apply_filters( 'site_transient_' . $transient, $value, $transient );1596 return apply_filters( "site_transient_{$transient}", $value, $transient ); 1597 1597 } 1598 1598 … … 1626 1626 * @param string $transient Transient name. 1627 1627 */ 1628 $value = apply_filters( 'pre_set_site_transient_' . $transient, $value, $transient );1628 $value = apply_filters( "pre_set_site_transient_{$transient}", $value, $transient ); 1629 1629 1630 1630 $expiration = (int) $expiration; … … 1641 1641 * @param string $transient Transient name. 1642 1642 */ 1643 $expiration = apply_filters( 'expiration_of_site_transient_' . $transient, $expiration, $value, $transient );1643 $expiration = apply_filters( "expiration_of_site_transient_{$transient}", $expiration, $value, $transient ); 1644 1644 1645 1645 if ( wp_using_ext_object_cache() ) { … … 1672 1672 * @param string $transient Transient name. 1673 1673 */ 1674 do_action( 'set_site_transient_' . $transient, $value, $expiration, $transient );1674 do_action( "set_site_transient_{$transient}", $value, $expiration, $transient ); 1675 1675 1676 1676 /**
Note: See TracChangeset
for help on using the changeset viewer.