Created
September 5, 2018 01:15
-
-
Save nylen/f1f0f4355b3c57e49ec6c79608a2fc7e to your computer and use it in GitHub Desktop.
WP _doing_it_wrong calls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClassicPress $ ack "doing_it_wrong.*['\"]\d" | |
tests/phpunit/tests/includes/helpers.php:204: _doing_it_wrong( __METHOD__, __( 'Incorrect usage test' ), '2.5' ); | |
src/wp-includes/rest-api.php:37: _doing_it_wrong( 'register_rest_route', __( 'Routes must be namespaced with plugin or theme name and version.' ), '4.4.0' ); | |
src/wp-includes/rest-api.php:40: _doing_it_wrong( 'register_rest_route', __( 'Route must be specified.' ), '4.4.0' ); | |
src/wp-includes/functions.php:5742: _doing_it_wrong( __FUNCTION__, __( 'Only UUID V4 is supported at this time.' ), '4.9.0' ); | |
src/wp-includes/class-wp-admin-bar.php:128: _doing_it_wrong( __METHOD__, __( 'The menu ID should not be empty.' ), '3.3.0' ); | |
src/wp-includes/pluggable.php:1083: _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '3.2.0' ); | |
src/wp-includes/pluggable.php:1126: _doing_it_wrong( __FUNCTION__, __( 'You should specify a nonce action to be verified by using the first parameter.' ), '4.7' ); | |
src/wp-includes/shortcodes.php:68: _doing_it_wrong( __FUNCTION__, $message, '4.4.0' ); | |
src/wp-includes/shortcodes.php:75: _doing_it_wrong( __FUNCTION__, $message, '4.4.0' ); | |
src/wp-includes/shortcodes.php:295: _doing_it_wrong( __FUNCTION__, $message, '4.3.0' ); | |
src/wp-includes/functions.wp-scripts.php:234: _doing_it_wrong( __FUNCTION__, $message, '3.6.0' ); | |
src/wp-includes/rest-api/endpoints/class-wp-rest-controller.php:40: _doing_it_wrong( 'WP_REST_Controller::register_routes', sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ), '4.7' ); | |
src/wp-includes/customize/class-wp-customize-partial.php:207: _doing_it_wrong( __FUNCTION__, __( 'Partial render must echo the content or return the content string (or array), but not both.' ), '4.5.0' ); | |
src/wp-includes/theme.php:2262: _doing_it_wrong( "add_theme_support( 'html5' )", __( 'You need to pass an array of types.' ), '3.6.1' ); | |
src/wp-includes/wp-db.php:1110: _doing_it_wrong( $class, sprintf( __( '%s must set a database connection for use with escaping.' ), $class ), '3.6.0' ); | |
src/wp-includes/wp-db.php:1112: _doing_it_wrong( $class, sprintf( '%s must set a database connection for use with escaping.', $class ), '3.6.0' ); | |
src/wp-includes/wp-db.php:1230: _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'The query argument of %s must have a placeholder.' ), 'wpdb::prepare()' ), '3.9.0' ); | |
src/wp-includes/wp-db.php:1246: _doing_it_wrong( 'wpdb::prepare', sprintf( __( 'Unsupported value type (%s).' ), gettype( $arg ) ), '4.8.2' ); | |
src/wp-includes/wp-db.php:1283: _doing_it_wrong( 'wpdb::prepare', __( 'The query only expected one placeholder, but an array of multiple placeholders was sent.' ), '4.9.0' ); | |
src/wp-includes/class-wp-customize-manager.php:3765: _doing_it_wrong( __METHOD__, $message, '4.5.0' ); | |
src/wp-includes/widgets.php:262: _doing_it_wrong( __FUNCTION__, sprintf( __( 'No %1$s was set in the arguments array for the "%2$s" sidebar. Defaulting to "%3$s". Manually set the %1$s to "%3$s" to silence this notice and keep existing sidebar content.' ), '<code>id</code>', $sidebar['name'], $sidebar['id'] ), '4.2.0' ); | |
src/wp-includes/widgets.php:1054: _doing_it_wrong( __FUNCTION__, sprintf( __( 'Widgets need to be registered using %s, before they can be displayed.' ), '<code>register_widget()</code>' ), '4.9.0' ); | |
src/wp-includes/capabilities.php:83: _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); | |
src/wp-includes/capabilities.php:153: _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); | |
src/wp-includes/capabilities.php:221: _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); | |
src/wp-includes/capabilities.php:258: _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' ); | |
src/wp-includes/plugin.php:810: _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1.0' ); | |
src/wp-includes/taxonomy.php:381: _doing_it_wrong( __FUNCTION__, __( 'Taxonomy names must be between 1 and 32 characters in length.' ), '4.2.0' ); | |
src/wp-includes/post.php:1190: _doing_it_wrong( __FUNCTION__, __( 'Post type names must be between 1 and 20 characters in length.' ), '4.2.0' ); | |
src/wp-includes/post.php:3512: _doing_it_wrong( __FUNCTION__, sprintf( __( 'Invalid taxonomy: %s.' ), $taxonomy ), '4.4.0' ); | |
src/wp-includes/query.php:153: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:174: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:195: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:219: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:243: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:267: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:296: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:316: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:336: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:357: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:377: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:406: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:435: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:455: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:482: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:502: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:522: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:542: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:562: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:591: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:619: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:639: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:659: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:679: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:699: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:719: _doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' ); | |
src/wp-includes/query.php:745: _doing_it_wrong( __FUNCTION__, $message, '3.7.0' ); | |
src/wp-includes/date.php:410: _doing_it_wrong( __CLASS__, $error, '4.1.0' ); | |
src/wp-includes/date.php:460: _doing_it_wrong( __CLASS__, $day_month_year_error_msg, '4.1.0' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment